head-to-head
| Metric | Claude Opus 4.8 | Gemini 3.1 Pro |
|---|---|---|
| SWE-bench Verified | ~86% | 80.6% |
| SWE-bench Pro | 69.2% | 54.2% |
| Terminal-Bench | ~82.7% (TB2.1) | — |
| Input $ / 1M | $5 | — |
| Context | 1M | — |
| Open weights | No | No |
| Maker | Anthropic | Google DeepMind |
when to pick each
The hardest agentic refactors and long, autonomous multi-file tasks where every point of accuracy saves a human review cycle.
Google's strongest coding model today, with deep Workspace/Cloud integration. (A 3.5 Pro is expected but not shipped.)
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.
- Google DeepMindGoogle DeepMind — Gemini Pro — DeepMind-reported pass rate; ties DeepSeek V4 on Verified, trails it on Pro.
- BenchmarkSWE-bench — the real-GitHub-issue benchmark