curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "wan2.6-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"duration": 5,
"resolution": "1080p",
"multi_shots": false
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}Wan
Wan 2.6 Video Generation
Multi-shot 1080p video generation with Alibaba Wan 2.6
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": "wan2.6-text-to-video",
"callback_url": "https://your-domain.com/callback",
"input": {
"prompt": "A cinematic time-lapse of a bustling city street transitioning from day to night.",
"duration": 5,
"resolution": "1080p",
"multi_shots": false
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-1757165031-uyujaw3d",
"status": "not_started",
"created_time": "2025-11-12T10:30:00"
}
}- After submission, a
task_idis returned. Ifcallback_urlis provided, a POST request is sent when the task finishes or fails. - You can always retrieve the result through the unified Query Task Status endpoint.
Wan 2.6 Video Generation
Wan 2.6 includes three models for text, image, and source-video guided generation with multi-shot composition and 1080p output.Models
wan2.6-text-to-video— generates video from a text promptwan2.6-image-to-video— animates a reference image with a promptwan2.6-video-to-video— edits or restyles an input video with a prompt
Key Features
- Duration: 5, 10, or 15 seconds (video-to-video up to 10 seconds)
- Resolution: 720p or 1080p
- Multi-Shots: Toggle multi-shot composition for cinematic transitions
- Prompt Length: Up to 5,000 characters
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
Wan 2.6 model identifier
Available options:
wan2.6-text-to-video, wan2.6-image-to-video, wan2.6-video-to-video Webhook callback URL for result notifications
Example:
"https://your-domain.com/callback"
Input parameters for generation
Show child attributes
Show child attributes
