Claude Sonnet 5: The Complete Guide to Anthropic’s Most Agentic Sonnet Model
If you’ve spent any time picking a model for a coding agent, a research assistant, or a customer-facing chatbot, you already know the frustrating part isn’t understanding what a model can do in theory — it’s figuring out whether it will actually hold together across a messy, multi-step task without falling apart halfway through. Claude Sonnet 5, released by Anthropic on June 30, 2026, was built specifically to close that gap. It’s positioned as the most agentic model in the Sonnet line to date, narrowing the distance to Anthropic’s flagship Opus 4.8 while staying at Sonnet-tier pricing.
This guide walks through what Sonnet 5 actually changes, who it’s for, how it stacks up against Opus 4.8 and its own predecessor, and the practical details — pricing, context window, migration quirks — that determine whether it’s the right fit for your workload.
What Is Claude Sonnet 5?
Claude Sonnet 5 is the newest release in Anthropic’s mid-tier “Sonnet” model family, sitting between the lightweight Haiku models and the top-end Opus and Mythos tiers. It’s built as a drop-in upgrade to Claude Sonnet 4.6, and it’s now the default model for Free and Pro plan users on Claude.ai, while remaining available to Max, Team, and Enterprise plans, Claude Code, and the Claude Platform (formerly the Claude API).
The core pitch is autonomy at a lower price point. Where earlier Sonnet models — 3.5, 3.6, and 3.7 — first introduced developers to genuinely useful coding and tool-use behavior, the biggest agentic gains over the past year had concentrated in the pricier Opus-class models. Sonnet 5 is Anthropic’s attempt to bring that agentic capability back down into the Sonnet tier, without the Opus price tag.
Core Concepts at a Glance
| Attribute | Claude Sonnet 5 |
|---|---|
| Model family | Sonnet (mid-tier) |
| Model ID (API) | claude-sonnet-5 |
| Context window | 1M tokens (default and maximum — no smaller variant) |
| Max output tokens | 128K |
| Thinking mode | Adaptive thinking (on by default); manual extended thinking removed |
| Introductory pricing | $2 / $10 per million input/output tokens (through Aug 31, 2026) |
| Standard pricing | $3 / $15 per million input/output tokens |
| Availability | Free, Pro, Max, Team, Enterprise, Claude Code, Claude Platform, Amazon Bedrock |
| Priority Tier | Not available |
Why Sonnet 5 Matters: The Agentic Shift
The headline capability isn’t a single benchmark score — it’s follow-through. Early access partners consistently reported that Sonnet 5 finishes complex, multi-step jobs that earlier Sonnet models would abandon partway. One example Anthropic cited: a two-part job updating Salesforce account tiers and sending a launch announcement to enterprise contacts, completed end-to-end without stalling — a task type that previously required manual hand-off partway through.
That pattern shows up across independent testing too. Cursor’s own benchmark (CursorBench) put Sonnet 5 at 57%, up from 49% for Sonnet 4.6, and one widely cited agentic coding benchmark placed Sonnet 5 at 63.2%, versus 58.1% for Sonnet 4.6 and 69.2% for Opus 4.8 — a meaningful jump that still leaves room between Sonnet and Opus. Notably, on a knowledge-work benchmark, Sonnet 5 reportedly edged out even Opus 4.8, which suggests the gains aren’t confined to coding alone.
Developers working with the model describe it doing things that used to require explicit prompting: writing a reproducing test for a reported bug, implementing the fix, then reverting the change to confirm the bug actually returns — all without being asked to verify its own work. That self-checking behavior is arguably the more important shift than any single benchmark number, because it changes how much oversight a human needs to provide mid-task.
Sonnet 5 vs. Sonnet 4.6: What Actually Changed
If you’re currently running workloads on Sonnet 4.6, three concrete, breaking-adjacent changes matter more than the marketing headline:
Adaptive thinking is on by default. Manual extended thinking (the thinking: {type: "enabled", budget_tokens: N} parameter) is no longer supported and returns a 400 error — the same restriction already in place on Opus 4.7 and 4.8. Use thinking: {type: "adaptive"} with the effort parameter instead.
Fixed sampling parameters. Setting temperature, top_p, or top_k to non-default values now returns a 400 error.
A new tokenizer. The same input text produces roughly 30% more tokens than it did under Sonnet 4.6. This doesn’t change your code, but it does change your math: token counts, context budgets, and max_tokens limits sized for Sonnet 4.6 may now behave differently, and per-request cost for equivalent work can shift even though per-token pricing is unchanged.
Outside of these three changes, code already running on Sonnet 4.6 needs no modification to run on Sonnet 5.
Sonnet 5 vs. Opus 4.8: Which One Should You Use?
This is the question most teams actually need answered, and Anthropic’s own framing is fairly direct: Opus 4.8 remains the choice when accuracy is paramount for the hardest tasks, while Sonnet 5 gives developers a much less expensive option that still clears a high quality bar. Opus 4.8 is priced at $5/$25 per million input/output tokens — noticeably more than Sonnet 5’s $3/$15 standard rate (or $2/$10 during the introductory period).
Choose Sonnet 5 when:
- The workload involves sustained tool use, long context, and multiple steps where reducing human correction loops matters more than squeezing out the last few points of accuracy.
- Cost-per-task is a real constraint (high-volume automation, customer support, day-to-day coding).
- You’re upgrading an existing Sonnet 4.6 integration and want better agentic follow-through without a full re-architecture.
Choose Opus 4.8 when:
- The task has high consequences for being wrong — complex reasoning chains, long-horizon autonomous coding, or anything touching sensitive cybersecurity contexts.
- You need Priority Tier access, which Sonnet 5 does not support.
- The workload sits right at the edge of what Sonnet-class models can reliably do; Anthropic’s own system card notes Sonnet 5 does not advance the model family’s capability frontier the way Opus- or Mythos-class models do.
Anthropic frames this less as a strict hierarchy and more as an “effort dial” — between Sonnet 5 and Opus 4.8, teams can adjust for the right balance of cost and performance rather than treating one as strictly obsolete.
How Sonnet 5 Compares to Competing Models
At launch, Sonnet 5’s pricing undercut both OpenAI’s GPT-5.5 and Google’s Gemini 3.1 Pro, while remaining more expensive than Google’s Gemini 3.5 Flash. For teams already evaluating multiple providers, that positions Sonnet 5 as a mid-market option: more capable than the cheapest tier of competing models, less expensive than premium-tier alternatives.
Safety and Cybersecurity Behavior
Sonnet 5 is the first Sonnet-tier model to ship with real-time cybersecurity safeguards. In practice, this means requests touching prohibited or high-risk cybersecurity topics may be refused — and those refusals return as a standard HTTP 200 response with stop_reason: "refusal" rather than an error, which matters if your integration doesn’t already handle that response shape.
On broader safety evaluations, Anthropic reports that Sonnet 5 shows a lower rate of undesirable behaviors — including hallucination and sycophancy — than Sonnet 4.6, and is generally safer in agentic contexts, including better resistance to prompt-injection-style hijack attempts. That said, Anthropic’s own system card is candid that Sonnet 5 poses somewhat higher alignment risk than earlier Sonnet models, even though it remains “very low” in absolute terms, and it does not match Opus 4.8 or Claude Mythos 5 on the more demanding measures of misaligned behavior. Its ability to perform higher-risk cybersecurity tasks is explicitly reported as much lower than Anthropic’s current Opus models — a deliberate limitation rather than an oversight.
Common Mistakes When Adopting Sonnet 5
- Reusing Sonnet 4.6 token budgets without re-testing. Because the new tokenizer produces about 30% more tokens for equivalent text, a
max_tokensvalue that worked fine before can now truncate output. Recount and re-test rather than assuming parity. - Assuming manual thinking budgets still work. Any code still setting
thinking: {type: "enabled", budget_tokens: N}will start failing with a 400 error. Migrate to adaptive thinking with theeffortparameter before switching models in production. - Expecting Priority Tier support. Teams relying on Priority Tier for latency-sensitive workloads need to keep those workloads on a model that supports it — Sonnet 5 doesn’t.
- Treating benchmark wins as universal. Sonnet 5 narrows the gap to Opus 4.8 on several dimensions and even leads on some knowledge-work evaluations, but it isn’t uniformly ahead of or equal to Opus. Validate against your own real workload before fully migrating.
Adoption Checklist
- Confirm which plan or API tier you’re on and that Sonnet 5 is enabled (
claude-sonnet-5model ID for API/Platform use). - Audit existing code for manual extended-thinking parameters and migrate to adaptive thinking.
- Remove or adjust any non-default temperature/top_p/top_k settings.
- Recount token budgets and
max_tokenslimits against the new tokenizer. - Re-test any workload that depends on Priority Tier, since it isn’t supported on Sonnet 5.
- Benchmark your specific task against both Sonnet 5 and Opus 4.8 before committing to one at scale.
- Note the pricing cliff on August 31, 2026, when introductory pricing ends.
Future Outlook
Anthropic has signaled that the Sonnet line is now the primary battleground for closing the cost-performance gap with Opus-class models, rather than treating Sonnet as a purely “lighter” option. Given the pace of releases across 2026 — Sonnet 4.6, then Sonnet 5 within a matter of months — teams should expect further iteration in this line, likely continuing to prioritize agentic follow-through, tool use, and long-context reliability over raw benchmark chasing.
Conclusion and Key Takeaways
Claude Sonnet 5 is best understood as Anthropic pushing agentic reliability — planning, tool use, self-verification — down into its most widely used and most affordably priced model tier. It isn’t a replacement for Opus 4.8 on the hardest, highest-stakes tasks, but for the broad middle of coding, automation, and knowledge-work use cases, it’s a meaningful upgrade over Sonnet 4.6 at a comparable or lower cost.
Key takeaways:
- Sonnet 5 is the default model for Free and Pro Claude.ai plans, and is available across Max, Team, Enterprise, Claude Code, and the Claude Platform.
- It’s a drop-in upgrade from Sonnet 4.6 with three notable behavior changes: adaptive thinking by default, no manual thinking budgets, and fixed sampling parameters.
- The new tokenizer produces about 30% more tokens for the same text — recheck your token budgets.
- It narrows, but doesn’t close, the performance gap with Opus 4.8, while costing meaningfully less.
- Introductory pricing of $2/$10 per million input/output tokens runs through August 31, 2026.
Frequently Asked Questions
What is Claude Sonnet 5? Claude Sonnet 5 is Anthropic’s latest mid-tier (“Sonnet”) language model, released June 30, 2026, built for stronger agentic performance — planning, tool use, and multi-step task completion — at Sonnet-level pricing.
What is the API model ID for Claude Sonnet 5? claude-sonnet-5.
How much does Claude Sonnet 5 cost? Introductory pricing is $2 per million input tokens and $10 per million output tokens through August 31, 2026. After that, standard pricing is $3 per million input tokens and $15 per million output tokens.
Is Claude Sonnet 5 better than Opus 4.8? Not universally. Sonnet 5 narrows the performance gap with Opus 4.8 and even leads on some knowledge-work benchmarks, but Opus 4.8 remains the stronger choice for the highest-stakes reasoning, long-horizon autonomy, and cybersecurity-sensitive tasks.
What is Claude Sonnet 5’s context window? 1 million tokens, which is both the default and the maximum — there’s no smaller context variant.
Does Claude Sonnet 5 support extended thinking? It supports adaptive thinking by default. Manual extended thinking with a fixed budget_tokens parameter has been removed and returns a 400 error.
Why did my token usage go up after switching to Sonnet 5? Sonnet 5 uses a new tokenizer that produces roughly 30% more tokens for the same input text compared to Sonnet 4.6. This isn’t an API change, but it does affect anything measured or budgeted in tokens.
Is Claude Sonnet 5 available on Amazon Bedrock? Yes, alongside Claude.ai (Free, Pro, Max, Team, Enterprise), Claude Code, and the Claude Platform.
Does Claude Sonnet 5 support Priority Tier? No. This is one of the few platform features from Sonnet 4.6 that isn’t carried over.
Is Claude Sonnet 5 safe to use in agentic contexts? Anthropic reports lower rates of undesirable behavior (including hallucination and sycophancy) compared to Sonnet 4.6, and improved resistance to prompt-injection attempts, though it carries somewhat higher alignment risk than earlier Sonnet models and has deliberately limited cybersecurity task capability compared to Opus-class models.

