Claude Opus vs Sonnet vs Haiku: which Claude model to use
What each current Claude model is for, what it costs, how fast it is, and which one to pick for coding, writing, agents and bulk work.
Last updated
Opus is Anthropic's model for long, hard, open-ended work; Sonnet is the faster, cheaper model that handles most everyday work almost as well. As of November 30, 2026, the current versions are Claude Opus 5.5 (released September 22, 2026) at $4 per million input tokens and $20 per million output tokens, and Claude Sonnet 5.5 (released September 28, 2026) at exactly half that, $2 and $10. Pick Sonnet by default for coding, writing and agents, and switch to Opus when the task is wide, ambiguous or you are stuck.
There are two more models in the lineup. Claude Haiku 5.5 (October 7, 2026) is the fastest and cheapest, from $0.10 per million input tokens, and Claude Fable 5.2 (November 9, 2026) is the tier above Opus, at $8 and $40. All four have a 1M token context window and 128K tokens of maximum output on the API.
Model pages like this one go stale within months, because Anthropic ships a new version every few weeks. Everything below was checked on Anthropic's own pages on November 30, 2026 (links at the end). To see which model you are on right now in Claude Code, run /model; Anthropic's help center calls it "always the source of truth for your account."
Claude Opus vs Sonnet vs Haiku vs Fable at a glance
Prices are Anthropic's API list prices in USD per million tokens (MTok), as of November 30, 2026.
| Haiku 5.5 | Sonnet 5.5 | Opus 5.5 | Fable 5.2 | |
|---|---|---|---|---|
| Anthropic's one-line description | "For high-volume, latency-sensitive tasks such as classification, extraction, and routing" | "The best combination of speed and intelligence" | "For long-running agentic coding and knowledge work" | "For demanding reasoning and long-horizon agentic work" |
| Input / output price | $0.10 / $0.50 (prompts up to 100K tokens); $0.50 / $2.50 above | $2 / $10 | $4 / $20 | $8 / $40 |
| Cache reads | $0.01 (up to 100K) | $0.10 | $0.20 | $0.20 |
| Batch API (50% off) | $0.05 / $0.25 | $1 / $5 | $2 / $10 | $4 / $20 |
| Relative speed (Anthropic's label) | Fastest | Fast | Moderate | Moderate |
| Fast mode (up to 2.5x output speed) | No | No | Yes, $8 / $40 | Yes, $16 / $80 |
| Context window | 1M tokens | 1M tokens | 1M tokens | 1M tokens |
| Max output (API) | 128K tokens | 128K tokens | 128K tokens | 128K tokens |
| Thinking | Adaptive | Adaptive | Adaptive, always on | Adaptive, always on |
| Default effort on the API | medium | high | medium | high |
| Knowledge cutoff | June 2026 | June 2026 | June 2026 | June 2026 |
| API model ID | claude-haiku-5-5 |
claude-sonnet-5-5 |
claude-opus-5-5 |
claude-fable-5-2 |
| Claude plans | Free and up | Free and up | Pro and up | Max, Ultra, Team premium seats, Enterprise; Pro only with usage credits |
The short version of that table: each step up roughly doubles the price. Opus costs 2x Sonnet, Fable costs 2x Opus, and Haiku is far cheaper than all three (20x below Sonnet on short prompts).
Two details are easy to miss. Haiku 5.5 is the only current model priced by prompt length: a request whose prompt is over 100,000 tokens pays the higher rates for the whole request. And Claude 4.7 and later models use a newer tokenizer that "produces approximately 30% more tokens for the same text," so comparing per-token prices with a Sonnet 4.6 or Haiku 4.5 bill is not like for like.
There is also Claude Mythos 5.2, which Anthropic says "offers the same capabilities" as Fable 5.2 at the same price, but only to organizations verified through programs such as its Cyber Verification Program. Most readers can ignore it.
What each Claude model is for
Anthropic's model selection guide puts it in one matrix. Quoting it directly:
| When you need | Start with | Anthropic's example use cases |
|---|---|---|
| The highest available capability | Fable 5.2 | "Agent sessions that run for hours, multistep deep research, analysis carried through to a finished document, spreadsheet, or deck" |
| Complex agentic coding and enterprise work | Opus 5.5 | "Multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows, computer use" |
| Speed and capability for everyday coding, agent, and enterprise workloads | Sonnet 5.5 | "Code generation, data analysis, content creation, visual understanding, agentic tool use" |
| The lowest latency and price | Haiku 5.5 | "Real-time applications, high-volume intelligent processing, cost-sensitive deployments needing strong reasoning, subagent tasks" |
The same guide says "Most workloads start with Claude Opus 5.5" and, on the models overview, "If you're unsure which model to use, start with Claude Opus 5.5." That advice is written for developers building on the API, where you test once and then optimize. In Claude Code and the Claude apps, where every turn counts against a usage limit, Anthropic's help center leans the other way, as the next sections show.
Claude Opus 5.5
Opus 5.5 is the first model of the 5.5 family. Anthropic's release notes say "It performs at the level of Claude Fable 5.1 on most work and costs 40% less to run than Opus 5." On the API it is the default suggestion for new projects, and it is the default model in Claude Code on every plan. Its thinking is always on; you control how much it thinks with the effort setting.
Claude Sonnet 5.5
Anthropic calls Sonnet 5.5 "a faster, lower-cost complement to Claude Opus 5.5." Its launch post is unusually direct about the gap: "Opus 5.5 remains clearly stronger at complex, open-ended work requiring sustained judgment," while "on several evaluations, Sonnet 5.5 at Max effort even performs comparably to Opus 5.5." It costs the same as Sonnet 5 per token, with cache reads halved to $0.10.
Claude Haiku 5.5
Haiku 5.5 is "the cheapest, fastest, and most capable small model we've released," per Anthropic's release notes, and its launch post calls it Anthropic's "fastest model to date at each model's standard speed." Anthropic says it "pairs well with Opus 5.5 and Sonnet 5.5 as a subagent on coding work," and also that "Sonnet 5.5 and Opus 5.5 remain better choices for complex agentic coding tasks."
Claude Fable 5.2 (above Opus)
Fable 5.2 is "Anthropic's most capable model open to all customers." Anthropic's own advice is not to start there: "For most workloads, start with the latest Claude Opus model... and move to Claude Fable 5.2 when your evals on a Claude Opus model at higher effort still don't meet your requirements." Its launch post calls Opus 5.5 "our strongest daily driver" and Fable best "for the most ambitious, open-ended technical work."
Claude Opus vs Sonnet benchmarks
Only numbers Anthropic publishes are below, from its launch posts for Sonnet 5.5 and Haiku 5.5, read on November 30, 2026. Anthropic itself warns, in its Opus 5.5 launch post, that "at these levels of capability we've found that benchmark margins have become a less reliable guide to real-world differences," so read these as rough shape, not a ranking.
| Benchmark (what it measures) | Haiku 5.5 | Sonnet 5.5 | Opus 5.5 |
|---|---|---|---|
| Terminal-Bench 4.0 (agentic coding) | 39.2% | 70.6% | 66.4% (at xhigh effort) |
| FrontierCode 1.1 Main (agentic coding) | 46.4% | 52.1% (at xhigh effort) | 54.4% |
| CursorBench 4.0 (agentic coding) | not published | 55.5% | 57.8% |
| GDPval-AA v2.1 (knowledge work, Elo) | 1620 | 1844 | 1846 |
| Humanity's Last Exam, with tools | 57.4% | 64.5% | 67.7% |
| Chartography, no tools (chart reading) | 46.4% | 61.6% | 64.4% |
Sonnet and Opus figures come from the Sonnet 5.5 post; Haiku figures from the Haiku 5.5 post, which lists Sonnet 5.5's GDPval-AA score as 1840 rather than 1844. Anthropic notes that Artificial Analysis ran the GDPval-AA tests.
What the table says: on most of these tests Opus 5.5 is a few points ahead of Sonnet 5.5, and on Terminal-Bench 4.0 Sonnet is ahead. Haiku is clearly a step down for agentic coding.
Fable 5.2 vs Opus 5.5, from Anthropic's Fable 5.2 launch post (highest available effort for each, unless noted):
| Benchmark | Opus 5.5 | Fable 5.2 |
|---|---|---|
| FrontierCode 2.0 (agentic coding) | 45.5% | 49.1% (xhigh) |
| FrontierSWE v2 (agentic coding) | 62.3% | 69.9% |
| Humanity's Last Exam, with tools | 67.7% | 74.2% |
| Terminal-Bench-Science 0.1 | 58.7% | 74.6% |
| AA-Briefcase v1.1 (Elo) | 1800 | 1785 |
Fable leads on almost every row, by more on science and long agentic work than on everyday coding, and Opus edges it on one knowledge-work Elo score.
How each model uses your Claude plan limits
On a Claude subscription you don't pay per token, but the model still decides how fast your allowance goes. Anthropic's usage article lists "which Claude model you're chatting with, and the effort level you've selected" among the things that drive usage.
- Which plans get which models. Anthropic's pricing page, as of November 30, 2026: Free has Sonnet and Haiku; Pro, Max, Ultra, Team and Enterprise add Opus. Fable is included up to 50% of the weekly limit on Max, Ultra and Team premium seats; on Pro and Team standard seats it runs on usage credits from the first message.
- Opus drains limits faster than Sonnet. Anthropic's Claude Code help article says Opus "uses meaningfully more of your quota, so consider switching to Sonnet for routine work," and "Spending Opus on routine work is the fastest way to drain a daily limit."
- Fable drains them faster still. Fable models "draw from your plan's regular weekly usage limits and use them faster than other Claude models."
- Effort matters as much as the model. Opus 5.5 can't turn thinking off and Sonnet 5.5 rejects the plain off setting, so Anthropic's advice is to "choose a lower effort level instead" of turning thinking off.
- Fast mode is never included. In Claude Code on Pro, Max, Ultra, Team and Enterprise, fast mode "is available via usage credits only and not included in the subscription rate limits."
The plan side of this (five-hour windows, weekly limits, usage credits) is covered in detail in Claude Pro vs Max, and the per-token side in Claude Code pricing.
Context window in the Claude apps and Claude Code
Anthropic's context window article, as of November 30, 2026: Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 all get 1M tokens in Claude chat on paid plans and in Claude Code. In Claude Cowork, Haiku 5.5 is limited to 500K tokens. A 1M window is "roughly 555k words," per Anthropic's models overview.
Claude Sonnet vs Opus for coding
For coding specifically, Anthropic's help center is clear: Sonnet "is the right choice for the large majority of coding work... It is fast, capable, and cost-efficient," and Opus "offers deeper reasoning for harder problems." Its suggested split:
- Sonnet for "features, tests, known bugs, refactors."
- Opus when "you're genuinely stuck or the change is wide."
- Haiku for "quick mechanical work (renames, log lines, regex explanations, boilerplate)."
That sits a little oddly next to the fact that Claude Code defaults to Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the Anthropic API. The default gives you the strongest daily model; the help center's advice is about not burning your limit on work that doesn't need it. If you are on a subscription and keep hitting limits, switching your default to Sonnet is the simplest change to try, along with lowering effort (more on that below).
You can switch at any point without losing the conversation:
/model sonnet
Run /model with no argument to open the picker, where Enter switches and saves the model as your default and s switches for this session only. To start a session on a given model:
claude --model sonnet
The aliases opus, sonnet, haiku and fable always point to the latest version for your provider (on the Anthropic API today: Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2). Use a full ID such as claude-opus-5-5 to pin a version.
Plan with Opus, build with Sonnet
Anthropic suggests "A common pattern is to plan with Opus and execute with Sonnet," and Claude Code has this built in:
/model opusplan
opusplan uses Opus in plan mode "for complex reasoning and architecture decisions" and then switches to Sonnet "for code generation and implementation." Because switching models doesn't clear the conversation, "Sonnet still sees everything Opus produced."
Effort and fast mode in Claude Code
In Claude Code, Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 all default to medium effort, and all support low, medium, high, xhigh and max. Run /effort to change it. Anthropic's model selection guide notes that "Tuning effort is often a better lever than switching models."
/fast turns on fast mode, which makes Opus 5.5 or Fable 5.2 "up to 2.5x faster at a higher cost per token" with the same quality. Sonnet and Haiku don't support it. On a subscription it is billed from usage credits even if you have plan usage left.
If you are new to the tool, our guide on how to use Claude Code covers /model, /clear and /compact in context. Whichever model you pick, it does better work in a codebase with clear conventions, tests and an AGENTS.md it can read, which is why RailsFast is built on Rails. For how Anthropic's models compare with OpenAI's agent, see Codex vs Claude Code.
Which Claude model should you pick
There is no winner here, only a fit. This is what Anthropic's docs and help center point to, task by task:
| Task | Pick | Why, from Anthropic's pages |
|---|---|---|
| Everyday coding in Claude Code (features, tests, bug fixes) | Sonnet 5.5 | "The right choice for the large majority of coding work," and it uses less of your plan than Opus. |
| A hard bug, a wide refactor, an unclear architecture decision | Opus 5.5 | Use it when "you're genuinely stuck or the change is wide." Built for "large-scale refactoring, complex systems engineering." |
| Long autonomous agent runs, multihour coding agents | Opus 5.5, then Fable 5.2 if Opus falls short | Opus is Anthropic's "strongest daily driver"; Fable is for when Opus "at higher effort still" doesn't meet your needs. |
| Writing, editing, content creation | Sonnet 5.5 | "Content creation" is in Sonnet's use cases; Opus is "clearly stronger at complex, open-ended work requiring sustained judgment," so use it for long, nuanced documents. |
| Research and analysis carried through to a finished report | Opus 5.5 or Fable 5.2 | Fable's listed uses include "multistep deep research, analysis carried through to a finished document." |
| Classification, extraction, routing, summaries at volume | Haiku 5.5 | Built "for high-volume, latency-sensitive tasks." |
| Subagents inside a larger agent | Haiku 5.5 or Sonnet 5.5 | Haiku "pairs well with Opus 5.5 and Sonnet 5.5 as a subagent on coding work." |
| Building an API product, not sure yet | Opus 5.5, then try cheaper | "If you're unsure which model to use, start with Claude Opus 5.5," then lower effort or move down once your evals pass. |
| Cheapest possible bulk job, not urgent | Haiku 5.5 on the Batch API | 50% off: $0.05 input and $0.25 output per MTok on prompts up to 100K tokens. |
| Free plan | Sonnet 5.5 | Opus and Fable are not on Free. |
Anthropic's docs describe the opposite starting point too: "Start efficiency-first" with Haiku 5.5 and "Upgrade only if necessary." Either way the method is the same. Try the task on two models, compare the results, and keep the cheaper one if it is good enough.
Older versions people still compare
Searches like "claude sonnet 5 vs opus 4.8" and "claude sonnet 4.6 vs opus 4.6" are still common. These models are still listed by Anthropic, but it says "where possible, you should default to the latest models." The API facts, as of November 30, 2026:
| Pair | Input / output price | Context window | Max output |
|---|---|---|---|
| Sonnet 5 vs Opus 4.8 | $2 / $10 vs $5 / $25 | 1M vs 1M | 128K vs 128K |
| Sonnet 5 vs Opus 5 | $2 / $10 vs $5 / $25 | 1M vs 1M | 128K vs 128K |
| Sonnet 4.6 vs Opus 4.6 | $3 / $15 vs $5 / $25 | 1M vs 1M | 128K vs 128K |
| Sonnet 4.5 vs Opus 4.5 | $3 / $15 vs $5 / $25 | 200K vs 200K | 64K vs 64K |
Opus 5.5 is cheaper than every older Opus listed here, and Sonnet 5.5 costs the same as Sonnet 5 with cheaper cache reads, so there is rarely a price reason to stay on an older version. In Claude Code, Opus 4.6 and Sonnet 4.6 only reach 1M tokens through their [1m] variants, and on subscriptions those need usage credits (Opus 4.6 only on Pro).
Frequently asked questions
What is the difference between Claude Opus and Sonnet?
Opus is Anthropic's model for long, complex, open-ended work, and Sonnet is the faster, cheaper model for everyday work. As of November 30, 2026, Opus 5.5 costs $4/$20 per million input/output tokens and Sonnet 5.5 costs $2/$10. Anthropic says Opus "remains clearly stronger at complex, open-ended work requiring sustained judgment," while Sonnet comes close on many benchmarks.
Is Claude Opus or Sonnet better for coding?
For most coding, Sonnet. Anthropic's Claude Code help article says Sonnet "is the right choice for the large majority of coding work" and recommends Opus when "you're genuinely stuck or the change is wide." Opus scores a few points higher on most of Anthropic's coding benchmarks, but uses more of your plan.
Opus vs Sonnet vs Haiku: which Claude model should I use?
Use Sonnet 5.5 as your default, Opus 5.5 for hard or wide problems, and Haiku 5.5 for quick, simple or high-volume tasks. Haiku is the fastest and cheapest, from $0.10 per million input tokens as of November 30, 2026. Anthropic notes Sonnet and Opus "remain better choices for complex agentic coding tasks."
Which Claude model is best for coding?
For day-to-day coding, Sonnet 5.5; for the hardest, longest agentic coding, Opus 5.5, and Fable 5.2 if Opus at high effort still falls short. Anthropic's model guide lists "multihour autonomous coding agents" and "large-scale refactoring" under Opus. Fable 5.2 leads Opus 5.5 on Anthropic's FrontierCode 2.0 test, 49.1% to 45.5%.
How much more does Claude Opus cost than Sonnet?
On the API, twice as much. As of November 30, 2026, Opus 5.5 is $4 input and $20 output per million tokens, and Sonnet 5.5 is $2 and $10. On a Claude subscription, Anthropic says Opus "uses meaningfully more of your quota," so you reach your limits sooner.
What is Claude Fable and is it better than Opus?
Fable is the tier above Opus, and Fable 5.2 is "Anthropic's most capable model open to all customers." It beats Opus 5.5 on most of Anthropic's published benchmarks but costs twice as much ($8/$40 per million tokens) and uses plan limits faster. Anthropic recommends starting with Opus and moving to Fable only when Opus at higher effort still isn't enough.
What is the default model in Claude Code?
As of November 30, 2026, Claude Code defaults to Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the Anthropic API (Microsoft Foundry defaults to Sonnet 5.5). Fable is never the default. Run /model to see and change the model you are on.
How do I switch between Opus and Sonnet in Claude Code?
Type /model sonnet or /model opus in a session, or run /model on its own to open the picker. To start a session on a model, run claude --model sonnet. Switching keeps your conversation, and /model opusplan plans with Opus and builds with Sonnet automatically.
Do Opus and Sonnet have the same context window?
Yes. As of November 30, 2026, Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 all have a 1M token context window and up to 128K output tokens on the API. In the Claude apps and Claude Code on paid plans, all four also get 1M tokens.
Which Claude models are on the free plan?
Sonnet and Haiku. Anthropic's pricing page, as of November 30, 2026, lists Opus on Pro and higher, and Fable on Max, Ultra, Team premium seats and Enterprise, with Pro paying for Fable through usage credits. The free plan also does not include Claude Code.
Sources
All pages fetched on November 30, 2026.
- Models overview: https://platform.claude.com/docs/en/about-claude/models/overview
- Choosing the right model: https://platform.claude.com/docs/en/about-claude/models/choosing-a-model
- Claude API pricing: https://platform.claude.com/docs/en/about-claude/pricing
- What's new in Claude Sonnet 5.5: https://platform.claude.com/docs/en/models/sonnet-5-5/whats-new-sonnet-5-5
- What's new in Claude Haiku 5.5: https://platform.claude.com/docs/en/models/haiku-5-5/whats-new-haiku-5-5
- What's new in Claude Fable 5.2: https://platform.claude.com/docs/en/models/fable-5-2/whats-new-fable-5-2
- Introducing Claude Opus 5.5: https://www.anthropic.com/news/claude-opus-5-5
- Introducing Claude Sonnet 5.5: https://www.anthropic.com/news/claude-sonnet-5-5
- Introducing Claude Haiku 5.5: https://www.anthropic.com/news/claude-haiku-5-5
- Introducing Claude Fable 5.2 and Claude Mythos 5.2: https://www.anthropic.com/claude-fable-and-mythos-5-2
- Claude plans and pricing: https://claude.com/pricing
- Claude Code model configuration: https://code.claude.com/docs/en/model-config
- Claude Code fast mode: https://code.claude.com/docs/en/fast-mode
- Claude Code CLI help (
claude --help, version 2.1.332, run November 30, 2026) - Models, usage, and limits in Claude Code: https://support.claude.com/en/articles/14552983-models-usage-and-limits-in-claude-code
- How do usage and length limits work: https://support.claude.com/en/articles/11647753-how-do-usage-and-length-limits-work
- Claude Fable models on your plan: https://support.claude.com/en/articles/15424964-claude-fable-models-on-your-plan
- How large is the context window on paid Claude plans: https://support.claude.com/en/articles/8606394-how-large-is-the-context-window-on-paid-claude-plans
- Claude release notes: https://support.claude.com/en/articles/12138966-release-notes