> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reactor.inc/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> To build and serve your own model, start at /deploy/development/quickstart and /deploy/development/overview. Authenticate with reactor auth login, scaffold with reactor init, then run reactor deploy production from the workspace. Deploy builds remotely by default, creates a missing workspace project and its production environment, and waits for rollout. No local Docker or model.version bump is needed. Projects own images and weight sets; environments select the image, weights, GPU, instance count, and variables. Create staging explicitly with reactor environment create staging before deploying to it. Use reactor scale for capacity and reactor rollback for an earlier revision’s image and weights. See /deploy/platform/projects and /deploy/platform/deploy. Client SDK modelName remains account-qualified and selects production by default. Model code imports reactor_runtime; Python client code imports reactor_sdk. Local testing is optional; /deploy/development/local-testing covers reactor run, which needs Docker.
> Reactor hosts multiple models, each with its own connect slug (modelName) and command/event schema. The video model catalog — slug, typed SDK package, and links to its schema — is at /model-api-reference/overview. Robotics policy documentation starts at /robotics/overview; The launch policies are Cosmos Nano DROID (/robotics/cosmos/nano-policy-droid/), DreamZero DROID (/robotics/dreamzero/droid/), and FLUX Action DROID (/robotics/flux-action/droid/), organized by model family and embodiment. Some models expose one slug per experience (e.g. HappyOyster); always take the slug from the model's own pages, never guess it.
> Fastest path to a working app: `npx create-reactor-app my-app --model=<slug>` scaffolds a complete app with secure auth wired up. Typed TypeScript SDKs are published as @reactor-models/<model>; Python uses the base reactor-sdk package.
> Auth: exchange an API key (rk_...) for a JWT via POST https://api.reactor.inc/tokens from your server. Never put the API key in client-side code.
> Append .md to any docs URL for clean Markdown. Search these docs via the MCP server at https://docs.reactor.inc/mcp.

# Deploy a Talking Avatar

> Deploy AURA, a talking avatar model, on a B200 and speak with it on a call through a LiveKit voice agent.

