Get API Key:
Visit the API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYModel 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:
Array Limits:
Video Requirements:
Input Video Billing Rules:
5 secondsmin(video duration, 5s)min(video1 duration, 2.5s) + min(video2 duration, 2.5s)min(video1 duration, 1.65s) + min(video2 duration, 1.65s) + min(video3 duration, 1.65s)1080p quality has a higher price3[
"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/xxx.mp4"
]Video aspect ratio, defaults to 16:9
Options:
720p: Supports 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:3, 3:41080p: Supports 16: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 priceNote: Different quality levels support different aspect ratios, see aspect_ratio parameter
"720p"
Specifies the duration of the generated video (in seconds)
Note:
5, 10 values, representing 5 seconds, 10 secondsOutput Video Billing Rules:
5, 10 5
Model parameter configuration
HTTPS callback URL for task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries after failure (retries at 1/2/4 seconds after failure)"https://your-domain.com/webhooks/video-task-completed"
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