Skip to main content
POST

Headers

Authorization
string
required

Bearer API key, e.g. Bearer sk-....

Example:

"Bearer sk-..."

Body

application/json

Wan / Tongyi Wanxiang async create body.

model
string
required

Video model id. Currently supported models (Alibaba Wan): wan2.1-480P, wan2.1-720P, wan2.1-1080P (see Model Square).

Example:

"wan2.1-720P"

prompt
string
required

Text prompt.

Example:

"Cinematic city night, slow push along a wet street, neon reflections"

duration
integer

Duration in seconds. Alias: seconds.

Example:

10

seconds
string
ratio
enum<string>

Aspect ratio. Aliases: size, aspect_ratio.

Available options:
21:9,
16:9,
4:3,
1:1,
3:4,
9:16
Example:

"16:9"

size
string
aspect_ratio
string
images
string[]

Multi-image references.

image
string
first_frame

First frame URL(s).

last_frame

Last frame URL(s).

start_frame
end_frame
reference_images
string[]
reference_videos
string[]
reference_audios
string[]
generate_audio
boolean
Example:

true

content
object[]

Response

Accepted

id
string
task_id
string
status
string
created_at
integer