Wan2.6 Reference Video
- WAN2.6 (wan2.6-reference-video) model supports reference video-to-video generation
- Upload reference videos, the model will extract character appearance and voice to generate new videos
- Asynchronous processing mode, use the returned task ID to query status
- Generated video links are valid for 24 hours, please save them promptly
- Billing: Combined billing based on input + output video duration, only charged after successful generation, no charges for failures
Authorizations
All APIs require Bearer Token authentication
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYBody
Model name
wan2.6-reference-video "wan2.6-reference-video"
Prompt describing the video you want to generate, limited to 1500 characters
1500"A person dancing"
Array of reference video file URLs. Used to extract character appearance and voice from reference videos to generate new videos.
URL Requirements:
- Supports HTTP or HTTPS protocol
- Local files can obtain temporary URLs via File Upload
Array Limits:
- Maximum 3 videos
Video Requirements:
- Format: mp4, mov
- Duration: 2~30 seconds
- File size: Single video no more than 100MB
Input Video Billing Rules:
- Each reference video is truncated and summed, total input billing duration capped at
5seconds - 1 video:
min(video duration, 5s) - 2 videos:
min(video1 duration, 2.5s) + min(video2 duration, 2.5s) - 3 videos:
min(video1 duration, 1.65s) + min(video2 duration, 1.65s) + min(video3 duration, 1.65s) 1080pquality has a higher price
3[
"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/xxx.mp4"
]Video aspect ratio, defaults to 16:9
Options:
720p: Supports16:9(landscape),9:16(portrait),1:1(square),4:3,3:41080p: Supports16:9(landscape),9:16(portrait),1:1(square),4:3,3:4
"16:9"
Video quality, defaults to 720p
Options:
720p: Standard definition, standard price, this is the default1080p: High definition, higher price
Note: Different quality levels support different aspect ratios, see aspect_ratio parameter
"720p"
Specifies the duration of the generated video (in seconds)
Note:
- Supports any integer value between
2~10seconds
Output Video Billing Rules:
- Output video billing duration: The number of seconds of video successfully generated by the model
2 <= x <= 105
Model parameter configuration
HTTPS callback URL for task completion
Callback Timing:
- Triggered when task is completed, failed, or cancelled
- Sent after billing confirmation
Security Restrictions:
- Only HTTPS protocol is supported
- Callbacks to internal IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback Mechanism:
- Timeout:
10seconds - Up to
3retries after failure (retries at1/2/4seconds after failure) - Callback response format is consistent with the task query API response
- 2xx status codes are considered successful, other status codes trigger retries
"https://your-domain.com/webhooks/video-task-completed"
Response
Video task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
Actual model name used
"wan2.6-reference-video"
Task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Video task details
Task output type
text, image, audio, video "video"
Usage and billing information