API structure
The API is organized around five product-facing resources, all under /v1:
| Resource | Prefix | What it's for |
|---|---|---|
| Identities | /v1/identities | What your users talk to: a name and instructions pointing at an avatar and a voice |
| Avatars | /v1/avatars | Faces, made from a photo |
| Voices | /v1/voices | Voices, cloned from a recording |
| Sessions | /v1/sessions | Open a live conversation for an identity |
| Generations | /v1/generations | Render an identity speaking a text to a file, offline |
Base URL
https://api.lookalike.com
Authentication
Send your API key on every request, either as a bearer token or in the X-API-Key header — both are accepted:
# Bearer token (recommended)
curl https://api.lookalike.com/v1/identities \
-H "Authorization: Bearer $LOOKALIKE_API_KEY"
# or the X-API-Key header
curl https://api.lookalike.com/v1/identities \
-H "X-API-Key: $LOOKALIKE_API_KEY"
Keys start with lk_. Each key belongs to your organization: every identity and session it creates belongs to the organization, the member who made it lists and revokes it in the console, and it can only read back the organization's own. GET /v1/me names the key making the request. Keep keys server-side — a leaked key can spend your credits. A missing or invalid key returns 401.
Errors
Errors come back as JSON with a detail field and the matching HTTP status:
{ "detail": "Identity not found" }
Validation errors (422) put a list of field-level problems in detail instead.
| Status | Meaning |
|---|---|
400 / 422 | The request was malformed or failed validation. |
401 | Missing or invalid API key. |
402 | Insufficient credits. |
404 | The resource doesn't exist (or isn't yours). |
409 | The resource isn't in a state that allows this — e.g. a new avatar is already being made, or an avatar or voice you're deleting is still in use. |
415 | An uploaded file is an unsupported media type. |
5xx | Something went wrong on our side — retry shortly. |
Lists
Every list returns { "data": [...], "next_cursor": "..." }, newest first. Pass next_cursor back as cursor to get the next page; next_cursor is null on the last one. limit is at most 100.
Identity API
| Method | Path | Purpose |
|---|---|---|
GET | /v1/identities | List your identities. |
POST | /v1/identities | Create an identity (multipart). 202. |
GET | /v1/identities/{id} | Fetch one identity. |
PATCH | /v1/identities/{id} | Change name, instructions, language, avatar or voice. |
DELETE | /v1/identities/{id} | Delete an identity. Its avatar and voice remain. 204. |
POST /v1/identities takes multipart/form-data: name, instructions, optional language, exactly one of avatar_id or an image file, and exactly one of voice_id or an audio file.
curl -X POST https://api.lookalike.com/v1/identities \
-H "Authorization: Bearer $LOOKALIKE_API_KEY" \
-F "name=Ada" \
-F "instructions=You are Ada, a warm and curious guide." \
-F "avatar_id=avt_stock_sophie" \
-F "voice_id=voc_stock_sophie"
{
"id": "id_8f2c10ab",
"object": "identity",
"status": "active",
"name": "Ada",
"instructions": "You are Ada, a warm and curious guide.",
"language": "auto",
"avatar_id": "avt_stock_sophie",
"voice_id": "voc_stock_sophie",
"pending": { "avatar_id": null },
"created_at": "2026-11-10T10:30:00+00:00",
"updated_at": "2026-11-10T10:30:00+00:00"
}
status is one of:
creating— no avatar yet; the one inpending.avatar_idis being made (create with animage).active— ready for sessions.updating— a new avatar is being made; the current avatar and voice keep serving.failed— its first avatar failed.
Poll GET /v1/identities/{id} until it is active. Only an active identity can open a session.
PATCH takes a JSON merge patch (application/merge-patch+json or application/json) of name, instructions, language, avatar_id and voice_id, and returns 200; repointing at another avatar or voice takes effect at once. As a shortcut it also takes multipart image and/or audio: a new image returns 202 with the new avatar in pending.avatar_id, or 409 (job_pending) if one is already being made.
curl -X PATCH https://api.lookalike.com/v1/identities/id_8f2c10ab \
-H "Authorization: Bearer $LOOKALIKE_API_KEY" \
-H "Content-Type: application/merge-patch+json" \
-d '{ "voice_id": "voc_5d2f8a1c" }'
Avatar API
| Method | Path | Purpose |
|---|---|---|
GET | /v1/avatars | List your avatars and stock ones. Filters: public, identity_id. |
POST | /v1/avatars | Make an avatar from an image (multipart, optional name). 202. |
GET | /v1/avatars/{id} | Fetch one avatar. |
DELETE | /v1/avatars/{id} | Delete an avatar. 204; 409 while an identity points at it; 403 for a stock avatar. |
An avatar's status moves pending → running → completed or failed (with error.code and error.message). A completed avatar has avatar_model (animatron-1 or animatron-2), image_url, thumbnail_url, background_url, mask_url, idle_closeup_video (url, crop) and crop (x1, y1, x2, y2). Avatars don't change once completed; a new photo is a new avatar. Stock avatars are public: true — list them with ?public=true.
Voice API
| Method | Path | Purpose |
|---|---|---|
GET | /v1/voices | List your voices and stock ones. Filter: public. |
POST | /v1/voices | Clone a voice from an audio recording (multipart, optional name). 201 once ready, up to about 90 s. |
GET | /v1/voices/{id} | Fetch one voice. |
GET | /v1/voices/{id}/preview | Play a sample of the voice (audio). |
DELETE | /v1/voices/{id} | Delete a voice. 204; 409 while an identity uses it; 403 for a stock voice. |
A voice has id, object: "voice", status, public, name and created_at.
Session API
A session is a live conversation for one active identity, joined over LiveKit. See the Realtime API.
| Method | Path | Purpose |
|---|---|---|
POST | /v1/sessions | Start a session. agent_mode is managed (default), hybrid or external; see below. 200. |
GET | /v1/sessions | List your sessions, newest first. Filters: agent_mode, identity_id, status, since. |
GET | /v1/sessions/{id} | Fetch one session. |
POST | /v1/sessions/{id}/end | End a session: the room closes and billing stops. Idempotent. |
agent_mode chooses the body:
managed— Lookalike's agent in a Lookalike room:identity_id,modality(text,audio,video; defaultvideo), optionallanguage,transport,limitsandvideo.hybrid— the managed fields plusexternal_agent, so your own agent joins the same room.external— your agent in your own LiveKit room, with our avatar joining it: one ofidentity_id,avatar_image_urloravatar_image, andtransport(type,url,token) for your room; optionalavatar_model,limitsandvideo.
A session has id (sess_…), object: "session", agent_mode, status (pending, running, ended), end_reason, error, identity_id, modality, avatar_id, voice_id, avatar_model, transport (type, url, room_name, token), external_agent, limits (max_duration_seconds), usage (items of meter, quantity, amount_usd, and the total amount_usd), created_at, started_at and ended_at. transport.token and external_agent.token are returned only on create; an external session never echoes your token.
Not yet available: transcript, control and events routes, previous_session_id, per-session instructions, greeting and dynamic_variables, embed tokens, and Idempotency-Key.
Generation API
A generation is an offline job: an identity speaking a text, rendered to a video or audio file. See Generate a video.
| Method | Path | Purpose |
|---|---|---|
POST | /v1/generations | Queue a generation: type (video or audio), identity_id, text, optional video and webhook_url. 202. |
GET | /v1/generations | List your generations. Filters: identity_id, since. |
GET | /v1/generations/{id} | Fetch one generation. |
POST | /v1/generations/{id}/cancel | Cancel a pending or running generation, uncharged. |
A generation has status (pending, running, completed, failed, canceled), error, artifacts (video, audio asset ids), usage (items of meter, quantity, amount_usd, and the total amount_usd), and on create estimated_amount_usd.