⌘K

Wan 2.2 Spicy - Image to Video

wan22_i2v_spicy

Wan 2.2 Spicy generates a video from a first-frame image and prompt, with optional last-frame interpolation and 480p or 720p output.

API Notes

wan22_i2v_spicy accepts only the documented fields under input[0].params. Unknown fields are rejected

last_image enables first-to-last-frame interpolation when provided

wan22_i2v_spicy is billed using the public model ID. The duration and resolution values may affect the final usage cost

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 used for the request

Value: wan22_i2v_spicy


input array required

Input array. Provide one object and put model parameters under input[0].params

params object required

Wan 2.2 Spicy image-to-video parameters

image string required

First-frame image as an HTTP or HTTPS URL, or Base64-encoded image data

last_image string

Optional last-frame image as an HTTP or HTTPS URL, or Base64-encoded image data. When provided, the model interpolates from image to last_image

prompt string required

Text prompt describing the expected video content

duration integer

Output video duration in seconds

Options: 5, 8

Default: 5

resolution string

Output video resolution

Options: 480p, 720p

Default: 480p

prompt_extend boolean

Whether to enable intelligent prompt rewriting

Default: true

seed integer

Random seed. Use 0 or omit the field for random generation

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.


Response Format

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