Append Avatar Realtime Text
Append a text delta to a session created with type: text_stream. Send fragments as they become available (e.g. tokens streamed from an upstream LLM); the avatar speaks them in order. Set final: true on the last delta to close input — further appends to a closed stream return 410. Returns the total bytes buffered so far.
Authorizations
HeyGen API key. Obtain from your HeyGen dashboard.
Path Parameters
Streaming session identifier returned by POST /v3/avatar-realtime.
Body
Append one text delta to a streaming session created with type='text_stream'.
Text fragment to append. May be a single token or a coalesced batch of tokens. Must be non-empty unless final: true (which allows an empty delta to close the stream).
If true, this is the last delta — input is closed after this request. Further POSTs to this stream return 410.
Response
Accepted — submission acknowledged; poll for completion.
Response data for POST /v3/avatar-realtime/{stream_id}/text.

