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: wan25_i2v_preview_intl
input object required
Input parameters for the generation request
prompt
stringText prompt used to describe the expected motion, style, and visual characteristics in the generated video. Supports Chinese and English.
Example:
A kitten running on the grass
negative_prompt
stringNegative prompt describing what should not appear in the generated video.
audio_url
stringOptional audio file URL used for sound-synchronized video generation.
img_url
stringrequiredURL or Base64 encoded data of the first frame image.
Image limitations: JPEG, JPG, PNG, BMP, and WEBP are supported. Use a publicly accessible HTTP/HTTPS URL or a Base64 data URI.
Example:
https://example.com/input-image.jpg
parameters object
Generation parameters
resolution
stringSpecifies the output video resolution level.
Common options:
720P,1080PDefault:
1080P
duration
integerDuration of the generated video in seconds. The duration directly affects billing costs.
Common options:
5,10Default:
5
prompt_extend
booleanWhether to enable intelligent prompt rewriting. When enabled, a large model rewrites and enriches the prompt before video generation.
Options:
true,falseDefault:
true
watermark
booleanWhether to add a watermark identifier to the generated video.
Options:
false,trueDefault:
false
seed
integerRandom seed. If not specified, the system automatically generates a random seed.
Range:
0-2147483647
Response
The create request returns a task ID immediately. Poll the task endpoint until the task reaches completed or failed.