**Settings → Models** shows which AI model runs each kind of work Teaflask does for your organization, and what pays for it: your API key for the model's provider, or else your Teaflask balance. Owners choose the models there.

## Kinds of work

These are the kinds of work Teaflask runs on models:

- Brew: the replies of Brew, the assistant in your dashboard.
- Doc checks and rewrites: writing the checks that keep each doc true to your code, and drafting a fix when a doc goes stale.
- Action and page scans: reading your code or API specs for actions your agents could take, and mapping your app's pages.
- Writing tests: turning a conversation into a test.
- Test runs: three models besides your agent's own. One plays the outside systems your agent calls, one plays the user, and a judge decides whether each check passed. They run on the models chosen here even when your agent uses the same model. See [Tests](/tests).
- Learning: two models. An analyst reads your users' journeys and conversations and writes the findings, and a classifier sorts them for the analyst. See [Learning](/steep-learning).
- Summaries and safety checks: small models that serve conversation replies, each from the same provider as the reply it serves and paid the same way.
- Search: indexing and searching your docs.

Your agents' replies run on the model set in each agent's editor; see [Model](/model).

## Choose the model for a kind of work

An owner chooses the model for each kind of work in **Settings → Models**. Every member can see the page, but only owners can change it.

Each kind of work offers only the models Teaflask has proven for it, and for now some offer models from a single provider. Until an owner chooses, each kind of work runs on Teaflask's default. Choosing the option marked **(default)** goes back to it, and follows Teaflask's default if it changes later.

A new choice applies to work that starts after it; a doc check, rewrite, scan or Learning analysis already running finishes on its model. If a model you chose stops being offered for a kind of work, that work runs on the default.

The model an owner chooses for Brew is the one every new Brew conversation starts on. Any member can still pick another model for one conversation in Brew's composer, and that pick is kept.

## What pays for each kind of work

If your organization has an API key for the model's provider, such as Anthropic or OpenAI, in **Settings → Keys**, that key pays; otherwise your Teaflask balance pays. A declined key doesn't fall back to the balance: work on that provider's models stops until you update the key. The same rule covers Brew, your agents' replies, Playground chats, test runs and background work such as doc checks and scans.

**Settings → Models** shows what pays for each kind of work right now. When a kind of work can't run, the page says why and what fixes it: top up your balance in [Billing](/billing), add a key for the model's provider in [Keys](/keys), or update a declined key. A key you've just added pays once Teaflask has checked it.

## Exceptions to the payment rule

A few things don't follow the usual rule of your key for the model's provider, else your balance:

- OpenRouter keys pay only for your agents' replies, including the summaries and safety checks that serve them. Your balance never pays for OpenRouter models, and no other kind of work runs on them.
- Learning's classifier runs only on OpenAI for now, so Learning needs an OpenAI key or a funded balance, besides whatever pays for the analyst you choose.
- Teaflask pays for search, the indexing and searching of your docs.

## Backup models

Doc checks and rewrites, action and page scans, writing tests and Learning's analyst can switch to a backup model when their chosen model is down. **Settings → Models** names each one's backup and what pays for it.

A backup never moves work your own key pays for onto your balance, so without a key of yours that can pay for a backup, that work has none. Test runs and Learning's classifier have no backup. Work that stops because its model can no longer be paid for doesn't switch models: it resumes on the model it started on.

## Finish the Choose your models step

**Choose your models** is the first step in the **Get started** checklist, and only owners see it. The step is done while every kind of work your organization uses can be paid for, and it reopens when one can't. While it's open, a line under it beginning "Can't be paid for yet:" names that work and its provider.

To finish the step, add a key for that provider in **Settings → Keys**, add funds in **Settings → Billing**, or, where another model is offered, choose one your organization can pay for.
