# Models and cost

URL: https://codepanel.ai/docs/choosing-models

The economy, balanced and frontier tiers, what a review round costs and what drives it, and how unpriced models affect limits.

Any model your keys reach can run any reviewer or the orchestrator; tiers only pick the default. For which model to put where, see [Choosing a code review model](/guides/choosing-a-model-for-code-review). Current prices are on [Models](/models).

## Cost tiers

| Tier | Used for | Default pick | Roles |
| --- | --- | --- | --- |
| Economy | Reviewers that read the whole diff | Small, fast models (Haiku-class; Gemini Flash rather than Flash-Lite) | Bugs & Security, Tests & Maintainability, Docs & Best Practices, Design & UX |
| Balanced | The orchestrator and judgement-heavy roles | Mid-size models (Sonnet-class) | Performance, API & Migrations |
| Frontier | Deep passes | The top of the provider's general ranking | Security |

A tier picks the model when a reviewer or orchestrator is created, and keeps it current while the seat [follows its tier](#follow-the-newest-model). It is a per-provider ranking of model families applied to the models your key reported, matched by prefix with the shortest id winning, so a base model beats a dated snapshot. **Add reviewer** shows the pick; `list_models`, `codepanel models` and `GET /api/v1/models` list what your keys reach.

With no ranked economy or balanced model on your key, CodePanel takes:

1. The cheapest model it can price (always the case for xAI and Moonshot, which have no such ranking).
2. If none is priced (Mistral, custom endpoints), the provider's top-ranked model.
3. If nothing matches the ranking, the first model the provider listed.

## Follow the newest model

A seat that follows its tier moves to the tier's top-ranked model when a newer one reaches your key or CodePanel credits, so the panel keeps running the newest model for each job without you editing it.

**Which seats follow:**

- Reviewers and the orchestrator from the [starter panel](/docs/reviewers#starter-panel), from `apply_panel`, and from adding a reviewer by role without naming a model.
- Any seat you set to follow: `update_panel_member` with `followTier` (`economy`, `balanced` or `frontier`), or `followTier` on [`POST /panels/members/update`](/docs/api#post-panelsmembersupdate). The seat moves at once if its tier has a better model.

**What stops a seat following:** choosing a different model for it, or `followTier: null`. Panels set up before this existed do not follow until you turn it on.

**When a seat moves.** CodePanel checks every following seat each night at 05:37 UTC, after it refreshes the models its own keys reach. A seat moves to the highest-ranked model in its tier that:

- Ranks above its current model, or any ranked model when its current one is no longer offered. A model the ranking does not name is never chosen.
- Has a price, and makes a typical review call cost at most 1.5 times what one costs now. A pricier model at the top does not stop a move to a cheaper upgrade below it.

A seat on a model CodePanel has no price for stays where it is, since there is no cost to hold the new model to.

A seat named after its model is renamed with it ("Haiku 4.5" becomes "Haiku 5.5"); a role name or a name you chose is kept.

**On your own key**, a seat follows the models your key last reported. They update when you press **Refresh models** in Settings ([Model refresh](/docs/providers-and-keys#model-refresh)). On credits, CodePanel's list updates every day.

`get_panel` shows each member's `followTier` and `lastMove`: the model it moved from and to, why (`upgrade` or `replaced`), and when.

## Cost per round

A round is one call per reviewer plus one for the orchestrator (Design & UX is skipped, free, on rounds with no UI change). Each call costs input tokens at the model's input rate plus output tokens at its output rate.

| Call | Input | Output |
| --- | --- | --- |
| Reviewer | The diff in scope (up to 120,000 characters), surrounding code (up to 80,000), [repo context](/docs/repo-context) (up to 16,000), the pull request description and its instructions | Findings, plus reasoning tokens |
| Orchestrator | The reviewers' findings, the code of only the files they name, and repo context | The final findings and summary |

A model's rates and typical pull-request cost are on its model page, listed on the [Models](/models) hub (such as [Claude Haiku 5.5](/models/anthropic/claude-haiku-5-5)). Actual spend is on the repository's **Spend & budget** tab ([Budgets and limits](/docs/budgets-and-limits#spend-budget-tab)) and in each posted comment's footer. Worked estimates: [How much AI code review costs](/guides/ai-code-review-cost).

### Cost drivers

- **Long prompts.** Some models charge a higher rate for the whole request past a prompt-size threshold (for example most OpenAI models above 272,000 input tokens, Gemini Pro above 200,000).
- **Reasoning.** Thinking tokens bill at the output rate, so higher [effort](/docs/reviewers#reasoning-effort) and models that reason by default cost more.
- **Repo context.** Up to 16,000 characters on every call.
- **Follow-up rounds.** Each push is a round, but incremental rounds read only what changed, so they usually cost less.
- **Time of day.** DeepSeek is half price off-peak. Peak is 01:00-04:00 and 06:00-10:00 UTC on weekdays; weekends are off-peak.

## Unpriced models

A model with no known price (currently Mistral and custom endpoints) is recorded as cost unknown, never free. It runs on your key, but:

- Its calls count as $0 toward [spending limits](/docs/budgets-and-limits). With a per-PR limit set, **Default reviewers** (`/panel`) warns: "CodePanel has no price for <reviewer> (<model>), so calls to it don't count toward this limit, which may be exceeded." The API marks the member `priced: false`.
- Totals that include it are lower bounds; the **Spend & budget** tab says "Some reviews used a model CodePanel has no price for. Those calls count as $0, so the real total is higher."
- It cannot run on CodePanel credits.
