Skip to main content
POST
Generate video using AI

Authorizations

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

collection_id
string
required
Example:

"default"

Body

application/json
prompt
string
required

Text prompt. For heygen, the exact script the avatar speaks (not needed with config.audio_id).

Example:

"A cat playing with a ball"

duration
number

Seconds, where the model takes one (default 5-8, seedance 4-15). Ignored by heygen.

Example:

5

model
enum<string>

Video model. Some are limited-access; GET /generate/models lists yours.

Available options:
default,
seedance,
heygen
Example:

"default"

image_url
string

Start frame, or the required face photo for heygen. Public URL.

image_id
string

A VideoDB image (img-...) used instead of image_url. Pass one, not both.

Example:

"img-12345"

reference_images
string[]

Consistency images (default, seedance).

aspect_ratio
string

16:9 or 9:16; heygen also takes 4:5, 5:4, 1:1, auto.

Example:

"16:9"

resolution
string

seedance: 480p, 720p. heygen: 360p to 1080p, default 720p.

config
object

Model-specific options. Only heygen takes any; see the HeyGen model page.

callback_url
string
Example:

"https://webhook.example.com/callback"

Response

200 - application/json

Video generation started

success
boolean
Example:

true

status
enum<string>
Available options:
processing,
done,
failed
Example:

"processing"

data
object