Skip to main content
POST

Authorizations

Authorization
string
header
required

Use Bearer Token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

application/json

Legacy first/last-frame compatibility scenarios: first_frame, last_frame, or both, subject to the capabilities of currently available models. Do not combine with reference assets; omit aspect_ratio, and the aspect ratio follows the first frame.

contents
object[]
required

A non-empty prompt and supported media must both be provided. Image-to-video requests must include first_frame. Do not use first_frame/last_frame together with refer_image/feature_video; otherwise, a 400 error is returned. See the API documentation for media quantity limits. Legacy first-and-last-frame requests are validated based on the capabilities of currently available models; for new first-and-last-frame integrations, the image-to-video endpoint is recommended.

Minimum array length: 2
settings
object
options
object

You can omit it, pass an empty object, or explicitly disable the watermark.

Response

Success

code
integer
required
Example:

0

message
string
required
request_id
string
required
data
object
required