Versus · AI tools

Claude Sonnet 5 vs Claude Opus 4.8

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
  • Claude Sonnet 5 for most work: it costs $2 per million input tokens and $10 per million output, against $5 and $25 for Opus 4.8, per Anthropic's pricing docs on 3 December 2026.
  • Claude Opus 4.8 when the job is long, hard and agentic and you have tested that Sonnet 5 falls short; Anthropic calls Opus 4.8 "a more generally capable model." But be honest about the calendar: both are now previous-generation models.

Compared here

  • 01Claude Opus 4.8
  • 02Claude Sonnet 5

Short answer

Pick Claude Sonnet 5 for most work: it costs $2 per million input tokens and $10 per million output, against $5 and $25 for Opus 4.8, per Anthropic's pricing docs on 3 December 2026. Anthropic itself said at launch that Sonnet 5 performs "close to that of Opus 4.8, but at lower prices," and can match Opus 4.8 on some tasks at higher effort. Both have a 1 million token context window and 128K max output.

Pick Opus 4.8 when the job is long, hard and agentic and you have tested that Sonnet 5 falls short; Anthropic calls Opus 4.8 "a more generally capable model." But be honest about the calendar: both are now previous-generation models. Sonnet 5.5 costs the same $2/$10 as Sonnet 5, and Opus 5.5 costs less than Opus 4.8 at $4/$20. Unless you are pinned to an old model for a reason, start a new project on the 5.5 versions.

Use Claude

Sponsored links. We may earn a commission; it never changes the pick.

At a glance

From Anthropic's pricing docs, models overview, model deprecations page and the Claude Sonnet 5 announcement, read 3 December 2026. USD per million tokens (MTok).
Claude Sonnet 5Claude Opus 4.8
Input price$2 / MTok$5 / MTok
Output price$10 / MTok$25 / MTok
Cache hits$0.20 / MTok$0.50 / MTok
Batch API (50% off)$1 in, $5 out$2.50 in, $12.50 out
Context window1M tokens1M tokens
Max output128K tokens128K tokens
API model IDclaude-sonnet-5claude-opus-4-8
StatusActive, retirement not sooner than 30 June 2027Active, retirement not sooner than 28 May 2027
In the Claude apps at launchDefault on Free and ProNot covered in the Sonnet 5 post
Newer same-tier modelSonnet 5.5, same $2/$10Opus 5.5, $4/$20
Best forEveryday coding, agents, high volumeThe hardest tasks where tests show Sonnet falls short

Money talk first. We have no affiliate deal with Anthropic, so nobody pays us whichever model you pick. The Claude button goes through our redirect in case that ever changes. Every number here comes from Anthropic's own docs and its Sonnet 5 announcement, read on 3 December 2026. We did not run our own benchmark, and we are not going to quote third-party leaderboards as if they were facts.

The short version

Sonnet 5 and Opus 4.8 are both 2026 models. Sonnet 5's launch post (30 June 2026) said it "narrows the gap" with Opus: performance "close to that of Opus 4.8, but at lower prices," while calling Opus 4.8 "a more generally capable model."

So the trade is simple:

  • Sonnet 5: most of the brains, 40% of the price.
  • Opus 4.8: a bit more brains on the hardest stuff, 2.5x the price.

And the twist: both have newer siblings that make the choice partly academic. More on that below.

Price, from Anthropic's pricing docs

From the pricing page, per million tokens:

Sonnet 5Opus 4.8
Input$2$5
5-minute cache write$2.50$6.25
1-hour cache write$4$10
Cache hits$0.20$0.50
Output$10$25
Batch input$1$2.50
Batch output$5$12.50

A footnote matters here: Sonnet 5's $2/$10 was "announced at launch as introductory pricing through August 31, 2026" and "is now the standard price." The planned jump to $3/$15 on 1 September 2026 "will not occur." If a blog tells you Sonnet 5 costs $3/$15, it was written before that change.

What that means for a real bill

Say an app sends 10 million input tokens and gets 2 million output tokens a month:

  • Sonnet 5: 10 x $2 + 2 x $10 = $40.
  • Opus 4.8: 10 x $5 + 2 x $25 = $100.

Same workload, $60 difference. At scale, that is the whole argument for Sonnet.

Now add prompt caching, which most real apps should use. Say 8 of those 10 million input tokens are a repeated system prompt read from cache:

  • Sonnet 5: 2 x $2 + 8 x $0.20 + 2 x $10 = $25.60 (plus a small cache write cost).
  • Opus 4.8: 2 x $5 + 8 x $0.50 + 2 x $25 = $64.

Caching cuts both bills hard, but the ratio between the two models stays about the same. And if the work can wait, the Batch API halves the token prices again on both. Switching between the two is just a change of the model ID in your request (claude-sonnet-5 or claude-opus-4-8), so route easy calls to Sonnet and only the hard ones to Opus.

Specs side by side

From the models overview:

  • Context window: 1M tokens on both.
  • Max output: 128K tokens on both on the synchronous API, and up to 300K on the Batch API with a beta header.
  • Long context pricing: Claude 4.6 and later models get the full 1M window at standard rates, so a huge prompt is not billed at a premium.
  • Tokenizer: Claude 4.7 and later use a newer tokenizer that "produces approximately 30% more tokens for the same text." The Sonnet 5 post also notes its tokenizer can map the same input to roughly 1.0 to 1.35x more tokens. Budget a little extra if you are coming from Sonnet 4.6 or older.

Tool use overhead differs slightly too: the pricing docs list 354 system prompt tokens for tool use on Sonnet 5 and 290 on Opus 4.8 with auto tool choice. Not enough to change a decision, but it is there.

Quality: what Anthropic actually claims

