Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

prompt, duration, and resolution are required. Provide at least one of first_frame_image or last_frame_image; both may be set together.

prompt
string
required

Video content description.

Required string length: 1 - 7000
first_frame_image
string
required

First-frame image URL. Required when last_frame_image is omitted; may be combined with last_frame_image.

Minimum string length: 1
duration
enum<integer>
default:5
required

Required video duration in seconds.

Available options:
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
resolution
enum<string>
default:2K
required

Required output resolution.

Available options:
768P,
2K
last_frame_image
string

Last-frame image URL. Required when first_frame_image is omitted; may be combined with first_frame_image.

Minimum string length: 1

Response

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.