Versus · AI tools

Claude Sonnet 4.5 vs Opus 4.1

We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.

Verdict Our pick

The bar guide has a call.

The vectaai bar guide pointing at the verdict
  • Sonnet 4.5 over Opus 4.1 was the right call for almost everyone.

Compared here

  • 01Claude Sonnet 4.5
  • 02Claude Opus 4.1

Short answer

Claude Sonnet 4.5 beat Claude Opus 4.1 on Anthropic's own headline coding test and cost a fifth as much. Anthropic reported 77.2% on SWE-bench Verified for Sonnet 4.5 (September 2025) against 74.5% for Opus 4.1 (August 2025), and Sonnet 4.5 was priced at $3 input and $15 output per million tokens against Opus 4.1's $15 and $75. Anthropic also called Sonnet 4.5 "the best coding model in the world" at launch. Pick Sonnet 4.5 over Opus 4.1 was the right call for almost everyone.

The bigger news in December 2026: both models are retired on the Claude API. Anthropic's deprecations page lists Opus 4.1 retired on 5 August 2026 (replacement: Claude Opus 4.8) and Sonnet 4.5 retired on 30 November 2026 (replacement: Claude Sonnet 5.5). Requests to retired models fail with a 404. Opus 4.1 lingers on Google Cloud (Google managed) and Bedrock, Sonnet 4.5 on Bedrock's bedrock-runtime. Below: the full comparison, why Sonnet won, and the migration path.

At a glance

From Anthropic's launch posts for each model and the Claude platform pricing and model deprecations pages, read 4 December 2026. Prices in US dollars per million tokens (MTok).
Claude Sonnet 4.5Claude Opus 4.1
Released29 September 20255 August 2025
SWE-bench Verified (Anthropic)77.2% standard; 82.0% with parallel sampling74.5%
OSWorld (computer use)61.4%Not stated in the launch post
Input price$3 / MTok$15 / MTok
Output price$15 / MTok$75 / MTok
Cache hits$0.30 / MTok$1.50 / MTok
Batch API (input / output)$1.50 / $7.50$7.50 / $37.50
Claude API statusRetired 30 November 2026Retired 5 August 2026
Still onAmazon Bedrock (bedrock-runtime), as deprecatedGoogle Cloud (Google managed) and Bedrock
Recommended replacementClaude Sonnet 5.5Claude Opus 4.8

Money first. Anthropic does not pay us, and there are no affiliate links to Claude on this page. Display ads may show around it. We did not rerun any benchmarks. Every score is Anthropic's own, from its launch posts, and every price and date is from Anthropic's pricing and model-deprecations pages, read on 4 December 2026. Benchmarks published by the company that made the model are useful, but they are the company's numbers; treat them as a strong hint, not a verdict on your code.

Now the story, because it is a good one. In 2025 the rule was simple: Opus is the big, expensive, smart one, Sonnet is the cheap workhorse. Then Sonnet 4.5 showed up and beat the big one at its own game for a fifth of the price. That rarely happens. And then, a year later, both quietly left the building.

The short answer

  • On coding: Sonnet 4.5 scored 77.2% on SWE-bench Verified; Opus 4.1 scored 74.5%. Sonnet won.
  • On price: Sonnet 4.5 at $3/$15 per million tokens; Opus 4.1 at $15/$75. Sonnet was five times cheaper.
  • On availability today: both are retired on the Claude API. Use Sonnet 5.5 or Opus 4.8 instead.

If you are here because an old script, tutorial or config file names one of these models, skip to the migration section.

Benchmarks: what Anthropic reported

Claude Opus 4.1 (5 August 2025)

Anthropic's launch post called Opus 4.1's coding "state-of-the-art" at the time:

  • 74.5% on SWE-bench Verified, a test of fixing real GitHub issues.
  • Improvements over Opus 4 in agentic tasks, real-world coding and reasoning, plus in-depth research and data analysis, especially "detail tracking and agentic search."
  • Partner quotes: GitHub reported gains across most capabilities, "most notably in multi-file code refactoring," and Windsurf measured a one standard deviation gain on its junior developer benchmark.

