head-to-head
| Metric | Claude Opus 4.8 | Claude Sonnet 5 |
|---|---|---|
| SWE-bench Verified | ~86% | 85.2% |
| SWE-bench Pro | 69.2% | 63.2% |
| Terminal-Bench | ~82.7% (TB2.1) | 80.4% (TB2.1) |
| Input $ / 1M | $5 | $2 |
| Context | 1M | 1M |
| Open weights | No | No |
| Maker | Anthropic | Anthropic |
when to pick each
The hardest agentic refactors and long, autonomous multi-file tasks where every point of accuracy saves a human review cycle.
The best closed-model value — near-Opus scores at ~2.5× less, and the default daily driver for most developers.
Full reviewsClaude Sonnet 5, decoded
Ranked on our AI Coding Leaderboard, updated 2026-07-02. Scores are confirmed against primary sources; prices are per 1M input tokens and can change.
- AnthropicAnthropic — Claude Opus 4.8 — Anthropic-reported; independent evals (vals.ai) track within ~1 point.
- AnthropicGENZ TECH — Claude Sonnet 5, decoded — Anthropic-reported. Intro pricing $2/$10 per 1M through Aug 31, 2026, then $3/$15.
- BenchmarkSWE-bench — the real-GitHub-issue benchmark