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.
Previous
Get avatar realtime sessionGet the status of a streaming avatar session. `status` is one of `pending` (workflow starting), `streaming` (the `hls_url` is live), `completed` (finished — `end_reason` describes how), or `error` (`error_message` describes the failure). Poll this after POST /v3/avatar-realtime until `hls_url` is present.
Next
Create Avatar Realtime Session

