Avatar Realtime
Create a session
Changed onStart a realtime avatar session: the avatar joins the LiveKit room you name in transport, as the participant whose token you minted, and publishes lip-synced video together with the speech audio that transport.publisher_identity streams to it over a LiveKit data stream. The response is the session object with status: "active"; the avatar is already in the room. Release it with DELETE /v1/avatar/sessions/{session_id} when the conversation ends. Creation is not idempotent: if the response is lost, do not replay the request blindly; look for the avatar participant in the room instead.
post/v1/avatar/sessions
Request
- Base URLhttps://api.boson.ai
- URLhttps://api.boson.ai/v1/avatar/sessions
- AuthHTTP bearer
Request body
Example request
{
"avatar_id": "builtin_claire_v1",
"transport": {
"url": "wss://my-project.livekit.cloud",
"participant_identity": "boson-avatar-agent",
"publisher_identity": "agent-7f3a"
},
"output": {
"width": 480,
"height": 640
},
"max_duration_seconds": 1800
}Response
The session is active and the avatar has joined the room.
Example response
{
"id": "avrt_3f9c2a7e8b1d4c6f",
"model": "higgs-avatar",
"avatar_id": "builtin_claire_v1",
"avatar_identity": "boson-avatar-agent"
}Changes
- info
endpoint added
- info