Claude Sonnet 5.5 vs Opus 5.5: Coding Ability, Pricing, and Which Tasks Fit Each

Compares Claude Sonnet 5.5 and Opus 5.5 on everyday coding, complex investigations, current cache pricing, and channel fees, and explains how default effort, thinking, and failure-escalation strategy affect your choice.

11 min read
Claude Sonnet 5.5 vs Opus 5.5: Coding Ability, Pricing, and Which Tasks Fit Each

Claude Sonnet 5.5 vs Opus 5.5: which one should you pick? By Anthropic's official positioning, Sonnet 5.5 is strongest at well-scoped everyday tasks and bug fixes, while Opus 5.5 is aimed at complex work that calls for careful judgment. Anthropic says that in tests by its internal and external testers, Opus 5.5 is still clearly stronger on complex, open-ended tasks that require sustained judgment (Sonnet 5.5 official release page). This article only compares the specs, benchmarks, and pricing of these two models. To see how to split work between the main model and subagents in Claude Code, read "Which Model Should You Use in Claude Code". To compare the cheaper Haiku, read "Claude Haiku vs Sonnet".

Both models support a 1M context window and 128K max output for standard requests. Under current official pricing, Sonnet's input, output, cache write, and cache read rates are all half of the corresponding Opus rates. But their default thinking effort differs, so the actual amount of work done may differ too. Choose based on results that pass acceptance checks and on the full cost.

What's the difference between Sonnet 5.5 and Opus 5.5

Anthropic describes Sonnet 5.5 as a faster, lower-cost complementary option for well-scoped everyday work, and Opus 5.5 as the choice for complex, open-ended tasks that need sustained judgment. For any given coding job, both models are worth evaluating against real acceptance criteria.Sonnet official release notes

ItemSonnet 5.5Opus 5.5
Claude API model IDclaude-sonnet-5-5claude-opus-5-5
Context window1M Tokens1M Tokens
Max output per standard request128K Tokens128K Tokens
Input and outputText and image input; text outputText and image input; text output
API default efforthighmedium
Thinking modeAdaptive by default; between_tools availableAdaptive always on
Official relative latency tierFastModerate

For specs, see Sonnet model overview and Opus model overview. Fast and Moderate are official categories, not measured latency on any particular relay channel. Equal context capacity also does not prove equal retrieval accuracy.

Why official coding benchmarks can't name a winner

Below are three coding evaluations from the Sonnet 5.5 release announcement, keeping the comparisons listed by the same source. All figures are published by Anthropic:

BenchmarkSonnet 5.5Opus 5.5Conditions to keep in mind
Terminal-Bench 4.070.6%66.4%The announcement notes Opus ran at xhigh, so this can't be treated as a head-to-head at a uniform effort
FrontierCode 1.1 Mainmax 46.2%; xhigh 52.1%54.4%Sonnet's two settings give different results, so you can't keep only the more favorable score
CursorBench 4.055.5%57.8%A test on specific coding tasks; it can't be converted into a success rate for an arbitrary repository

On Terminal-Bench, Sonnet scores higher, while in the other two rows Opus is higher. Concluding from any one of them that "Sonnet is stronger across the board" or that "Opus is required for all code" goes beyond what this data can support.

FrontierCode also offers a useful boundary. A footnote in the announcement explains that Sonnet at max more often invoked the code review workflow, and in some of the cases analyzed there were timeouts or changes outside the task scope, which is why its score was lower than at xhigh. Higher effort may produce more work, but it doesn't guarantee work that better matches the task.Official benchmarks and footnotes

For a real project, what needs verifying is this: did the model find the right evidence, do the changes respect interface constraints, do the tests pass, and did it introduce unrelated changes. A longer patch or a more detailed explanation is no substitute for these checks.

How to choose between everyday fixes and complex investigations

For everyday changes with clear tests, try Sonnet first

Examples include a reproduced boundary-value bug, adding a field to a single endpoint, a local refactor, or reviewing code against a fixed standard. First define which files may change, the public interfaces, and the acceptance command, then see whether Sonnet already meets the bar.

