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

# Models

> The three voice models an agent can run on, how automatic works, and how to choose, switch and read a model over the API.

An agent speaks and listens through one of three voice models. You can leave the choice to Yappr, or pin it per agent.

| `model` | Name | Voices | What it is |
| - | - | - | - |
| `gemini-3.1-flash-live` | Gemini 3.1 Flash Live | The thirty [standard voices](https://docs.goyappr.com/api-reference/agents/voices.md#standard-voices) | Runs Hebrew and multilingual agents today. Takes the full agent surface: `temperature`, the three `vad_*` turn-taking settings and `type: "flow"` agents. |
| `gemini-3.8-live` | Gemini 3.8 Live | The same thirty standard voices | The newer Gemini model, and what automatic gives every language other than Hebrew and multilingual. Same settings as the other Gemini model. |
| `gpt-live` | GPT Live | The eight [expressive voices](https://docs.goyappr.com/api-reference/agents/voices.md#expressive-voices) | Handles its own turn-taking and expressiveness, so `temperature` and `vad_*` are not accepted and flow agents cannot use it. It starts speaking and answers after a tool call more slowly than the Gemini models, and its Hebrew has had less testing. |

The ids are Yappr's own and stay the same whatever the provider calls its models.

## Automatic

`model: null` means **automatic**: Yappr picks the Gemini model by the agent's [`language`](https://docs.goyappr.com/api-reference/agents/languages). Today Hebrew (`he`) and multilingual (`multi`) agents run `gemini-3.1-flash-live` and every other language runs `gemini-3.8-live`, because Gemini 3.8's first words on a Hebrew call are not yet as reliable as 3.1's, and a multilingual agent's caller may open in Hebrew. All three models speak every language.

Every agent is automatic until someone chooses, and creating an agent without a `model` makes it automatic. Nothing changed for agents that existed before models could be chosen: they are automatic and run on exactly what they ran on.

Read both fields to see where an agent stands:

```json theme={null}
{ "id": "…", "voice": "Rachel", "language": "he", "model": null, "resolved_model": "gemini-3.1-flash-live" }
```

* `model` is the choice: one of the three ids, or `null` for automatic. A `gpt-live` agent always reads `gpt-live`, because GPT Live is never automatic.
* `resolved_model` is read-only and is what the agent's calls run on: the `model` when it is set, and what automatic gives the agent's language when it is `null`. For an **automatic** agent it can change when Yappr moves a language to a better model; a pinned `model` never moves.

Choose a model when you want to be sure which one runs, for example to keep an English agent on `gemini-3.1-flash-live`, to try `gemini-3.8-live` on a Hebrew agent, or to compare the two by [duplicating](https://docs.goyappr.com/api-reference/agents/duplicate.md) an agent and giving the copy the other model.

## Choosing a model

Over the API, `model` is accepted on [Create](https://docs.goyappr.com/api-reference/agents/create.md), [Update](https://docs.goyappr.com/api-reference/agents/update.md) and [Duplicate](https://docs.goyappr.com/api-reference/agents/duplicate.md), and read on every agent, in lists and in [Agent settings](https://docs.goyappr.com/api-reference/agents/settings.md).

```bash theme={null}
# Pin Gemini 3.8 Live. The voice does not change.
curl -X PATCH "$YAPPR_API_URL/agents/$AGENT_ID" \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "gemini-3.8-live" }'

# Back to automatic.
curl -X PATCH "$YAPPR_API_URL/agents/$AGENT_ID" \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": null }'

# Move to GPT Live. It speaks with its own voices, so name one.
curl -X PATCH "$YAPPR_API_URL/agents/$AGENT_ID" \
  -H "Authorization: Bearer $YAPPR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "gpt-live", "voice": "Keren" }'
```

`voice` on its own keeps working exactly as it did, so no client has to change: a voice belongs to one family, and naming one chooses the family.

## Switching rules

| You send | What happens |
| - | - |
| `model` between `gemini-3.1-flash-live`, `gemini-3.8-live` and `null` | The model changes and the voice stays. |
| `model: "gpt-live"` or a Gemini model, **with** a `voice` of that model's family | Both change together. |
| `model` alone that would cross to the other family (`gpt-live` on a Gemini voice, or a Gemini model or `null` on a `gpt-live` agent) | `400 WORKFLOW_SETTINGS_MODEL_INVALID`. The voice would have to change with it, and the message lists the voices to choose from. Nothing is saved. |
| `model` and a `voice` of different families | The same `400`, naming the way out. |
| `voice` alone from the other family | The agent moves to that family. Going to `gpt-live` drops a pinned Gemini model; coming back leaves the agent automatic, with its Gemini voice restored. |
| `model: "gpt-live"` with `temperature` or `vad_*`, or on a flow agent | Refused, as the same settings are on a `gpt-live` voice. |
| `engine`, `engine_voice` or `live_model` | Not fields. `400 WORKFLOW_SETTINGS_REQUEST_INVALID`. |

On a **create**, `model` takes a Gemini model or `null` only: a new agent starts on a Gemini voice, so `gpt-live` is chosen with a follow-up `PATCH`. On a **duplicate**, `model` has to be one the copied voice belongs to; to move the copy across families, duplicate it and then `PATCH` the copy.

## Errors

| Status | Code | Cause |
| - | - | - |
| `400` | `WORKFLOW_SETTINGS_MODEL_INVALID` | On `PATCH /agents/{id}`: the `model` is not `gemini-3.1-flash-live`, `gemini-3.8-live`, `gpt-live` or `null`; it crosses families without a `voice`; its `voice` is from another family; or `gpt-live` was sent with settings it does not read or for a flow agent. The message lists what to send. |
| `422` | `WORKFLOW_SETTINGS_MODEL_INVALID` | The same, found while saving (the agent turned out to be on `gpt-live`, so a Gemini model needs a Gemini voice). |
| `400` | `WORKFLOW_AGENT_REQUEST_INVALID` | On `POST /agents`: an unknown `model`, or `gpt-live`. `issues[]` has an entry at `/model`. |
| `422` | `WORKFLOW_DUPLICATE_REQUEST_INVALID` | On a duplicate: a `model` that is not one of the three ids or `null`. |
| `422` | `WORKFLOW_DUPLICATE_MODEL_INVALID` | On a duplicate: a `model` the copied voice does not belong to. Nothing was copied. |

## Reading it from the dashboard

The dashboard's agent page shows the same three models with their providers, and an agent that has not chosen reads **Automatic**, with the model it currently runs for its language. Choosing one there is the same write as `PATCH /agents/{id}` with `model`.


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