Use Tongyi Wanxiang Wan2.2 keyframe-to-video model (wan2.2-kf2v-flash), only requires first and last frame images, combined with prompt to generate smooth dynamic videos, supports effect templates
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 Output video aspect ratio will be based on this image
Last frame image URL (optional) Same requirements as first frame, resolution can differ from first frame Not required when using effect template
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.2-kf2v-flash
wan2.2-kf2v-flash Negative prompt (optional, max 500 characters) Describe content you don't want to see in the video
500Text prompt (optional, max 800 characters) Describe the elements and visual features you want in the generated video When the subject/scene changes significantly between first and last frames, it's recommended to describe the transition process (e.g., camera movement, subject motion)
800Enable smart prompt rewriting (optional, default true) When enabled, uses large language model to intelligently rewrite input prompts
Resolution tier (optional, default 720P) wan2.2-kf2v-flash: available values 480P, 720P, 1080P
480P, 720P, 1080P Random seed (optional, range 0-2147483647)
0 <= x <= 2147483647Video effect template name (optional) When using this parameter, only need to provide first_frame_url 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"