Skip to main content
POST
Create Video Generation

Authorizations

Authorization
string
header
required

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

Headers

xi-api-key
string | null
x-api-key
string | null

Body

application/json
model
string
required
prompt
string
required
negative_prompt
string | null
aspect_ratio
string | null
size
string | null
seconds
integer | null
seed
integer | null
style
string | null
image_url
string | null

First-frame image for image-to-video (i2v): an http(s) URL or a data: URI. Omit for text-to-video.

Response

Successful Response

id
string
required
created_at
integer
required
status
string
required
model
string
required
object
string
default:video.generation.job
data
Data · object[] | null
error
string | null