Core concepts
The API is built around identities and sessions. An identity is who your users talk to; a session is the live conversation that brings it to life. An identity is put together from an avatar and a voice.
Identity
An identity has:
- a name and instructions (who it is and how it talks)
- an avatar (
avatar_id) - a voice (
voice_id) - a conversation language
You create it once and refer to it by its id everywhere. Example: id_8f2c10ab. Its status is creating until it has an avatar, then active; While a new avatar is being made for an active identity it reads updating and keeps serving with the avatar and voice it has.
Avatar
An avatar is the face, made from one photo. Example: avt_9c1e4b2a7f3d. It is made in the background (pending → running → completed) and never changes once completed: a new photo is a new avatar. Stock avatars are public and every account can use them.
Voice
A voice is cloned from a recording and is ready as soon as it is created. Example: voc_5d2f8a1c. Stock voices are public too.
Many identities can share one avatar and one voice. To change an identity's face or voice, point it at another one.
Session
A session is a live conversation for one identity. You open it with POST /v1/sessions and join its LiveKit room; the avatar then listens and responds in real time. Example: sess_4b9e02f1.
agent_mode says whose agent runs the conversation. managed, the default, is Lookalike's agent. hybrid is Lookalike's agent plus your own, which joins the same room. external is your own agent in your own LiveKit room, with our avatar joining it. modality says how it talks: video (the avatar, with its voice), audio, or text (typed chat).
A session moves pending → running → ended, and end_reason says why it ended. Its usage is what it was charged.
Generation
A generation is an offline job: an identity speaking a text you send, rendered to a video or audio file. It answers at once and finishes in the background; its files are assets. See Generate a video. Example: gen_5c1d9e2f.
External session
An external session gives a LiveKit agent that you run yourself a Lookalike face. Your agent keeps its own voice, speech-to-text and LLM; Lookalike supplies only the face, from an identity's avatar or a photo, and joins your room as its own participant. Start one with POST /v1/sessions and agent_mode: "external", or let the plugin do it for you.