Skip to main content
POST

Authorizations

Authorization
string
header
required

Pass Authorization: Bearer <token> in the request header.

Body

application/json
model
enum<string>
required

Model name.

Available options:
wan2.2-kf2v-flash
images
string[]
required

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.

Required array length: 2 elements
prompt
string
required

Text 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.

seconds
enum<string>
default:5

Video duration (seconds) as a string. Currently fixed at "5".

Available options:
5
size
enum<string>
default:720P

Output video resolution tier. wan2.2-kf2v-flash supports 480P/720P/1080P, wan2.1-kf2v-plus supports 720P.

Available options:
480P,
720P,
1080P
prompt_extend
boolean
default:true

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.

watermark
boolean
default:false

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.

seed
integer

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
string

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.

Response

Submitted successfully. Returns a video task object.

id
string
task_id
string
object
string
Example:

"video"

model
string
status
enum<string>
Available options:
pending,
queued,
running,
succeeded,
failed,
cancelled
progress
integer
created_at
integer<int64>