Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Text prompt describing the desired video content. Supports any language input, excess characters will be automatically truncated

Required string length: 1 - 5000
Example:

"A miniature city made of cardboard and bottle caps comes to life at night."

resolution
enum<string>
default:1080P

Specifies the resolution tier for the generated video

Available options:
720P,
1080P
Example:

"720P"

ratio
enum<string>
default:16:9

Specifies the aspect ratio for the generated video

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

"16:9"

duration
enum<integer>
default:5

Specifies the video duration in seconds (integer)

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

5

seed
integer

Random number seed. To improve reproducibility of generated results, it is recommended to fix the seed value. Note: Due to the probabilistic nature of model generation, even using the same seed cannot guarantee completely identical results each time

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

42

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.