Anthropic Claude Sonnet 5 vs Sonnet 4.6 vs Opus 4.8: Agentic Coding Benchmarks, API Pricing, and Cost Performance Tradeoffs Compared

Anthropic just posted Claude Sonnet 5. They call it the most active Sonnet model yet. It organizes, drives browsers and terminals, and automates all long tasks.
Sonnet 5 is the default model for the Free and Pro plans today. Super, Team, and Enterprise users can choose it. It is also live on Claude Code and Claude Platform.
The TL;DR
- The Sonnet 5 is Anthropic's most effective mid-tier modelto fill a big gap in Opus 4.8.
- It beats the Sonnet 4.6 in all published benchmarks: 63.2% SWE-bench Pro, 81.2% OSWorld-Verified, 57.4% GOOD.
- It's cheap to run: $2/$10 introductory price per MTok until Aug 31, then $3/$15; Opus 4.8 is $5/$25.
- Best value for low/medium effort; on xhigh it would cost more than Opus 4.8 for the same quality.
- It's safer than 4.6, which has a deliberately lower internet capability – Opus always selects a critical precision function.
Claude Sonnet 5
The Sonnet sits in the middle of the Anthropic list. It is above the cheap Haiku 4.5 and below the high end Opus 4.8.
Sonnet 5 is an upgrade to Sonnet 4.6, which was launched in February 2026. Anthropic credits this release with agency credibility, not a single title benchmark.
In practice, that means longer job chains without losing context. It means better self-correction when a tool call fails. It means strict behavior in all extended periods within the Claude Code or Cowork.
The model presents levels of effort: low, medium, high, and xhigh (very high). A higher effort spends more tokens on thinking. That raises both the standard and the cost.
It's important to note that Sonnet 5 uses an updated token, the same one introduced with Opus 4.7. The same script can map about 1.0 to 1.35 times more tokens.
Interactive Descriptor
Claude Sonnet 5 – Cost & Ability Tester
Estimate the cost per job across models and compare published benchmarks. All figures for Anthropic's launch on June 30, 2026.
Average cost per job
$0.00
per job • $0.00/day • $0.00/mo
Sonnet 5 uses an updated tokenizer (similar to Opus 4.7). The same text can map to about 1.0–1.35× more tokens, so the feature is only used in Sonnet 5.
Comparison of published benchmarks
Sonnet 4.6
Sonnet 5
Opus 4.8
In the knowledge task (GDPval-AA v2), Sonnet 5 scores 1,618 and Opus 4.8's edges 1,615. That benchmark uses a different scale, so it's shown here as a note rather than a bar.
Benchmark
The Anthropic team has published a standing table comparing Sonnet 5, Sonnet 4.6, and Opus 4.8. Sonnet 5 beats its predecessor in every category tested. It fills a big gap in Opus 4.8.
In agent coding (SWE-bench Pro), Sonnet 5 scores 63.2%. Sonnet 4.6 scored 58.1%. Opus 4.8 is still the best at 69.2%.
In computer usage (OSWorld-Verified), Sonnet 5 posts 81.2% against Sonnet 4.6's 78.5%. In Terminal-Bench 2.1, it reaches 80.4% compared to 67.0%.
In the Last Mankind test with tools, Sonnet 5 scored 57.4%. That's about the same as Opus 4.8 at 57.9%.
There is one area where Sonnet 5 edges ahead. In the GDPval-AA v2 benchmark, it scores 1,618 compared to Opus 4.8's 1,615.