If the model didn't run tests, misread the error text, or changed too much, first check the task materials, tool permissions, and instructions. When the problem is missing files or a wrong environment, switching to a pricier model can't supply what's missing.

When the root cause is unclear or constraints are complex, add Opus to the comparison

Cross-service failures, complex migrations, and long-running refactors often require holding multiple hypotheses and constraints at once. Officially, Opus is positioned for this kind of sustained-judgment work, so you can test whether it reduces investigation rounds or manual rework under the same materials and acceptance conditions.

Don't assume that a higher price means higher reliability. Break the investigation into verifiable outcomes: evidence locations, how to reproduce, the proposed fix and its risks, the final change, and regression tests. Comparing how the two models do on these outcomes is more useful than looking only at the first answer.

TaskAcceptance requirements to set firstModel differences worth watching
Reproduced bugThe original problem no longer appears and the new tests passFirst-pass success, unrelated diffs, time taken
Local refactorPublic interfaces and existing behavior stay consistentWhether edge cases are missed, whether scope grows
Cross-module failureProvides a root cause and evidence that can be re-checkedInvestigation rounds, wrong hypotheses, time to correction
Complex migrationCompatibility conditions, failure handling, and rollback are verifiableWhether it keeps honoring constraints, whether it misses dependencies

How far apart current prices are, and what changed in cache pricing

The following are global standard direct API prices, in USD per million Tokens. The current standard 1M context for both models does not use Haiku 5.5's 100K pricing tier. Extra tools, special service tiers, taxes, and other platform charges are separate.

Billing itemSonnet 5.5Opus 5.5
Standard input$2$4
Billed output$10$20
5-minute cache write$2.50$5
1-hour cache write$4$8
Cache read$0.10$0.20

At Sonnet 5.5's launch, cache read was $0.20, the same as Opus. When Haiku 5.5 launched on October 7, Anthropic announced it was lowering Sonnet 5.5's cache read to $0.10. Prices in older launch posts need to be distinguished from the current documentation.Pricing change announcement, Current API pricing

What standard requests, cache creation, and cache hits each cost

Assume both models consume exactly the same billable usage, with no retries or extra tool fees:

ScenarioSonnet 5.5Opus 5.5
100K standard input + 20K output$0.40$0.80
800K first-time 5-minute cache write + 100K standard input + 20K output$2.40$4.80
800K effective cache read + 100K standard input + 20K output$0.48$0.96

In the third row, Sonnet is 0.8 × $0.10 + 0.1 × $2 + 0.02 × $10 = $0.48; Opus is 0.8 × $0.20 + 0.1 × $4 + 0.02 × $20 = $0.96. The cost of building the cache the first time is paid separately. Don't leave it out of the overall task budget, and don't bill the same written Tokens again as standard input.

Official pricing vs. AICodeWith pricing at the same usage:

ScenarioModelOfficial priceAICodeWith price
100K standard input + 20K outputSonnet 5.5$0.40$0.076
100K standard input + 20K outputOpus 5.5$0.80$0.152

AICodeWith prices come from the pricing page, which as of 13:44 on October 15, 2026 showed these discounted prices: Sonnet 5.5 at $0.38 input / $1.90 output, and Opus 5.5 at $0.76 input / $3.80 output (per million tokens, USD).

View live AICodeWith pricing →

In these same usage scenarios, Sonnet costs half as much. Thinking, tool rounds, output, and retries on real tasks may differ, so the total cost of a full task is not guaranteed to be halved.

How Sonnet and Opus compare on the same channel

When using an API relay that supports multiple models, fix the channel before comparing. The figures below come from the October 9, 2026 version of the AICodeWith console model list's channel details, in USD per million tokens:

ChannelSonnet input / outputOpus input / outputSonnet / Opus cache readSonnet / Opus cache write
Third-party Claude$0.78 / $3.90$1.56 / $7.80$0.039 / $0.078$0.975 / $1.95
Discount channel$0.38 / $1.90$0.76 / $3.80$0.019 / $0.038$0.475 / $0.95
Enterprise mixed pool$1.30 / $6.50$2.60 / $13.00$0.065 / $0.130$1.625 / $3.25

