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 follow-up messages, targeted edits, and additional 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 accept follow-up messages.
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. In enterprise workspaces with a locked brand policy, only the workspace default brand kit is accepted; omit this field to apply the workspace default automatically.
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
Session visibility: private (owner only), team (workspace members), or public (anyone with the link). Defaults to team. Applies to the session and its conversation; does not change existing sessions.
private, team, public When enabled, disables memory injection and extraction for this session
Response
Successful response
Response from creating a video agent session.