Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Live

Connect
WebSocket
/live/sessions
Create session
POST
/live/sessions
Models
AudioFormat = AudioPCM { rate, type } or AudioPCMU { rate, type } or AudioPCMA { rate, type }

Audio encoding and sample rate for audio sent and received over a Live WebSocket connection. WebRTC and SIP negotiate their media format separately.

ClientConfig object { data_channel }

Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.

data_channel: DataChannelConfig { allowed_client_events, allowed_server_events }

Client and server event permissions for the WebRTC frontend data channel.

ClientDelegation object { type, acknowledgement_delay_ms }

Delegate tasks to your application. The Live session emits delegation events that your backend handles.

type: "client" (default: "client")

The delegation owner. Always client for tasks handled by your application.

acknowledgement_delay_ms: optional integer

Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

minimum0
maximum800
ClientEvent = SessionStartEvent { session, type, event_id } or SessionUpdateEvent { session, type, event_id } or InputAudioAppendEvent { audio, type, event_id } or 12 more

Client events for Live. Initialize a primary WebSocket with session.start and wait for session.started. WebRTC creation already starts the session. Audio append is primary WebSocket-only. See the Live prompting guide before writing frontend instructions and delegation policies.