Claude Sonnet 4.5 (29 September 2025)

Eight weeks later, Anthropic's Sonnet 4.5 post opened with a bold line: "Claude Sonnet 4.5 is the best coding model in the world."

  • 77.2% on SWE-bench Verified under the standard setup, averaged over 10 trials. 82.0% with extra parallel sampling and selection.
  • 61.4% on OSWorld, a computer-use benchmark, up from 42.2% for Sonnet 4 four months earlier.
  • Anthropic said it had "observed it maintaining focus for more than 30 hours on complex, multi-step tasks." That is an internal observation, not a benchmark.
  • Experts in finance, law, medicine and STEM rated its domain knowledge and reasoning as "dramatically better" than older models, including Opus 4.1. The post gave no numbers for that comparison.

So on the one number both posts share, SWE-bench Verified, Sonnet 4.5 led by 2.7 points under the standard setup.

Pricing: the five-times gap

From Anthropic's current pricing page, which still lists both models with a "retired" note:

Price per million tokensSonnet 4.5Opus 4.1
Input$3$15
Output$15$75
5-minute cache write$3.75$18.75
1-hour cache write$6$30
Cache hits$0.30$1.50
Batch input / output$1.50 / $7.50$7.50 / $37.50

Sonnet 4.5 launched at the same $3/$15 as Sonnet 4, and Opus 4.1 kept Opus 4's pricing, per the two launch posts.

What that meant in practice: an agent run that burned 2 million input tokens and 400K output tokens cost about $12 on Sonnet 4.5 and about $60 on Opus 4.1. For a team running agents all day, that gap paid a salary.

Why the cheaper model won

Opus models were built to be the most capable, and Sonnet models the best value. In late 2025, Anthropic's release timing flipped that for a while: a new-generation Sonnet (4.5) arrived after an incremental Opus (4.1). The newer training beat the bigger tier. The same pattern shows up again and again in AI models: a new mid-size model often matches or beats last generation's flagship.

The lesson that still applies: do not pick by tier name. Pick by recent results on your own tasks, and by price.

Status in December 2026: both retired

Anthropic's model deprecations page:

  • Claude Opus 4.1 (claude-opus-4-1-20250805): deprecated 5 June 2026, retired 5 August 2026. Recommended replacement: claude-opus-4-8.
  • Claude Sonnet 4.5 (claude-sonnet-4-5-20250929): deprecated 30 September 2026, retired 30 November 2026. Recommended replacement: claude-sonnet-5-5. The retirement also covers the undated claude-sonnet-4-5 ID.

"Retired" means requests fail: on the Claude API, the Messages API returns a 404 not_found_error. These dates cover Anthropic-operated platforms (the Claude API, Claude Platform on AWS, Anthropic-managed Google Cloud and Microsoft Foundry). Partner-operated platforms set their own schedules: the pricing page says Opus 4.1 is still available on Google Cloud (Google managed) and Bedrock, and Sonnet 4.5 on Amazon Bedrock (bedrock-runtime), where the deprecations page lists it as deprecated.

What to use instead

From the same pricing page:

ReplacementReplacesInput / output per MTokvs the old model
Claude Sonnet 5.5Sonnet 4.5$2 / $10Cheaper than Sonnet 4.5's $3 / $15
Claude Opus 4.8Opus 4.1$5 / $25A third of Opus 4.1's $15 / $75

Both replacements are cheaper than the models they replace. Anthropic lists Sonnet 5.5 as active until "not sooner than 28 September 2027" and Opus 4.8 "not sooner than 28 May 2027."

One cost detail to watch: Anthropic's pricing page says Claude 4.7 and later models use a newer tokenizer that produces about 30% more tokens for the same text. Sonnet 4.5 and Opus 4.1 used the older tokenizer. So compare real bills, not just the per-token price.

