Create Session
Initiates a session.
Upon successful creation, the API returns a session token that can be safely used in Web SDK.
There are a few ways to process what a user says and what avatar says.
It’s configured via the conversation engine. Supported types:
openai-realtime— Avaturn Live talks directly to OpenAI Realtime on your behalf.cartesia— Cartesia Lineexternal— Avaturn Live opens a WebSocket to a URL you provide and exchanges raw audio plus segment events with it. The reference integration uses Pipecat; see the open-sourcepipecat-avaturn-live-demorepo for a working end-to-end example.text-echo— legacy text-driven TTS playback.
Reach out to us if you want to integrate with something else.
Authorizations
avaturn.live API key
Body
Avatar ID
Text-based echo conversation engine.
Allows controlling what avatar says with text. The text is converted into audio using TTS engine. Multiple TTS engines are supported.
- TextEchoEngineConfig
- OpenAIRealtimeAPICEConfig
- CartesiaCEConfig
- ExternalCEConfig
Background type for the avatar. 'transparent' removes the background, 'default' uses the avatar's default background
transparent, default delta, golf Seconds to wait before terminating the session if no user is connected
x >= 10Maximum session duration in seconds (max 24 hours)
60 <= x <= 86400