Frontier · Anthropic

Claude Sonnet 4.5

Near-Opus coding and agentic reliability at a fifth of the price — the default serious-work model in 2026.

Illustration of frontier AI models competing
ParamsContextLicenseReleasedPrice / 1M (in–out)Modality
Undisclosed200KProprietary, commercial APISep 2025$3 – $15Text, vision, tool use, computer use

What it is and who makes it

Claude Sonnet 4.5 is Anthropic’s mid-tier model and, frankly, the one most teams should be building on. Released September 2025, it lands between Haiku and Opus in both capability and price. Anthropic’s bet with the Sonnet line has always been “frontier-adjacent quality at sustainable cost,” and 4.5 is the strongest expression of that yet — it reportedly matches or beats Opus 4 on coding while costing a fraction as much.

Worth noting on the numbers: SWE-bench Verified scores across labs have been climbing fast, and Anthropic reportedly tuned Sonnet 4.5 specifically on agentic coding traces. In practice, Sonnet holds context across very long tool-call chains better than its predecessor — it finishes more 47-step refactors without needing to be reminded which files it was editing. That reliability is the actual product here; the benchmark table is just the receipt.

Architecture and what’s under the hood

Anthropic doesn’t disclose parameter counts or architecture specifics for Sonnet, so treat any exact figure with suspicion. Publicly known: 200K context, native tool use, vision, computer use, extended thinking and prompt caching, all served through the Messages API. It’s tuned for agentic workloads — reliable tool-call formatting, steady long-horizon behavior, and strong performance on code-editing benchmarks. Whether it’s a smaller dense model or a distilled sibling of Opus is not something Anthropic has confirmed either way.

Rate limits are worth planning around: Sonnet is the most-requested Claude tier, so Anthropic’s token-per-minute caps hit it first under heavy load. If you’re building a production feature on Sonnet, request a limit increase early rather than discovering it at launch. Bedrock and Vertex AI have their own quota systems with separate negotiation — factor that in if you need guaranteed throughput.

Strengths

  • Coding at 1/5 the Opus price. SWE-bench Verified ~77 (approximate, as of Nov 2026) — actually ahead of Opus 4.1’s ~74 on this particular board. That’s the headline.
  • Agentic stamina. Holds multi-hour agent runs together: tool calls stay well-formed, context stays coherent, and it recovers from failed steps without drama.
  • Instruction following. Same Claude-family discipline as Opus — formats honored, specs respected, less babysitting.
  • Speed-to-cost ratio. Fast enough for interactive use, cheap enough for CI pipelines and nightly eval runs.

Weaknesses and failure modes

  • Less headroom than Opus. On the hardest multi-step reasoning — gnarly proofs, very deep architectural judgment — Opus still has the edge.
  • Not the cheapest. At $3/$15 it’s pricier than Flash-tier value plays for bulk work.
  • Occasional over-editing. On refactor tasks it can touch more than you asked; bound the scope explicitly in the prompt.
  • Safety over-triggers on edge cases. Dual-use security work still draws refusals more often than you’d like.

Best for / not great for

Best for: day-to-day agentic coding, PR review, test generation, production assistants, RAG over large codebases, and anywhere you previously defaulted to Opus but flinched at the invoice.

Not great for: extreme-scale classification (use Haiku), whole-corpus 2M-token ingestion (use Gemini 3 Pro), or the very hardest reasoning where Opus earns its premium.

Variants and family

Sonnet 4.5 has no named sub-variants today. The family ladder is Opus 4.1 → Sonnet 4.5 → Haiku 4.5. Same API surface, same tool format — route per task. A common pattern: Haiku triages, Sonnet executes, Opus arbitrates the hard 5%.

Pricing, access and how to run it

$3 per million input tokens, $15 per million output — prompt caching drops repeat-context cost sharply. Available via the Claude API, Google Vertex AI, AWS Bedrock and OpenRouter as anthropic/claude-sonnet-4-5:

from anthropic import Anthropic

client = Anthropic()  # reads ANTHROPIC_API_KEY
msg = client.messages.create(
    model="claude-sonnet-4-5",
    max_tokens=2048,
    messages=[{"role": "user", "content": "Add type hints and tests to this module."}],
)
print(msg.content[0].text)

No self-hosted option. For local needs, look at Qwen 3 Coder or DeepSeek V3.2 instead.

Benchmarks snapshot

From models-data.js, as of Nov 2026, approximate: SWE-bench Verified ~77 · GPQA ~83. Commonly reported public numbers (approximate): MMLU in the high 80s, very strong Aider Polyglot scores, and TAU-bench results in the low-to-mid 80s. It’s consistently at or near the top of coding leaderboards while costing mid-pack — that’s the whole story.

How it stacks up

vs GPT-5: GPT-5 is $1.25/$10 — cheaper on both ends — and stronger on general reasoning and browsing. Sonnet wins on code-editing discipline, instruction fidelity and agent steadiness. For a coding-heavy team, Sonnet; for a general-reasoning-heavy team, GPT-5. Many run both.

vs GPT-5 Codex: Codex is arguably better for fully autonomous PR-sized tasks (SWE-bench ~78), but it’s narrow — worse at writing, analysis and general chat. Sonnet is the better daily driver; Codex is the specialist you call for the big overnight job.

PeaBox fit

Sonnet 4.5 is the default engine inside the PeaBox AI Workbench for anything beyond trivial completions — multi-file edits, repo Q&A, agent runs. Wire Prompt Library’s coding templates to it and they just work; it’s the model least likely to mangle a placeholder spec. In our CodeProof-AI flows, Sonnet handles the first-pass review and test generation, with Opus reserved for the disputed findings. If you configure one model in the Workbench and walk away, make it this one.

The practitioner’s take

Sonnet 4.5 is what “just use a good model” means in 2026. It closes most of the Opus gap, it’s fast, and it won’t bankrupt you. Start here, measure, and only escalate to Opus for the tasks your evals prove need it. Nine times out of ten, they won’t.

More from the atlas