⌘K

Wan 2.7 Spicy - Image to Video

wan27_i2v_spicy

Wan 2.7 Spicy generates a video from an input image and text prompt, with optional audio guidance, negative prompts, and 720p or 1080p output.

API Notes

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

wan27_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: wan27_i2v_spicy


input array required

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

params object required

Wan 2.7 Spicy image-to-video parameters

prompt string required

Text prompt describing the expected video content

image string required

Reference image URL or Base64-encoded image data Supported formats: JPEG, JPG, PNG without transparency, BMP, and WEBP Width and height must be between 240 and 8000 pixels, aspect ratio must be between 1:8 and 8:1, and file size must not exceed 20MB

negative_prompt string

Description of elements that should not appear in the generated video

audio_url string

HTTPS URL of an optional driving audio file Supported formats: WAV and MP3 Audio duration must be between 2 and 30 seconds, and file size must not exceed 15MB

audio boolean

Whether to include an audio track in the output. This setting takes priority over audio_url. When set to false, the output is silent even when audio_url is provided

Default: true

resolution string

Output video resolution

Options: 720p, 1080p

Default: 1080p

duration integer

Output video duration in seconds

Range: 2 - 15

Default: 5

prompt_extend boolean

Whether to enable intelligent prompt rewriting

Default: true

seed integer

Random seed. Using the same value can improve reproducibility, but identical output is not guaranteed

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.


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