Generate smooth videos from a first frame image and text prompt using the Tongyi Wanxiang Wan2.6 image-to-video model (wan2.6-i2v), with support for automatic audio, custom audio, and multi-shot storytelling
Please use your API Token for authentication
Task parameters
First frame image URL (required) Supports public URL (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"
Whether to add audio (optional, default true) Takes effect when audio_url is empty true: Automatically add audio to the 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 the video, achieving audio-visual synchronization 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 empty) When empty, uses the latest model version, future upgrades will apply 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 video The prompt parameter is ignored when using video effects (template)
2000Whether to enable smart prompt rewriting (optional, default true) When enabled, uses a large model to intelligently rewrite the input prompt
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 effects template name (optional) Prompt parameter is ignored when using effects Different models support different effects templates
Whether to add watermark (optional, default false) Watermark is placed in the bottom-right corner with fixed text "AI Generated"
OK
Task ID
"01234567-89ab-cdef-0123-456789abcdef"