Create Video Agent Session
One-shot video generation from a prompt — agent handles scripting, avatar selection, scene composition, and rendering. Supports generate (fire-and-forget) and chat (multi-turn) modes.
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Body
Request body for creating a video from a prompt using Video Agent v3.
All configuration is flat (no nested config object). Files use the type-discriminated AssetInput union for flexible asset inputs.
Supports two modes:
generate(default): one-shot — auto-proceeds through storyboard, produces one video.chat: multi-turn — may pause for user input on real decisions (e.g. pick a voice), auto-proceeds on confirmations. Allows revisions and follow-up videos.
The message/prompt for video generation (1-10000 characters)
1 - 10000Session mode. 'generate' produces one video (fire-and-forget). 'chat' enables multi-turn interaction — the agent may pause for decisions and allows revisions.
generate, chat Specific avatar ID to use
Specific voice ID to use for narration
Style ID from GET /v3/video-agents/styles. Applies a curated visual template to the generated video.
Brand kit ID to apply brand colors, fonts, and logos to the generated video.
Brand glossary ID controlling how custom terms are pronounced in the generated video's narration (for example, saying 'HeyGen' as 'hey-jen'). Pronunciation is applied to the synthesized audio only, so caption and subtitle text still show the original script wording. Discover IDs via GET /v3/brand-glossaries.
1Video orientation. If not provided, auto-detected from content.
landscape, portrait Optional file attachments (max 20 files)
20Asset input via publicly accessible HTTPS URL.
- AssetUrl
- AssetId
- AssetBase64
Webhook URL for completion/failure notifications
Optional callback ID included in webhook payload
When enabled, disables memory injection and extraction for this session
Response
Successful response
Response from creating a video agent session.

