⌘K

Wan 2.2 Flash - Image to Video

wan22_i2v_flash

Wan 2.2 Flash - Image to Video generates videos from a source image with faster processing and practical quality controls.

Authentication

authorization string required

All APIs require authentication via Bearer Token.

Get API Key:

Visit API Key Management Page to get your API Key.

Usage:

Add to request header:

Authorization: Bearer YOUR_API_KEY

Parameters

model string required

Model ID to use for the request

Value: wan22_i2v_flash


input object required

Basic input object, such as prompts and source image

prompt string

Text prompt used to describe expected elements and visual characteristics in the generated video
Supports Chinese and English, each Chinese character or letter counts as one character, overflow is automatically truncated
For wan2.2 and wan2.1 series, maximum length is 800 characters

negative_prompt string

Negative prompt used to describe content that should not appear in the generated video
Supports Chinese and English, maximum length is 500 characters, overflow is automatically truncated

img_url string required

URL or Base64 encoded data of the first-frame image

Image Constraints:
Formats: JPEG, JPG, PNG (no alpha channel), BMP, WEBP
Resolution: width and height range 360 to 2000 pixels
File size: up to 10MB

Supported Input Formats:
Public URL via HTTP or HTTPS
Base64 string in format data:{MIME_type};base64,{base64_data}


parameters object

Video processing parameters, such as resolution tier, duration, prompt rewrite, watermark, and seed

resolution string

Specifies output resolution tier and the model scales to similar total pixels, while keeping aspect ratio close to img_url

Options: 480P, 720P

Default: 720P

duration integer

For wan2.2-i2v-flash, duration is fixed at 5 seconds and cannot be modified

Value: 5

prompt_extend boolean

Whether to enable intelligent prompt rewriting, when enabled a large model rewrites input prompt, usually improving short prompts while increasing latency

Options: true, false

Default: true

watermark boolean

Whether to add watermark in the lower-right corner

Options: false, true

Default: false

seed integer

Random seed in range 0 to 2147483647, system generates a random seed when omitted
Fixing seed can improve reproducibility, but identical seed does not guarantee exactly identical output every run

Range: 0 - 2147483647


Polling

Since result generation takes time, you need to poll the task status after creating the task.

The initial response only returns information such as the task ID and initial status. The final result must be obtained by polling the task status endpoint using the task ID.

See the examples on the right for polling requests and responses.

error object

Error information, only present when status is failed

code string

Error code

message string

Detailed error message


output array

Generation results, only present when status is completed

content array

List of generated resource content

type string

Resource type

Value: image|video

url string

Processed resource URL

jobId string

Remote task ID


usage object

Usage statistics, only present when status is completed

cost string

Total cost in USD

discount number

Discount amount


metadata object

Metadata information