How to migrate

  1. Find the old model IDs. Anthropic suggests exporting usage from the Claude Console's Usage page to see which API keys still call which models.
  2. Swap the IDs: claude-sonnet-4-5... to claude-sonnet-5-5, claude-opus-4-1... to claude-opus-4-8 (or test Sonnet 5.5 for the Opus jobs too; it may be enough).
  3. Check parameters. Anthropic's deprecations page notes that temperature, top_p and top_k are removed in API version 2026-10-21 and rejected on Claude 4.7 and later models when set to non-default values in earlier versions. Old code that sets them will error.
  4. Re-test your prompts on your own tasks before switching production traffic. Anthropic publishes migration guides for each replacement.
  5. Re-check your budget with the new tokenizer in mind.

If you are deciding between today's models rather than old ones, our Claude Opus 4.8 vs Claude Sonnet 5 and Claude Opus 4.8 vs Claude Opus 5 pages are the current versions of this question, and Claude API vs subscription helps you decide how to pay.

Who should pick what (today)

  • You have code calling Sonnet 4.5: move to Sonnet 5.5. Cheaper per token, active, the recommended replacement.
  • You have code calling Opus 4.1: move to Opus 4.8, or test Sonnet 5.5 first and only pay for Opus if it clearly does better on your tasks.
  • You must keep the exact old model for a while: check Bedrock or Google-managed Vertex AI, under their own schedules, and plan the move anyway.
  • You are reading old benchmark tables: Sonnet 4.5 beat Opus 4.1. Both are history.

For how these models stacked up against OpenAI at the time, see Claude Sonnet 4.5 vs GPT-5 and Claude Opus 4.1 vs GPT-5. More in the AI tools hub, and our rules in how we pick.

Questions people ask

Is Claude Sonnet 4.5 better than Opus 4.1?

On Anthropic's own numbers, yes for coding: 77.2% on SWE-bench Verified versus 74.5% for Opus 4.1. Anthropic also said experts rated Sonnet 4.5's domain knowledge and reasoning in finance, law, medicine and STEM as dramatically better than older models including Opus 4.1. And it cost $3/$15 per million tokens against $15/$75. It was the rare case where the cheaper model won.

Can I still use Claude Opus 4.1 or Sonnet 4.5?

Not on the Claude API. Anthropic's deprecations page lists Opus 4.1 as retired on 5 August 2026 and Sonnet 4.5 retired on 30 November 2026; requests return a 404 not_found_error. Opus 4.1 remains on Google Cloud (Google managed) and Amazon Bedrock, and Sonnet 4.5 on Bedrock's bedrock-runtime as a deprecated model, under those platforms' own schedules.

What replaced Claude Sonnet 4.5 and Opus 4.1?

Anthropic's recommended replacements are Claude Sonnet 5.5 for Sonnet 4.5 and Claude Opus 4.8 for Opus 4.1. On the current pricing page, Sonnet 5.5 costs $2 input and $10 output per million tokens, cheaper than Sonnet 4.5 was, and Opus 4.8 costs $5 and $25, a third of Opus 4.1's price.

How much more did Opus 4.1 cost than Sonnet 4.5?

Five times as much on every line: $15 versus $3 per million input tokens, $75 versus $15 per million output tokens, and $1.50 versus $0.30 for cache hits. The Batch API halved both, to $7.50/$37.50 for Opus 4.1 and $1.50/$7.50 for Sonnet 4.5. A job costing $10 on Sonnet 4.5 cost about $50 on Opus 4.1.

Was Opus 4.1 ever the better choice?

For about eight weeks, between its 5 August 2025 launch and Sonnet 4.5's arrival on 29 September 2025, Opus 4.1 was Anthropic's top coding model at 74.5% on SWE-bench Verified. After that, Sonnet 4.5 scored higher for a fifth of the price, so Opus 4.1 made sense mainly for teams already tuned to it and unwilling to re-test.

Sources

Every fact above comes from these pages. Prices change, so each one carries the date we read it.

  1. Anthropic: Introducing Claude Sonnet 4.5, checked 4 Dec 2026
  2. Anthropic: Claude Opus 4.1, checked 4 Dec 2026
  3. Claude platform docs: Pricing, checked 4 Dec 2026
  4. Claude platform docs: Model deprecations, checked 4 Dec 2026