Create Avatar Realtime Session
Avatar Realtime
Create Avatar Realtime Session
Start a low-latency streaming avatar session and return a stream_id. Three modes, selected by the type discriminator: tts (speak a fixed script), audio (drive lip-sync from a pre-existing audio asset), and text_stream (seed with initial text, then append more text deltas over time via POST /v3/avatar-realtime//text — e.g. as an upstream LLM streams tokens). Poll GET /v3/avatar-realtime/ for the session status and HLS playback URL.
POST
Create Avatar Realtime Session
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Body
application/json
- CreateAvatarRealtimeTTS
- CreateAvatarRealtimeAudio
- CreateAvatarRealtimeTextStream
Create a stream with text-to-speech audio.
Response
Created.
Response data for POST /v3/avatar-realtime.

