curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hailuo-02",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A llama and a raccoon battle in an intense table tennis match inside a roaring Olympic stadium",
"duration": 6,
"prompt_optimizer": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Hailuo
Hailuo 02 Video Generation
Advanced video generation with Hailuo 02
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "hailuo-02",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A llama and a raccoon battle in an intense table tennis match inside a roaring Olympic stadium",
"duration": 6,
"prompt_optimizer": true
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the response result through the unified Query Task Status endpoint.
Hailuo 02 Video Generation
Generate high-quality videos using Hailuo 02 models. Create professional content with text-to-video and image-to-video capabilities.Available Models
- hailuo-02 - Standard video generation (768P/512P, up to 10 seconds)
- hailuo-02-pro - Professional video generation (1080P, 6 seconds)
Key Features
- Flexible Modes: Text-to-video and image-to-video
- Multiple Resolutions: 512P, 768P (Standard) and 1080P (Pro)
- Duration Options: 6 or 10 seconds (Standard only)
- Prompt Optimizer: Optional AI-powered prompt enhancement
- End Frame Control: Specify ending frame for image-to-video (optional)
Resolution Notes
hailuo-02supports512Pand768P.- Requests with
end_image_urluse first-and-last-frame generation and must use768P.512Pis not supported withend_image_url.
Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to get your API Key
Add it to the request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
