Opus 5 vs Sonnet 5
Newer releases exist: Opus 5 → Opus 5.5; Sonnet 5 → Sonnet 5.5. See Opus 5.5 vs Sonnet 5.5 for the same choice between the current models.
Side by side
| Opus 5 | Sonnet 5 | |
|---|---|---|
| Input / MTok | $5 | $2 |
| Output / MTok | $25 | $10 |
| Cache read / MTok | $0.50 | $0.20 |
| Context window | 1M | 1M |
| Max output | 128K | 128K |
| Min cacheable prefix | 512 | 1,024 |
| Effort levels | low, medium, high, xhigh, max | low, medium, high, xhigh, max |
| Effort default | high | high |
| Thinking | On by default — can be disabled | On by default — can be disabled |
| Forced tool_choice | accepted | accepted |
The comparison most teams made for the 5 generation
This was the pairing most workloads weighed against each other before both models were superseded, since both sit in the practical range for real production work rather than at either extreme of the lineup. Opus 5 costs more per token and carries thinking on by default; Sonnet 5 is meaningfully cheaper and was specifically built to close the quality gap with Opus on coding and agentic tasks rather than trail far behind it the way an entry-level model would.
Where the price gap is worth paying, and where it isn't
For tasks near the genuine ceiling of difficulty — ambiguous, high-stakes, multi-step work — the price gap tends to be worth paying, since a wrong or shallow answer costs more than the extra tokens. For routine, well-scoped work, Sonnet 5's narrower gap to Opus quality on exactly this kind of task, at a substantially lower price, usually makes it the better default rather than a compromise.
Testing both against the same task before committing
Because the two are close enough in capability on a meaningful slice of real work, the most reliable way to choose is running your actual hardest and most typical tasks against both and comparing output quality directly, rather than deciding from the price gap alone.
Related
See the model picker for a recommendation tailored to your specific task shape and budget rather than a general comparison, and Sonnet 5 vs Haiku 4.5 for the next comparison down the cost curve.
Verified 2026-09-30 against claude-api skill — shared/models.md, model-migration.md + SKILL.md model table and Anthropic's pricing and model-deprecation pages (canonical: https://platform.claude.com/docs/en/about-claude/models/overview, https://platform.claude.com/docs/en/about-claude/pricing, https://platform.claude.com/docs/en/about-claude/model-deprecations).