Wan First-Last Frame to Video
wan2.1-kf2v-plus
Applies to Wan series first-last-frame image-to-video models. After submitting a task, query its status via GET /v1/videos/{task_id}.
Public fields: model, images, prompt, seconds, size, prompt_extend, watermark, seed, and negative_prompt. The images array must contain exactly 2 images in order: images[0] is the first frame and images[1] is the last frame. The first frame determines the base composition, while the last frame controls the closing scene.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
Model name.
wan2.1-kf2v-plus First-last-frame image URL array. Must contain exactly 2 images in order: images[0] is the first frame, images[1] is the last frame. The output video aspect ratio matches the first frame image; the last frame is cropped to fit the first frame aspect ratio.
2 elementsText prompt. Supports Chinese and English, up to 800 characters (each Chinese character or letter counts as one character). Excess characters will be automatically truncated.
If the subject and scene change significantly between the first and last frames, it is recommended to describe the transition, such as camera movement (e.g., camera panning left) or subject motion (e.g., a person running forward).
Example: A small black cat curiously looks up at the sky, the camera gradually rises from eye level, finally looking down at its curious eyes.
Video duration (seconds) as a string. Currently fixed at "5".
5 Output video resolution tier. wan2.2-kf2v-flash supports 480P/720P/1080P, wan2.1-kf2v-plus supports 720P.
720P Whether to enable intelligent prompt rewriting. When enabled, a large language model rewrites the input prompt intelligently. Significantly improves results for short prompts, but increases processing time.
true: Default, enable intelligent rewriting.false: Disable intelligent rewriting.
Example: true.
Whether to add a watermark. The watermark appears at the bottom-right corner with the text "AI Generated".
false: Default, no watermark.true: Add watermark.
Example: false.
Random seed, range [0, 2147483647].
When not specified, a random seed is automatically generated. To improve reproducibility of results, it is recommended to fix the seed value.
Note: Due to the probabilistic nature of model generation, even with the same seed, results may not be identical every time.
Negative prompt describing content you do not want in the video, used to restrict the video output.
Supports Chinese and English, up to 500 characters. Excess characters will be automatically truncated.
Example: Low resolution, error, worst quality, low quality, disfigured, extra fingers, bad proportions, etc.