Skip to main content
POST
/
v1
/
videos
Create Video Generation
curl --request POST \
  --url https://api.deepinfra.com/v1/videos \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "<string>",
  "prompt": "<string>",
  "negative_prompt": "<string>",
  "aspect_ratio": "<string>",
  "size": "<string>",
  "seconds": 123,
  "seed": 123,
  "style": "<string>",
  "image_url": "<string>"
}
'
{
  "id": "<string>",
  "created_at": 123,
  "status": "<string>",
  "model": "<string>",
  "object": "video.generation.job",
  "data": [
    {}
  ],
  "error": "<string>"
}

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