##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_KEYModel name
wan2.6-reference-video-flash "wan2.6-reference-video-flash"
Prompt describing the desired video, limited to 1500 characters
1500"A person dancing"
Array of reference video file URLs. Used to reference character appearance and voice from 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 higher pricing3[
"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 quality, standard pricing, this is the default1080p: High quality, higher pricingNote: Different qualities support different aspect ratios, see aspect_ratio parameter
"720p"
Specify the duration of the generated video (seconds)
Note:
2~10 secondsOutput video billing rules:
2 <= x <= 105
Model parameter configuration
Whether to generate audio, defaults to true
Options:
true: Generate video with audio, higher pricingfalse: Generate video without audio, lower pricingtrue
HTTPS callback URL for task completion
Callback timing:
Security restrictions:
2048 charactersCallback mechanism:
10 seconds3 retries on 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-flash"
Specific 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