Requirements
- Cartesia API key
- Cartesia Agent ID — create and configure your agent at play.cartesia.ai/agents
Setup
1. Register your Cartesia API key:secret_id. LiveAvatar stores the key by reference — it is never sent inline on a session request. See Secrets.
2. Start a session with the connector:
There are two ways to point a session at your Cartesia agent.
- Stored voice agent (recommended)
- Inline config
Save the configuration once as a voice agent of type The server resolves the stored
cartesia_agent, then reference it by id on every session:agent_type and builds a LITE Mode session — even from a FULL Mode token request. Create and manage voice agents in the dashboard at app.liveavatar.com/voice-agent.Per-session language and dynamic_variables overrides do not apply to a Cartesia agent and are rejected rather than silently ignored:How it works
- A LiveKit room is automatically created (no WebSocket endpoint returned)
- LiveAvatar dispatches a worker that handles interaction with your Cartesia Agent
- Agent audio drives avatar animation in real time
Events
Events are exchanged over the LiveKit data channel and differentiated by LiveKit room topic:agent-control— commands you send to the avataragent-response— events the server sends to you
agent-response topic:
When the Cartesia Agent cleanly closes its connection (e.g. the agent hangs up), the session ends with a
session_stopped event carrying stop_reason: AGENT_HANG_UP.
Billing
- LiveAvatar: 1 credit per session minute (avatar video only)
- Cartesia: charges separately for agent usage