Levels of Effort: Where the Real Tradeoff Lives
The issue of cost effectiveness is a very important aspect for engineers. Sonnet 5 is a solid improvement over Sonnet 4.6 at all effort levels. The most obvious value comes from low and medium effort.
At those levels, the Sonnet 5 delivers quality that the previous Sonnet's price couldn't buy. The Opus 4.8 remains the precision leader at the top of the range.
The active routing policy follows this. Port more agent code, tool usage, and information work to Sonnet 5. Reserve Opus 4.8 for more important tasks. Reserve the Haiku 4.5 for high-volume, hands-free calls.
Use Cases: Where Sonnet 5 Fits
Early access partners have defined a portable workflow. Their reports map out typical engineering jobs.
- Multi-step software engineering: One tester asked Sonnet 5 to investigate a bug. Wrote a reproducibility test, applied the fix, and verified that the error returned without change. It did this in one pass.
- Brownfield debugging: Another colleague ran it with heavy pull requests. The model traced the failures to their causes. Post fixes that last longer than symptom patches.
- Business automation: Zapier has given you a two-part task. Reviewed the Salesforce account categories, then sent an onboarding email to business contacts. Finish the job end to end.
- Computerized agents: Pace runs the insurance work flow like taking and delivering losses. Its agents run on operating systems that teams already use.
- Data analysis: ClickHouse agents query live data and generate insights on the fly. Quick thinking means quick time understanding for analysts.
Comparison table
| Metric / Specification | Sonnet 4.6 | Sonnet 5 | Opus 4.8 |
|---|---|---|---|
| Agentic Code (SWE-bench Pro) | 58.1% | 63.2% | 69.2% |
| Terminal-Bench 2.1 | 67.0% | 80.4% | not reported |
| Computer usage (OSWorld-Verified) | 78.5% | 81.2% | not reported |
| Final Human Test (with tools) | 46.8% | 57.4% | 57.9% |
| Information function (GDPval-AA v2) | not reported | 1,618 | 1,615 |
| Input price ($/MTok) | 3 | 2 introduction, then 3 | 5 |
| Exit Price ($/MTok) | 15 | 10 intro, then 15 | 25 |
Introductory pricing for Sonnet 5 begins on August 31, 2026. Regular pricing of $3/$15 begins after that date. Standard fast caching (cache reads at 0.1x input) and 50% off Batch API applies. Per token, the Sonnet 5 undercuts the GPT-5.5 and Gemini 3.1 Pro, but costs more than the Gemini 3.5 Flash. Anthropic lists a 1M token context window for Sonnet 5 in its launch post. It does not publish content statistics for other models here.
Example code: Calling Sonnet 5
The API call displays any other Anthropic model. You change the model string to claude-sonnet-5.
import anthropic
client = anthropic.Anthropic() # reads ANTHROPIC_API_KEY
message = client.messages.create(
model="claude-sonnet-5",
max_tokens=1024,
messages=[
{"role": "user", "content": "Find the race condition in worker.py and ship a tested fix."}
],
)
print(message.content[0].text)
Strengths and Weaknesses
Power:
- Improves to Sonnet 4.6 in all tested Anthropic stance categories
- Near-Opus 4.8 quality in a few tests, with low prices per token
- Edges Opus 4.8 benchmark for GDPval-AA v2
- Lower hallucination, sycophancy, and levels of unsavory behavior than Sonnet 4.6
- Drop-in API change: you only change the model string
Weaknesses:
- Opus 4.8 still wins in the most demanding tasks that require precision
- With xhigh effort, the cost can surpass Opus 4.8 with the same quality
- The new token can increase the token count up to 1.35 times
- Cyber power is intentionally low; use Opus for authorized cyber work
- Regular price of $3/$15 comes after August 31, 2026
Claude Sonnet 5 – Public Reaction
Early developer feedback from Hacker News and X on launch date, June 30, 2026.
Emotions for 8 reactions shown
Good · 38%
Moderate / Mixed · 38%
Bad · 25%
Mixed reception: praise for value-for-money, skepticism about standing at full price of $3/$15. Hand labeled from the community post below; The two Reddit links are live threads, not listed here.
X@ClaudeDevs (official)Good
“Top class performance in coding and tooling at the price of a Sonnet” — with a 1M content window.
View post on X →
Hacker NewsphilipcarterGood
“Another great upgrade to a workhorse.” It uses Sonnet over Opus for most coding.
View comments on HN →
Hacker NewshappyIt is mixed
It's more desirable at the $2/$10 launch price than at the regular full prices.
View comments on HN →
X@kimmonismusGood
“Close to Opus 4.8 level performance, but cheaper.” Strong advantages in thinking and using tools.
View post on X →
Hacker NewsI don'tSerious
“If you're doing something hard, just use a bigger model.” Opus wins border shares.
View comments on HN →
Hacker NewsconradkaySerious
“Seems even worse values/performance than GLM 5.2” for 744B parameters.
View comments on HN →
Hacker Newsmag7269Neutrality
“When can we get a new Haiku?” The 4.5 is almost a year old and showing its age.
View comments on HN →
Hacker NewscousinsIt is mixed
He sees value clearly in low and medium effort; very slow compared to Opus 4.8.
View comments on HN →
Redditr/ClaudeAI
Launch date discussion — benchmarks, pricing, and impressions of the Claude code from the community.
Turn on the live stream →
Redditr/LocalLLaMA
Open-weights vs. Sonnet 5 values/performance debate, with GLM-5.2 and K2.7 comparison.
Turn on the live stream →
Reddit cards link to live launch day subreddits, as one canonical thread was still forming at press time. Hacker News and X-Cards cite direct, interactive social posts. Emotion labels are a manually learned system, not an automated score.
Check it out Technical details. Also, feel free to follow us Twitter and don't forget to join our 150k+ML SubReddit and Subscribe to Our newspaper. Wait! are you on telegram? now you can join us on telegram too.
Need to work with us on developing your GitHub Repo OR Hug Face Page OR Product Release OR Webinar etc.? contact us