Deploy [AURA](https://github.com/kyutai-labs/aura) on 1 B200 and talk to it on a video call. A voice agent holds the
conversation, and AURA gives it a face: from one portrait, it renders video that lip-syncs to the agent's speech, live.

![The Talking Avatar page with a portrait on the left, and on the right the face, voice, and instructions controls, a Start call button, and a diagram of the room with You, Agent, and Avatar.](https://mintcdn.com/reactortechnologiesinc/O-hxY_QEby1JdaCf/images/talking-avatar/talking-avatar-client.jpg?fit=max\&auto=format\&n=O-hxY_QEby1JdaCf\&q=85\&s=5e80e2a6811f4735339e268ee0b93c1d)

The client: pick a face and a voice, then start a call.

| Item | Value |
| - | - |
| Model | [AURA-1.3B](https://huggingface.co/kyutai/AURA-1.3B) by Kyutai, 1.3B parameters |
| Deployment GPU | 1 NVIDIA B200, of which the model uses about 36 GB |
| Inputs | 1 portrait, and the agent's speech at 24 kHz |
| Output | 576x576 video at 16 frames per second, with the agent's speech |
| Render time | About 0.61 seconds for each 1.0-second chunk of video on 1 B200 |

> [!WARNING]
>
> AURA is for non-commercial use only. Its code is under the
> [Snap Inc. Non-Commercial License](https://github.com/kyutai-labs/aura/blob/main/LICENSE.txt), and its weights are
> under [CC BY-NC 4.0](https://huggingface.co/kyutai/AURA-1.3B). For commercial use, deploy
> [LiveAvatar](#use-liveavatar-instead) instead.

## 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:

![Three participants share one LiveKit room. You join from the client in the browser and send your voice to the voice agent, which holds the conversation with OpenAI Realtime. The voice agent streams its speech to the avatar, which runs on Reactor on one B200. The avatar sends its video and the agent's voice to the client.](https://mintcdn.com/reactortechnologiesinc/AFS5VXMUwc0tUo4V/diagrams/talking-avatar-room.svg?fit=max\&auto=format\&n=AFS5VXMUwc0tUo4V\&q=85\&s=beac727440bf5593effe0e9e6bec0b8b)

| Part | What it does | Where it runs |
| - | - | - |
| Avatar model | Renders the face from the portrait and the agent's speech | Reactor, on 1 B200 |
| Voice agent | Hears you, and answers through OpenAI Realtime | Your machine |
| Client | A web page: you pick a face and a voice, start the call, and talk | Your machine, in the browser |

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:

![The client creates the LiveKit room and invites the voice agent, which joins. The client starts a session of the avatar on Reactor with your portrait, and invites it to the room. The avatar joins, speaking for the agent. Then the client joins, and the call starts.](https://mintcdn.com/reactortechnologiesinc/AFS5VXMUwc0tUo4V/diagrams/talking-avatar-call.svg?fit=max\&auto=format\&n=AFS5VXMUwc0tUo4V\&q=85\&s=874a2784c01676eea108d79894c3c15b)

When you talk over the avatar, the agent interrupts it, and the avatar stops at once. Ending the call stops the session
and deletes the room.

### 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:

![A timeline in columns of 1.0 second. On the GPU row, chunks 1 to 4 render one after another, each in about 0.61 seconds, so the GPU is idle for the rest of each column. On the playback row, each chunk plays in the column after it renders: chunk 1 plays while chunk 2 renders, and so on.](https://mintcdn.com/reactortechnologiesinc/AFS5VXMUwc0tUo4V/diagrams/talking-avatar-realtime.svg?fit=max\&auto=format\&n=AFS5VXMUwc0tUo4V\&q=85\&s=10b8af680ac0111a726fdfcd1c9551f8)

While one chunk plays, the GPU renders the next one.

On one B200, AURA renders a chunk in about 0.61 seconds, so each chunk is ready well before the one before it finishes
playing.

The chunk size also sets how fast the avatar answers. Before the first chunk of a reply can render, the model needs up
to 1.0 second of the agent's speech, and the render takes another 0.61 seconds. The face starts to talk up to about
1.6 seconds after the agent does.

[Model walkthrough](https://docs.reactor.inc/deploy/development/video/talking-avatar/model-walkthrough.md#the-render-loop) explains how the model
plans, renders, and sends each chunk.

## Requirements

* A Reactor account with Serve access, [remote builds](https://docs.reactor.inc/deploy/platform/build.md), and capacity for 1 B200 instance.
* The latest [Reactor CLI](https://docs.reactor.inc/deploy/platform/installation#install-the-latest-release).
* [LiveKit](https://livekit.io) credentials: the project URL, API key, and API secret.
* An OpenAI API key with access to the Realtime API.
* A [Reactor API key](https://reactor.inc/account/api-keys) for the account that owns the project.
* Python 3.12 with [uv](https://docs.astral.sh/uv/getting-started/installation/), and Node.js 20 or later.
* About 18 GB of free disk for the weights.
* A browser with a microphone.

## Project structure

```text examples/talking-avatar/ highlight={2,4-5} theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
examples/talking-avatar/
├── aura-model/         # The avatar model: you deploy it on Reactor
├── liveavatar-model/
├── voice-agent/        # The voice agent: you run it
├── client/             # The client: you run it and talk from it
└── skill/
```

[`aura-model/reactor.yaml`](https://github.com/reactor-team/reactor-cookbook/blob/main/examples/talking-avatar/aura-model/reactor.yaml)
tells Reactor which class to serve and how to build its image. These are its main settings:

```yaml reactor.yaml (main settings) theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
model:
  name: your-org/aura           # Set this: replace your-org with your account slug

runtime:
  import: aura_app:AuraAvatar  # The model class to serve
  config: config.yml           # The file that load() reads

build:
  runtime_version: "3.11.9"    # Reactor Runtime version
  cuda_version: "12.8.1"
```

The full file also maps the signals of the LiveKit room to the model. The
[model walkthrough](https://docs.reactor.inc/deploy/development/video/talking-avatar/model-walkthrough.md#how-the-room-reaches-the-model) explains that
mapping.

The steps below take the three parts from setup to a call with the avatar on a B200.

## 1. Prepare the project

The steps use the Reactor CLI. If it is not on your machine yet,
[install it](https://docs.reactor.inc/deploy/platform/installation#install-the-latest-release) first.

Sign in, clone the Reactor cookbook, and open the model workspace:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor auth login
git clone https://github.com/reactor-team/reactor-cookbook.git
cd reactor-cookbook/examples/talking-avatar/aura-model
```

In `reactor.yaml`, set `model.name` to your account-qualified project name. Replace `your-org` with your account slug:

```yaml reactor.yaml (model name only) theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
model:
  name: your-org/aura
```

Download the weights into `weights/`. They are about 18 GB:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
uv venv --python 3.12
source .venv/bin/activate
uv pip install "huggingface_hub[cli]<1"
python prepare_weights.py --output ./weights --allow-download
```

The folder gets the AURA checkpoint in `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 the `production` 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`:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor deploy production \
  --gpu NVIDIA_B200x1 \
  --desired 1 \
  --require-regions us-west \
  --weights ./weights
```

Replace `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](https://docs.reactor.inc/deploy/platform/gpu-capacity.md#check-account-capacity) or contact Reactor.

![Deployment lifecycle: build the image, publish it to production, start the model on 1 B200, then become ready for clients. When you are done, scaling production to zero stops the GPU instance.](https://mintcdn.com/reactortechnologiesinc/AFS5VXMUwc0tUo4V/diagrams/talking-avatar-deploy-lifecycle.svg?fit=max\&auto=format\&n=AFS5VXMUwc0tUo4V\&q=85\&s=aec0837ba4ae7ad9ca815a3fa9a415fd)

`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 production` shows the phase of the instance. `reactor logs production --follow` shows the
  model loading, compiling, and rendering its 6 warmup chunks.
* **Ready:** `reactor status production` reports `ready`.

Run these commands from another terminal in the model workspace:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor status production
```

While the instance starts, the region reports `deploying` and the phase of the instance:

```text Starting theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
Project:      your-org/aura
Environment:  production
Revision:     1
Status:       deploying
Regions:
  us-west     deploying: 1 loading
Image:        5b07e3c91d2a
Weights:      8c41d2e07a9f
GPU:          NVIDIA_B200x1
```

```text Ready theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
Project:      your-org/aura
Environment:  production
Revision:     1
Status:       ready
Regions:
  us-west     ready: 1 ready
Image:        5b07e3c91d2a
Weights:      8c41d2e07a9f
GPU:          NVIDIA_B200x1
```

The instance moves through `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:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor logs production --follow
```

The runtime logs stay empty during the build and publish stages, because the model has not started yet.

## 3. Start the voice agent

The voice agent runs on your machine. From the model workspace, open its folder and create its settings file:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
cd ../voice-agent
cp .env.example .env
```

In `.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:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
uv run python agent.py dev
```

The agent is ready when its log shows `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 the `examples/talking-avatar` folder,
install it and create its settings file:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
cd client
npm install
cp .env.example .env.local
```

In `.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:

```bash .env.local (the avatar model) theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
REACTOR_API_KEY=rk_...
REACTOR_MODEL=your-org/aura
```

The client's server keeps every key. The browser only gets a token for the room.

Start the client:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
npm run dev
```

Open [http://localhost:3000](http://localhost:3000). The status in the top corner says **Ready** when the client can
reach LiveKit, the agent, and your deployment.

## 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:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor scale production --desired 0
```

The command waits for the change and prints the status. Your project, image, and weights remain available. To start
the model again, scale it back to 1:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor scale production --desired 1
```

## Use LiveAvatar instead

The example ships a second avatar model, [LiveAvatar](https://github.com/Alibaba-Quark/LiveAvatar), behind the same
contract and the same application code. Use it for commercial use, or when you need 25 frames per second:

| | AURA (`aura-model/`) | LiveAvatar (`liveavatar-model/`) |
| - | - | - |
| Output | 576x576, 16 frames per second | 512x512, 25 frames per second |
| Model | AURA-1.3B, 1.3B parameters | LiveAvatar on Wan2.2-S2V-14B, 14B parameters |
| On one B200 | About 36 GB; a 1.0-second chunk in 0.61 seconds | About 80 GB; a 0.48-second chunk in 0.46 seconds |
| Weights | About 18 GB | About 50 GB |
| License | Non-commercial | Apache 2.0 |

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:

```bash Terminal theme={"theme":{"light":"github-light","dark":"github-dark-high-contrast"}}
reactor logs production --follow
```

| Symptom | What to check |
| - | - |
| No GPU capacity | Your account needs Serve access and a B200 allocation in the region you selected. |
| Startup takes a few minutes | This is expected on the first start. The model loads, compiles, and renders 6 warmup chunks before it reports `ready`. |
| The client says "Setup incomplete" | Run `curl http://localhost:3000/api/status` to see what `.env.local` is missing. Restart `npm run dev` after you edit it. |
| "The voice agent did not join" | The agent is not running, or `AVATAR_AGENT_NAME` is not the same in `.env` and `.env.local`. |
| "The avatar could not join the room" | The LiveKit key and secret do not belong to the project in `LIVEKIT_URL`. |
| The avatar appears but never speaks | Look in the agent's log for its OpenAI Realtime session, and check `OPENAI_API_KEY`. |
| No microphone prompt | Open the client as `http://localhost:3000`. Browsers allow the microphone only on `localhost` or HTTPS. |
| The picture freezes during a call | The model failed during the call. Its log says `the avatar model failed`, with the reason. End the call and start another: the model keeps serving. |

## Next

> [card] [Model walkthrough](https://docs.reactor.inc/deploy/development/video/talking-avatar/model-walkthrough.md)
>
> Read how the avatar model plans, renders, and sends each chunk, and how it handles interrupts.

> [card] [Scaling](https://docs.reactor.inc/deploy/platform/scaling.md)
>
> Run more instances, or limit them to the regions you select.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.