Skip to main content

The Digital Human API

Get your API key

One click: get your API key. Sign in and the key is created and shown right away.

The Digital Human API lets you create a digital human — an avatar with a face, a voice, and a personality — and bring it into a live, two-way conversation. You onboard an identity once, then stream it into realtime sessions your users can talk to, with sub-second latency over LiveKit.

Base URL​

https://api.lookalike.com

Every endpoint lives under /v1.

Authentication​

Every request is authenticated with an API key. Get one in the console, keep it on your server, and send it as a bearer token (or the X-API-Key header):

curl https://api.lookalike.com/v1/identities \
-H "Authorization: Bearer $LOOKALIKE_API_KEY"

Keys start with lk_, and the full key is shown once, when you create it. Treat them like passwords — keep them server-side, never in client code. A missing, invalid or revoked key returns 401.

The building blocks​

The API is built around two objects:

  • An identity is who your users talk to — a name and instructions pointing at an avatar (the face) and a voice. You create it once and reuse it everywhere.
  • A session is a live conversation that brings an identity to life over LiveKit.

Start from a stock avatar and voice, or make your own from a photo and a recording. See Core concepts for the details.

The journey, end to end​

From zero to a live conversation is four steps.

1. Get an API key​

Get your API key: sign in and the key is created for you. This is also where you buy credits and watch usage.

2. Create an identity​

Pick a stock avatar and voice (GET /v1/avatars?public=true, GET /v1/voices?public=true), or make your own with POST /v1/avatars and POST /v1/voices. Then create the identity and poll GET /v1/identities/{id} until it is active.

curl -sS -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 concise product guide." \
-F "avatar_id=avt_stock_sophie" \
-F "voice_id=voc_stock_sophie"
# -> { "id": "id_...", "object": "identity", "status": "active", ... }

You can send an image and audio file instead of the ids; the identity is then creating until its new avatar is made. Full field list: Create an Identity.

3. Start a session​

Pass the identity's id as identity_id and get back a session with everything needed to join its LiveKit room under transport: the server URL and an access token.

curl -sS -X POST https://api.lookalike.com/v1/sessions \
-H "Authorization: Bearer $LOOKALIKE_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "identity_id": "id_..." }'
# -> { "id": "sess_...", "object": "session", "status": "pending",
# "transport": { "type": "livekit", "url": "wss://...", "room_name": "sess_...", "token": "eyJ..." }, ... }

4. Join and talk​

Connect with any LiveKit client using transport.url and transport.token. The token is minted server-side, so your browser never sees your API key. The avatar listens and responds in real time, handling turns and interruptions on its own. To end the session, either leave the room or call POST /v1/sessions/{id}/end with the sess_ id.

import { Room } from 'livekit-client';

const room = new Room();
await room.connect(livekitUrl, token);
await room.localParticipant.setMicrophoneEnabled(true); // so the avatar can hear you

Full request, response, and client examples: Realtime API.

Billing​

Usage is metered in credits from a single balance: creating identities, avatars and voices is free, and a realtime session is charged per minute while the avatar is streaming. Buy credits and track usage in the Console. See Billing & credits for rates.

Next steps​