Skip to main content
POST
Create Video Batch

Authorizations

x-api-key
string
header
required

HeyGen API key. Obtain from your HeyGen dashboard.

Headers

Idempotency-Key
string

Optional client-supplied key for safely retrying mutations. Subsequent calls within 24 hours that share this key replay the original response — even if the request body differs slightly (a warning is logged). A retry that arrives while the original is still in flight gets a 409 request_in_progress. Keys must be 1–255 characters from [A-Za-z0-9_:.-]; a UUID is a safe default. Scope is per-endpoint and per-resource: the same key on a different route or path parameter is independent.

Required string length: 1 - 255
Pattern: ^[A-Za-z0-9_\-:.]{1,255}$

Body

application/json
videos
(CreateVideoFromAvatar · object | CreateVideoFromImage · object | CreateVideoFromCinematicAvatar · object)[]
required

Video creation requests, identical in shape to POST /v3/videos (avatar / image / cinematic_avatar). Max 100 per batch.

Required array length: 1 - 100 elements

Create a video from a HeyGen avatar (video or photo avatar).

Provide an avatar_id to use a previously created avatar. Supports all avatar types: studio_avatar, digital_twin, and photo_avatar. Optionally set engine to select Avatar V for eligible avatars; when omitted, the server defaults to Avatar IV.

title
string | null

Display name for the batch, shown in the HeyGen app.

callback_url
string | null

Webhook URL invoked once when every item in the batch reaches a terminal state.

Response

Accepted — submission acknowledged; poll for completion.

data
CreateVideoBatchResponse · object