These are prices displayed by the platform, not Anthropic's official direct-connect rates. The details page doesn't distinguish cache-write validity periods or all service conditions, so don't extend the prices in the table to contract prices for arbitrary requests. A listed catalog price also doesn't guarantee the channel is callable at that moment, so check the latest status and actual charges.

Will starting with Sonnet and upgrading to Opus save money?

Assume the discount channel, with each request using 100K regular input and 10K output. Sonnet costs 0.1 × $0.38 + 0.01 × $1.90 = $0.057, and Opus costs $0.114.

If Sonnet passes on the first try, the model cost is $0.057. If Sonnet fails twice and Opus then passes on one try, the model cost is 2 × $0.057 + $0.114 = $0.228, higher than the $0.114 you'd pay if Opus passed on the first try.

So an automatic escalation policy needs a stop condition. After one failure, check the cause first: if material is missing, add it; if the test environment is broken, fix it; only when the model has repeatedly misjudged and the evidence is complete should you consider switching models. Don't let a lower unit price become a reason for endless retries.

How effort and thinking affect the comparison

Sonnet 5.5 defaults to high in the Claude API and Opus defaults to medium; Sonnet's default in Claude Code and the Claude apps is medium again. A test must state the client, channel, and effort. "Both on default settings" is not the same condition.Sonnet release notes

Both models can use an explicit medium to establish a baseline, then test higher levels separately on hard tasks. Record billed output and total task time, not just how fast the first part of the answer arrives. An identical effort name still doesn't prove identical compute.

Sonnet can use thinking: {"type":"between_tools"} to turn off upfront thinking and accepts low, medium, and high; xhigh and max return an error. Progress in the form of thinking may still be returned between tool calls; with no tools, text is returned. This differs from Opus, which always has adaptive thinking on, so don't copy the configuration over directly.Sonnet migration guide

What to check before switching models and sessions

Both models use the Messages API, but a shared protocol doesn't mean any parameters or conversation history can be reused as is. Focus on checking:

  • Tool choice: both reject forced any or specific tool modes. Use auto or other supported modes per the current docs, and validate tool calls at the application layer.
  • Response parsing: read text from each block's type to get the text; don't assume content[0] is the answer; in tool loops, keep the corresponding thinking blocks as is.
  • Output budget: max_tokens covers both thinking and text. A short visible answer doesn't mean low output cost.
  • Session state: thinking blocks follow rules tied to the model, account, and history prefix. Don't assume that replaying across models or modifying old messages is valid.

When the application layer needs to upgrade models, after checking the completed changes you can compile the task facts, constraints, and failure evidence as input for a new session, then continue. This is a workflow suggestion, not a vendor's automatic migration mechanism; summaries may omit information and need to be checked against the repo and original records.

For specific parameters and retention rules, see the Sonnet and Opus migration guides. Support conditions for hosted agents, cloud platforms, and gateways need to be confirmed separately.

How to choose your team's default model

Start with a set of tasks that already have correct results or reliable tests, covering clear fixes, cross-file implementation, and complex investigation. Fix the repo version, input materials, tools, permissions, time limit, and retry budget; use a separate working copy and a fresh session each time. Alternate the run order, and keep results from default settings separate from those with explicit effort.

What to recordWhat it tells you
First-pass and final passDistinguishes one-shot completion from multi-round patching
Unrelated diffs, interface regressionsCatches out-of-scope edits and hidden costs
Cost, cache, thinking outputComputes full model spend
Tool errors, refusals, model switchesExplains task interruptions and failures
Total time, manual fixesJudges the interactive experience and team workload

When comparing API cost, include failed attempts in the total, then divide by the number of accepted passes; if a group fails entirely, record that there were no passing results. Report manual correction time separately, and convert it to money only after you have real time figures and an explicit hourly-rate assumption.

