Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
img_url
string
required

First frame image URL (supports HTTP/HTTPS/Base64)

Example:

"https://example.com/image.jpg"

prompt
string

Video content description, supports Chinese and English

Required string length: 1 - 800
Example:

"Camera slowly zooms in"

negative_prompt
string

Negative prompt describing unwanted content

Maximum string length: 500
Example:

"blurry, distorted"

resolution
enum<string>

Video resolution tier

Available options:
480P,
720P,
1080P
Example:

"720P"

duration
enum<integer>
default:5

Video duration in seconds (integer)

Available options:
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
Example:

5

audio
boolean
default:false

Whether to generate video with audio (only supported by wan2.6-i2v-flash)

Example:

false

prompt_extend
boolean
default:false

Enable prompt intelligent rewriting

Example:

false

seed
integer

Random seed for reproducibility

Required range: 0 <= x <= 2147483647
Example:

42

audio_url
string<uri>

Custom audio URL (supports wav/mp3, 3-30 seconds, ≤15MB)

Example:

"https://example.com/audio.mp3"

shot_type
enum<string>

Shot type (single-shot or multi-shot narrative)

Available options:
single,
multi
Example:

"single"

Response

200 - application/json

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.