We could paste benchmark tables from around the web, but many disagree with each other and some are clearly guesses. What Anthropic states in the Sonnet 5 post:

  • Performance "close to that of Opus 4.8, but at lower prices."
  • At higher effort levels, Sonnet 5 "can match Opus 4.8 on some tasks," naming BrowseComp and OSWorld-Verified.
  • Opus 4.8 is "a more generally capable model."

The benchmark charts in the post are images that our reader could not parse into numbers, so we will not quote scores.

Our practical read from the bar: Sonnet 5 is plenty for everyday coding, writing, agents and data work. Opus earns its price on long, messy, multi-step tasks where one wrong turn costs you an hour. The only way to know which bucket your work falls into is to run the same ten real tasks on both and compare.

In the Claude apps

At launch, Anthropic said Sonnet 5 was available on all plans and was the default model for Free and Pro, with Max, Team and Enterprise users also getting it. In the apps you do not pay per token; heavier models use up your plan's allowance faster. If you hit limits often, read Claude Pro vs Max before you upgrade.

Status and retirement

From the deprecations page:

  • claude-sonnet-5: Active, retirement not sooner than 30 June 2027.
  • claude-opus-4-8: Active, retirement not sooner than 28 May 2027.

Anthropic says it gives at least 60 days of notice before retiring a publicly released model. Opus 4.8 also shows up as the recommended replacement for several retired Opus models, which tells you it has been a workhorse.

The elephant: the 5.5 models

Anthropic's models overview now lists Opus 5.5 and Sonnet 5.5 as its current models, alongside Fable 5.2 and Haiku 5.5:

  • Sonnet 5.5: $2 in, $10 out. Same price as Sonnet 5, cheaper cache hits ($0.10).
  • Opus 5.5: $4 in, $20 out. Cheaper than Opus 4.8, with cache hits at $0.20.

The overview says: "If you're unsure which model to use, start with Claude Opus 5.5 for most workloads." So unless your app is pinned to an older model for testing or compliance reasons, the real comparison for a new project is Sonnet 5.5 vs Opus 5.5. Our Claude Opus vs Sonnet vs Haiku page covers that, and Opus 4.8 vs Opus 5 covers the Opus upgrade path.

Who should pick which

Stay on or pick Sonnet 5 if:

  • You run high-volume API work where price per token adds up.
  • Your evals show Sonnet 5 gets your tasks right.
  • You want the default model in the Claude apps without burning your limit.

Stay on or pick Opus 4.8 if:

  • Your tests show Sonnet 5 fails on your hardest tasks and the extra cost is worth it.
  • You have a production system tuned and validated on Opus 4.8 and no time to re-test this quarter.

Move to 5.5 if: you are starting fresh. Same or lower prices, newer models.

Comparing Claude with other vendors? See Sonnet 5 vs GLM 5.2 and Gemini 3.1 Pro vs Sonnet 5, or browse the AI tools hub.

How we checked, and when we check again

We read Anthropic's pricing docs, models overview, model deprecations page and the Claude Sonnet 5 announcement on 3 December 2026. Prices are in US dollars. We did not run benchmarks or quote third-party scores. Anthropic updates models and prices often (Sonnet 5's price change is proof), so we re-read these pages regularly and update the date at the top. If Anthropic's docs disagree with us, Anthropic wins. More on how we pick.

Questions people ask

Is Claude Sonnet 5 better than Opus 4.8?

Not across the board. Anthropic's launch post said Sonnet 5 performs close to Opus 4.8 at lower prices and called Opus 4.8 the more generally capable model. Sonnet 5 can match Opus 4.8 on some tasks at higher effort. For most coding and writing, Sonnet 5 is the better deal; for the hardest problems, test both.

How much cheaper is Sonnet 5 than Opus 4.8?

Per Anthropic's pricing docs, Sonnet 5 is $2 per million input tokens and $10 per million output; Opus 4.8 is $5 and $25. So Sonnet 5 costs 40% of Opus 4.8 on both sides. With the Batch API, both are half price: $1 and $5 for Sonnet 5, $2.50 and $12.50 for Opus 4.8.

Did Sonnet 5 pricing go up to $3 and $15?

No. Sonnet 5 launched with $2/$10 as introductory pricing through 31 August 2026. Anthropic's pricing docs now say $2/$10 is the standard price and the scheduled increase to $3/$15 on 1 September 2026 will not happen. Older articles still quote $3/$15.

Should I use Sonnet 5 or Opus 4.8 in Claude Code?

Start with Sonnet 5 for day-to-day coding: it is cheaper and fast, and in the apps it uses less of your plan. Switch to Opus 4.8 for large refactors or problems Sonnet keeps getting wrong. Better still, use Sonnet 5.5 or Opus 5.5, which Anthropic lists as its current models.

Are Sonnet 5 and Opus 4.8 being retired?

Not yet. Anthropic's deprecations page lists both as Active, with retirement not sooner than 30 June 2027 for Sonnet 5 and 28 May 2027 for Opus 4.8. Anthropic says it gives at least 60 days notice before retiring a publicly released model. Plan your move to the 5.5 models well before then.

Do Sonnet 5 and Opus 4.8 have the same context window?

Yes. Anthropic's models overview lists 1 million tokens of context and 128K tokens of max output for both. Long context is billed at standard per-token rates on Claude 4.6 and later models. Both use the newer tokenizer that Anthropic says produces about 30% more tokens for the same text than Claude 4.6 and earlier.

Sources

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

  1. Anthropic docs: Pricing, checked 3 Dec 2026
  2. Anthropic docs: Models overview, checked 3 Dec 2026
  3. Anthropic docs: Model deprecations, checked 3 Dec 2026
  4. Anthropic: Introducing Claude Sonnet 5, checked 3 Dec 2026