Reading notes8 min read
Which Claude model should you build with?
Anthropic's guide to choosing between Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.2. Start on Opus 5.5 at medium effort, adjust the effort before you change model, and judge each model on what a finished task costs, not on its price per token. It also gives the official prices, a task-to-model table and the rules for mixing models.
- Source
- claude.dev
- Tags
Three words to know
- Token. The small chunks of text a model reads and writes. Providers bill per million tokens, written Mtok.
- Effort. A setting that tells the model how much to think before it answers:
low,medium,high, thenxhighandmax. More effort means more tokens and slower answers. - Claude Code. Anthropic’s coding assistant, which runs in a terminal and works on your files.
Start in the middle, then move
For most coding and knowledge work, start on Opus 5.5 at medium. It is the default model in Claude Code, and it costs half as much per token as Fable 5.2.
From there, move down or up:
- Down to Sonnet 5.5 for well-scoped work, such as a bug fix or a feature built from a spec. A clear spec is not enough on its own: a migration or a performance optimisation can be clearly specified and still need Opus 5.5, or Fable 5.2 for a major one.
- Further down to Haiku 5.5 to sort, route or extract data, and for subagents doing side tasks. A subagent is a helper that the main agent starts for one side job, with its own context.
- Up to Fable 5.2 for the hardest projects in coding, finance and science: when Opus 5.5 at
highstill falls short, or for long runs that nobody watches.
Turn the effort dial before you switch model
The guide calls effort “a finer dial for both cost and capability”. Past high, one more level can cost as much as a bigger model. At that point, try the next model up at a lower effort instead. More effort also makes you wait longer, and it cannot give a model knowledge or skill it does not have.
Which model for which task
These are the guide’s starting points. “Then high” means: raise the effort if the first level is not enough.
| Task | Starting model | Starting effort |
|---|---|---|
| Everyday engineering and debugging, features that span several pull requests | Opus 5.5 | medium, then high |
| Classification, routing, tagging, high-volume data extraction | Haiku 5.5 | medium |
| Subagents that search files, read logs, summarise | Haiku 5.5 or Sonnet 5.5 | model default |
| Chat and interactive sessions | Sonnet 5.5 (Haiku 5.5 for simple chat at volume) | low or medium |
| Well-scoped coding (bug fixes, work from a spec) | Sonnet 5.5 | medium, then high |
| Everyday documents, slides, spreadsheets | Sonnet 5.5 | high (medium in Claude Code) |
| Repeated agent tasks (investigation, review, drafting) | Sonnet 5.5 | medium |
| Computer use (the model drives a screen, mouse and keyboard) and image-heavy work | Opus 5.5 | medium |
| Major refactors, migrations, architecture, leading many subagents | Fable 5.2 | medium, then high |
| Deep research, scientific or quantitative analysis | Fable 5.2 | medium, then high |
| Not sure yet | Opus 5.5 | medium |
The four models side by side
Prices are in US dollars per million tokens. Input is what you send; output is what the model writes. A cache read is input the provider already stored from an earlier turn, billed far lower. The context is how much text the model can take in at once. Thinking is the reasoning a model writes before it answers.
| Haiku 5.5 | Sonnet 5.5 | Opus 5.5 | Fable 5.2 | |
|---|---|---|---|---|
| Built for | High volume, low cost | Fast help on scoped tasks | Daily driver for complex work | The most ambitious technical work |
| Input / output per Mtok | $0.10 / $0.50 (prompt ≤100K), $0.50 / $2.50 (>100K) | $2 / $10 | $4 / $20 | $8 / $40 |
| Cache read per Mtok | $0.01 (≤100K), $0.05 (>100K) | $0.10 | $0.20 | $0.20 |
| Context / max output | 1M / 128K | 1M / 128K | 1M / 128K | 1M / 128K |
| Thinking on the API | Adaptive, can be turned off at high effort or below |
Adaptive; between_tools option |
Always on | Always on |
| Default effort (API) | medium |
high (medium in Claude Code) |
medium |
high (medium in Claude Code) |
| Fast mode | No | No | Yes | Yes |
A fifth model, Claude Mythos 5.2 (cybersecurity, life sciences), exists but is only available through verification programmes.
What you trade
A benchmark is a fixed set of test tasks used to compare models. All the figures below come from the guide.
- Capability against cost per task. A higher price per token does not always mean a higher cost per task. On Terminal-Bench 3.0, Fable 5.1 at
maxscored 58.0% and Opus 5.5 athigh58.9%, with half the tokens. On FrontierCode 2.0, Fable 5.2 athighmatched Opus 5.5 atmax(45.3% against 45.5%) for about half the cost per task. So test Fable 5.2 before you push Opus pasthigh. Price the hardest tasks too: on one 20-problem benchmark, two problems took 43% of the spend. - Waiting time against accuracy. On SWE-bench Pro, Opus 5.5 at
mediumscored about 2.5 points belowhigh, for about 70% of the cost. Atlowit scored about 8 points below, for a third of the cost; atxhigh, about 1.4 points above, for 2.5× the cost. Running everything atlow, then re-running only the failures athigh, passed about 97% of tasks at about $0.17 each. Running everything athighpassed 95.3%, at $0.29 each. - Context against cost. Every model takes 1M tokens of context, but each turn sends the whole conversation again. On long runs, most of the input is billed as cache reads. Keep the expensive model’s context lean and use it for decisions; let cheaper subagents do the long reading. Haiku 5.5 costs 5× more once a prompt passes 100K tokens.
Mixing models
- Switch at a natural break. The cache belongs to the model that wrote it. The first turn on a new model therefore pays to write the cache for the whole conversation. Run
/compactfirst (it shortens the conversation in Claude Code), or start fresh from a short plan. A model also never reads the thinking of a model above it, so moving down a tier loses the earlier reasoning. - Put subagents on smaller models. Set
model: haikuormodel: sonnetin the subagent’s definition, or setCLAUDE_CODE_SUBAGENT_MODELas the default. Give them work where a mistake is easy to spot: finding files, running tests, reading logs. Keep code changes and judgement on the main model. Explore, the subagent built into Claude Code for searching files, now runs on the session’s model; define your ownExplorewithmodel: haikuto keep searching cheap.opusplan(Opus plans, Sonnet edits) goes the other way: measure it before you adopt it. - The advisor tool (beta). A cheap model doing the work asks a stronger one for guidance. The platform’s own table shows none of four pairings clearly beating the cheap model alone. One pairing, Opus 5.5 with Fable 5.1, gained 1.7 points for 2.1× the money.
- One lead, many workers, for bulk work. When a job is too big for one context window, a top model splits it across many cheaper workers. On a defect search of about 22M tokens, an Opus 5.5 lead with up to 25 Sonnet 5.5 workers cost about a third less than Opus 5.5 alone, for about the same score.
Before you migrate, check compatibility
This part is for developers who call the models through the API. Fable 5.2 rejects (error 400) a request whose history changed before a thinking block, so only ever append to the history. Opus 5.5 and Fable 5.2 cannot turn thinking off. tool_choice: any/tool returns 400 on Sonnet 5.5, Opus 5.5 and Fable 5.2: send auto with strict: true tools. Computer use needs computer_toolset_20260801. Going from Haiku 4.5 to 5.5 drops budget_tokens and non-default sampling parameters. A system that runs several models should build every request for the strictest one.
Measure on your own work
- Pick a sample of real tasks, each with a way to check the outcome: a test, a ticket, a row count.
- Run each candidate at two or three effort levels, in separate sessions, and record the cost from
usage. - Plot score against spend. Keep a multi-model setup only if it beats every single-model point.
- Run the winner alongside the current setup on real traffic before you switch over.
In Claude Code, run one task from your backlog on two models with /model, then compare /usage.
What to take away
The guide swaps the habit of “pick the biggest model” for a procedure: check the result, then adjust effort, then change model, and judge it all on what a finished task costs. Two points apply directly to anyone who runs agents:
- A check is cheaper than more effort. Give the model a way to verify its own work, such as a test, a build or a script that calls the endpoint. That often buys more than a higher effort level, with less waiting. The
lowrun with failures re-run athighis the concrete proof. - The subagents’ model is now your choice. Explore no longer defaults to Haiku, so a session on Opus pays Opus rates to search files, unless you define a cheap
Explore. On the API, Explore is capped at Opus, so a Fable session pays Opus rates too. It is a setting worth checking in any Claude Code setup.
The figures come from Anthropic’s internal runs. The guide says so, and asks readers to measure on their own tasks.
The procedure in one picture
Further reading
- The article: https://claude.dev/blog/which-claude-model-should-you-build-with/
- Spending your effort: https://claude.dev/blog/spending-your-effort/
- What a task costs on Opus 5.5: https://claude.dev/blog/what-a-task-costs-on-opus-5-5/
- Optimizing for cost and intelligence: https://platform.claude.com/docs/en/about-claude/models/optimizing-for-cost-and-intelligence
- Claude Code model configuration: https://code.claude.com/docs/en/model-config