Set default models by task type: let the low-cost route that meets requirements handle well-defined changes, and keep a separate route for hard investigations. Rerun regressions as the toolchain, models, or channels change, rather than treating the conclusion of one trial as permanent.

Hands-on comparison: setup and pricing reference

Conclusion

By official positioning, Sonnet 5.5 is for well-scoped everyday work and Opus 5.5 is for complex tasks that need sustained judgment (official Sonnet 5.5 announcement). Their current standard billing items have a clear 2x rate relationship (Sonnet overview, Opus overview), but task cost depends on actual usage and rework.

Fix the task and acceptance criteria first, then compare cost and full elapsed time. After choosing a default model, also set failure checks and escalation conditions, so the cheap route doesn't retry endlessly and not all work goes straight to the expensive route.

FAQ

Sonnet 5.5 scores higher on coding benchmarks, so why use Opus?

Sonnet has a higher Terminal-Bench score in the release table, but Opus scores higher on FrontierCode and CursorBench. Test setups and tasks differ, so you can't infer a universal winner from a single score.

Do both models charge the same for cache reads now?

No. Current official pricing is $0.10 per million tokens for Sonnet and $0.20 for Opus. Sonnet launched at $0.20, and that was cut on October 7. Include the date when you verify pricing.

Does a real task always cost only half as much on Sonnet?

You can calculate it that way when billed usage is the same and standard rates apply. If thinking, tool, and retry usage differ, the total bill can drift away from a clean half.

Does Opus have a larger context window than Sonnet?

Both 5.5 models officially support 1M context and 128K standard max output. Don't compare capacity alone. Test with real document retrieval and engineering tasks to see the difference.

Can I use between_tools with Opus 5.5 directly?

No. Don't copy the Sonnet rules over. Opus always runs with adaptive thinking on. For Sonnet, configure between_tools and the applicable effort levels according to its own model documentation.

Sources and Further Reading

Related articles

What is Gemini 4 Hydrogen and how do you connect it? Official price $1.50/$7.50, in Claude Code / Codex

What is Gemini 4 Hydrogen and how do you connect it? Official price $1.50/$7.50, in Claude Code / Codex

Gemini 4 Hydrogen is Google's efficiency model for everyday coding and agentic workflows, officially released on 12 November 2026 (US time). The model ID is gemini-4-hydrogen. Official Gemini Developer API standard pricing is $1.50 per million input tokens and $7.50 per million output tokens (including thinking tokens), with implicit caching at $0.075; the free tier lists those three as free of charge. This article covers official specs and pricing, how to connect it in AI Studio and the Gemini API, and how to write the client config in Claude Code, Codex, and Cursor.

Claude Fable 5.2 vs Opus 5.5: Which to Use? Switching Models in Claude Code and Running Fable as the Main Agent with Opus Subagents (Tested)

Claude Fable 5.2 vs Opus 5.5: Which to Use? Switching Models in Claude Code and Running Fable as the Main Agent with Opus Subagents (Tested)

Claude Fable 5.2 or Opus 5.5? Start with an official spec and pricing comparison table, then learn how to switch between the two in Claude Code with /model, --model and settings.json, how to use a subagent's model field so the main agent runs Fable while subagents run Opus, and how to choose in Codex and Cursor. Includes timings and results from the same task run on both models with an AICodeWith key, plus fixes for common errors.

Tencent Hunyuan Hy4 Released: Pricing, 1M Context, Benchmarks, and How to Use It in Claude Code / Codex

Tencent Hunyuan Hy4 Released: Pricing, 1M Context, Benchmarks, and How to Use It in Claude Code / Codex

Tencent Hunyuan released Hy4 on November 4. It adds vision and computer use for the first time, has a 1M context window and up to 64K output, and is priced at $0.834 input, $2.501 output and $0.042 cached input per million tokens, with a 50% launch discount on OpenRouter. This guide covers the official specs, pricing, the benchmark numbers you can check in Tencent's own table, how to call the Hy4 API on Tencent Cloud TokenHub and OpenRouter (model IDs hy4 / tencent/hy4), and tested steps for using Chinese models in Claude Code and Codex.