
The client: pick a face and a voice, then start a call.
How a call works
A call has three parts. You deploy the avatar model on Reactor, and you run the voice agent and the client yourself. All three meet in a LiveKit room:
The room runs on your own LiveKit project, and LiveKit carries all the audio and video between the three parts. When
you speak, your voice goes to the voice agent, which works out an answer with OpenAI Realtime. The agent does not play
that answer to you itself. It streams the speech to the avatar instead. The avatar renders a face that says the words,
and publishes the video and the speech together, in the name of the agent. In the call, you see and hear one speaker,
whose lips move with the words.
What happens when you start a call
The client sets up every call in the same order. The avatar joins the room before you do, so the face is ready when you arrive:Keeping real time
The avatar speaks in chunks of 1.0 second: 16 frames, rendered from 1.0 second of the agent’s speech. While one chunk plays, the GPU renders the next one. Speech must play at its normal speed, so the GPU has 1.0 second to finish each chunk:While one chunk plays, the GPU renders the next one.
Requirements
- A Reactor account with Serve access, remote builds, and capacity for 1 B200 instance.
- The latest Reactor CLI.
- LiveKit credentials: the project URL, API key, and API secret.
- An OpenAI API key with access to the Realtime API.
- A Reactor API key for the account that owns the project.
- Python 3.12 with uv, and Node.js 20 or later.
- About 18 GB of free disk for the weights.
- A browser with a microphone.
Project structure
examples/talking-avatar/
aura-model/reactor.yaml
tells Reactor which class to serve and how to build its image. These are its main settings:
reactor.yaml (main settings)
1. Prepare the project
The steps use the Reactor CLI. If it is not on your machine yet, install it first. Sign in, clone the Reactor cookbook, and open the model workspace:Terminal
reactor.yaml, set model.name to your account-qualified project name. Replace your-org with your account slug:
reactor.yaml (model name only)
weights/. They are about 18 GB:
Terminal
weights/aura/, the video decoder and text encoder of Wan2.1 in
weights/wan2_1/, and Kyutai’s Mimi speech codec in weights/mimi/.
2. Deploy the model
One command builds the image, uploads the weights, and deploys the model to theproduction environment of your
project. Run it from the model workspace, in a region where your account has a B200 allocation. For example, if your
allocation is in us-west:
Terminal
us-west with your allocated region. Selecting a region does not grant capacity.
If deployment reports that your account has no NVIDIA_B200 allocation, check your
account capacity or contact Reactor.
reactor deploy returns when the deployment reports ready. While it runs, follow each stage here:
- Build and Publish: the deploy terminal prints the build output, then uploads the weights. The first upload takes a few minutes: the weights are about 18 GB.
- Start:
reactor status productionshows the phase of the instance.reactor logs production --followshows the model loading, compiling, and rendering its 6 warmup chunks. - Ready:
reactor status productionreportsready.
Terminal
deploying and the phase of the instance:
pending, pulling_image, syncing_weights, and loading. The deployment is ready for a
call when Status is ready and the region reports 1 ready.
Once an instance exists, follow its startup logs:
Terminal
3. Start the voice agent
The voice agent runs on your machine. From the model workspace, open its folder and create its settings file:Terminal
.env, set your LiveKit URL, API key, and secret, and your OpenAI API key. Set AVATAR_AGENT_NAME to a name of your
own, such as avatar-agent-yourname. The client brings the agent into a call by this name, so the agent joins only your
calls.
Start the agent, and keep the terminal open:
Terminal
registered worker with your agent name.
4. Start the client
The client is a web page, and it runs on your machine too. In another terminal, from theexamples/talking-avatar folder,
install it and create its settings file:
Terminal
.env.local, set the same LiveKit values and the same AVATAR_AGENT_NAME as in the agent’s .env. Then point the
client at your deployment: delete the REACTOR_RUNTIME_URL line, and set your API key and project name:
.env.local (the avatar model)
Terminal
5. Talk to the avatar
1
Pick a face and a voice
Choose one of the four faces, or press + to upload your own: one face, frontal, and well lit. Choose a voice,
and, if you want, tell the agent who it is in Instructions.
2
Start the call
Press Start call and allow the microphone. The avatar greets you a few seconds later. The room panel shows
each participant as it joins.
3
Talk
Speak to the avatar. To interrupt it, talk over it. Press End call to hang up.
6. Stop the deployment
Ending the call leaves the GPU instance running. Stop the agent and the client with Ctrl+C in their terminals. Then, from the model workspace, stop the instance:Terminal
Terminal
Use LiveAvatar instead
The example ships a second avatar model, LiveAvatar, behind the same contract and the same application code. Use it for commercial use, or when you need 25 frames per second:
To deploy it, follow steps 1 and 2 in
liveavatar-model/ instead of aura-model/, with the project name
your-org/liveavatar. The voice agent and the client work with either model: in step 4, set
REACTOR_MODEL=your-org/liveavatar.
Troubleshooting
To find the cause of a startup or call error, follow the model’s logs from the model workspace:Terminal
Next
Model walkthrough
Read how the avatar model plans, renders, and sends each chunk, and how it handles interrupts.
Scaling
Run more instances, or limit them to the regions you select.