Use Tongyi Wanxiang Wan2.6 image-to-video model (wan2.6-i2v) to generate smooth videos from first frame image and text prompt, supports automatic dubbing, custom audio and multi-shot narrative
Please use your API Token for authentication
Task parameters
First frame image URL (required) Supports public URLs (HTTP/HTTPS) or Base64 encoding Image format: JPEG, JPG, PNG (no transparency), BMP, WEBP Image resolution: width and height range [360, 2000] pixels File size: max 10MB
"https://media.sinancode.com/uploads/20251217/a6aa177e82d58f6738109807a0548605.webp"
Add audio (optional, default true) Takes effect when audio_url is empty true: automatically add audio to video false: no audio, output silent video
Audio file URL (optional, only supported by wan2.5-i2v-preview) The model will use this audio to generate video with audio-visual sync Format: wav, mp3, duration: 3-30s, file size: max 15MB
Video duration (optional, default 5 seconds) wan2.6-i2v: available values are 5, 10, 15
5, 10, 15 Model name (optional, recommended to leave blank) When left blank, the latest version will be used and future upgrades will be applied automatically Current default: wan2.6-i2v
wan2.6-i2v Negative prompt (optional, max 500 characters) Describe content you don't want to see in the video
500Text prompt (optional, max 2000 characters) Describe the elements and visual features you want in the generated image When using video effect parameters (template), the prompt parameter is invalid
2000Enable smart prompt rewriting (optional, default true) When enabled, uses large language model to intelligently rewrite input prompts
Resolution tier (optional, default 1080P) wan2.6-i2v: available values 720P, 1080P (480P not supported)
720P, 1080P Random seed (optional, range 0-2147483647)
0 <= x <= 2147483647Shot type (optional, default single, only supported by wan2.6-i2v) Only takes effect when prompt_extend=true single: single-shot video multi: multi-shot video (supports multiple shot transitions while maintaining subject consistency)
single, multi Video effect template name (optional) Prompt parameter is invalid when using effects Different models support different effect templates
Add watermark (optional, default false) Watermark is located at bottom right corner with fixed text "AI Generated"
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"