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
objectrequiredWan 2.7 Spicy image-to-video parameters
prompt
stringrequiredText prompt describing the expected video content
image
stringrequiredReference image URL or Base64-encoded image data Supported formats:
JPEG,JPG,PNGwithout transparency,BMP, andWEBPWidth and height must be between240and8000pixels, aspect ratio must be between1:8and8:1, and file size must not exceed20MBnegative_prompt
stringDescription of elements that should not appear in the generated video
audio_url
stringHTTPS URL of an optional driving audio file Supported formats:
WAVandMP3Audio duration must be between2and30seconds, and file size must not exceed15MBaudio
booleanWhether to include an audio track in the output. This setting takes priority over
audio_url. When set tofalse, the output is silent even whenaudio_urlis providedDefault:
trueresolution
stringOutput video resolution
Options:
720p,1080pDefault:
1080pduration
integerOutput video duration in seconds
Range:
2-15Default:
5prompt_extend
booleanWhether to enable intelligent prompt rewriting
Default:
trueseed
integerRandom 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
stringError code
message
stringDetailed error message
output array
Generation results, only present when status is completed
content
arrayList of generated resource content
type
stringResource type
Value:
image|videourl
stringProcessed resource URL
jobId
stringRemote task ID
usage object
Usage statistics, only present when status is completed
cost
stringTotal cost in USD
discount
numberDiscount amount
metadata object
Metadata information