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-image-to-video "wan2.6-image-to-video"
Prompt describing the video you want to generate, limited to 1500 characters
1500"A cat playing piano"
Reference image URL list for first-frame image-to-video generation
Note:
1 image10MB.jpeg, .jpg, .png (transparent channel not supported), .bmp, .webp[360, 2000] pixels.png, .jpg)1["https://example.com/image1.png"]Specifies the duration of the generated video (in seconds)
Note:
5, 10, 15 values, representing 5 seconds, 10 seconds, 15 secondsduration value, actual charge is based on the generated video duration5
Video quality, defaults to 720p
Options:
720p: Standard definition, standard price, this is the default1080p: High definition, higher price"720p"
Whether to enable intelligent prompt rewriting. When enabled, a large model will optimize the prompt, which significantly improves results for simple or insufficiently descriptive prompts. Default is true
true
Model parameter configuration
Audio file URL. The model will use this audio to generate the video.
Format Requirements:
mp33~30 seconds15MBOverflow Handling:
duration value (5 or 10 seconds), the first 5 or 10 seconds will be automatically extracted, and the rest will be discarded"https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/xxx.mp3"
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-image-to-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