What It Is / 这是什么

Anthropic released Claude Sonnet 5 on June 30, 2026, the latest mid-tier model in the Claude lineup. It replaces Sonnet 4 as the default recommendation for most production workloads — balancing capability, speed, and cost.

In benchmarks shared by Anthropic, Sonnet 5 achieves a 68% pass rate on SWE-bench Verified (up from 49% for Sonnet 4), putting it within striking distance of dedicated coding agents. On general knowledge and reasoning (MMLU-Pro, GPQA), it matches or slightly exceeds Opus 4 while running at roughly 2x the speed.

Simon Willison's coverage noted the model's significantly improved tool-use reliability, calling it "the first Claude model where I'd trust it to autonomously loop through API calls without constant hand-holding."

Why It Matters / 为什么重要

The mid-tier model market is where most AI products live. Sonnet 4 already powered thousands of apps; Sonnet 5 makes those apps faster and cheaper without asking users to downgrade intelligence.

Price drop: Sonnet 5 costs $2 per million input tokens and $8 per million output tokens — half the price of Sonnet 4 ($4 / $16). At these rates, long-running agent loops that were cost-prohibitive (e.g., crawling 50 pages, editing 20 files, running a multi-step research pipeline) become economical. Anthropic's pricing page confirms the drop.

Speed: Time-to-first-token is down ~45%, and tokens-per-second is up roughly 2x. For latency-sensitive use cases — chatbots, inline code completions, real-time translation — this is the difference between feeling snappy and feeling sluggish.

Key Features / 核心特性

Agentic Tool Use

The headline improvement is tool-use accuracy. Sonnet 5 scores 85% on Anthropic's internal tool-calling eval, vs 72% for Sonnet 4. It makes fewer "wrong parameter" calls and recovers from mid-chain errors more gracefully. For developers building agent loops — multi-step tool orchestration, file editing, API chaining — this directly reduces the number of retry and validation steps you need to code.

200K Context Window

Same 200K token context as before, but Sonnet 5 processes the full window much faster. Retrieval-over-long-context benchmarks show 95% recall at 128K tokens — comparable to specialized RAG pipelines without the infrastructure overhead.

Consistent Outputs

Sonnet 5 introduces improved instruction following for structured outputs. JSON mode and tool-call schemas are more reliably respected, with fewer format violations. This matters for production pipelines where a malformed response means a crashed parser.

How It Compares / 对比

BenchmarkSonnet 4Sonnet 5Opus 4
SWE-bench Verified49%68%57%
MMLU-Pro78%81%82%
GPQA Diamond61%68%69%
Speed (tokens/sec)~60~120~40
Price (input/output per M)$4/$16$2/$8$15/$75

Sonnet 5 doesn't just beat Sonnet 4 — it undercuts Opus 4 on several coding benchmarks while costing a fraction of the price. As Simon Williston noted, "for the first time, I'd reach for Sonnet over Opus for a coding task."

Who Should Use It / 适用人群

FAQ / 常见问题

Q: Is Sonnet 5 available on the Anthropic API now? A: Yes — it went live on June 30, 2026 across the Anthropic API, Amazon Bedrock, and Google Cloud Vertex AI.

Q: Does Sonnet 5 support prompt caching? A: Yes, with the same 5-minute TTL as other Claude models. Combined with the 50% price cut, cached Sonnet 5 costs just $0.40/M input tokens.

Q: Can Sonnet 5 browse the web or run code? A: It can use tools (browser, code execution, file ops) via API tool calls — same agentic interface as previous Claude models, just faster and cheaper.

Q: Should I switch from GPT-4o? A: On coding benchmarks (SWE-bench, HumanEval) Sonnet 5 leads by 5-10 points. On general knowledge it's roughly tied. The main differentiator is cost: Sonnet 5 is ~60% cheaper for comparable quality.

Explore 40+ AI tools on TokenJoy.ai

Real reviews, pricing, and comparisons — updated weekly.

Browse AI Tools →