Skip to main content
POST
Create a text-to-video task

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
enum<string>
required

model ID

Available options:
wan2.2-t2v-a14b
Example:

"wan2.2-t2v-a14b"

prompt
string
required

Video description text.

Example:

"A cat playing the piano"

duration
number
default:5

Video duration in seconds, 3–5.

Required range: 3 <= x <= 5
Example:

5

width
integer

Output video width in pixels.

height
integer

Output video height in pixels.

seed
integer

Random seed, used to reproduce results.

metadata
object

Extra parameters passed through to the upstream API.

Response

Task created successfully

task_id
string

Task ID, used to poll status.

status
string

Initial status (queued).