Interactive Avatar: Let Synthesia host the room
When Synthesia hosts the room, your agent joins it. Your agent still does the thinking: it listens, decides what to say and speaks. You don’t set up a LiveKit project or mint any room tokens. You only manage your agent.
Choose this route if you want the quickest way to a working session. If you already run your own LiveKit room, or build on Pipecat, use the bring-your-own integration instead. Choosing a route compares the two.
Choosing a route
When you create an API deployment in Studio, you choose how your agent connects.
Set up a deployment
You do these steps in Studio. A deployment holds the settings for your agent. Right now that’s the avatar.
- Pick the avatar. Open your deployment and choose the avatar people see in the session. When you change it, new sessions use the new avatar right away.
- Create an API key. Create one in Studio if you don’t have one yet. Keep the key on your backend.
- Copy the deployment ID. It starts with
dep_. Your backend sends it to start a session. It isn’t a secret.
Start a session
Send the request from your backend, with the deployment ID and one of your API keys. Billing starts when your agent joins.
Send deploymentId on its own. A request that also has avatarIds, livekitUrl or livekitToken fails with 400 validation_error. Your key needs the interactive_avatars:write scope.
The response is a session with a connection object:
Connect your client and your agent
Two things join the room, and each one uses its own token from the connection object.
Join before joinBy, or the session ends. Billing starts when your agent joins.
Example: join from the browser
Your backend starts the session and hands each token to the right place. The end user’s client gets livekitUrl and participantToken, and your agent process gets livekitUrl and agentToken. Never send agentToken to a browser.
In the browser, join with the LiveKit client SDK and show the avatar’s video and audio:
Your agent publishes its speech audio to the room, and the avatar lip-syncs to it. This is the same as in the bring-your-own route, except that Synthesia runs the room. The user hears the audio from the avatar, so the voice and the lips stay in sync.
Set call limits
In your deployment’s Call limits section, you choose when conversations with the avatar end.
Limits and errors
- Each running session counts toward your plan’s concurrent-session limit: 1 for Freemium and 100 for all paid plans. Over the limit, the request fails with
429 concurrency_limit. - If your plan doesn’t include Interactive Avatars, or your workspace has no credit for the deployment’s sessions, the request fails with
402. The codes arefeature_not_in_plan,quota_exceededandno_credit. - A
404 unknown_referencemeans the deployment doesn’t exist, isn’t an API deployment, or isn’t in your workspace.
For every code and its fix, see Errors. For the full request and response, see Create Interactive Avatar Session.