Claude Opus 4.8 vs Gemini 3.1 Pro
Detailed comparison of API pricing, technical specifications, and benchmark scores. Updated 2026-06-29.
Cost at a Glance
Claude Opus 4.8 is 2.2× more expensive than Gemini 3.1 Pro — switching could save 54.7% on your monthly API bill.
At 5M input + 2M output tokens per month:
Choosing Gemini 3.1 Pro could save you $41.00/mo
Price Comparison (per 1M tokens)
| Metric | Claude Opus 4.8 | Gemini 3.1 Pro |
|---|---|---|
| Input (per 1M tokens) | $5.00 | $2.00 |
| Output (per 1M tokens) | $25.00 | $12.00 |
| Cache Write (per 1M tokens) | $6.25 | — |
| Cache Read (per 1M tokens) | $0.50 | $0.20 |
| Batch Input (per 1M tokens) | $2.50 | — |
| Batch Output (per 1M tokens) | $12.50 | — |
Prices are per 1 million tokens. Actual costs depend on your monthly token volume. Use the calculator →
Specifications
| Spec | Claude Opus 4.8 | Gemini 3.1 Pro |
|---|---|---|
| Context Window | 1M | 1M |
| Max Output Tokens | 128K | 64K |
| Knowledge Cutoff | 2026-03 | 2026-04 |
| Modalities | Text, Image | Text, Image, Audio, Video |
| Prompt Caching | Yes | Yes |
| Batch API | Yes | No |
| Thinking / Reasoning | Yes | Yes |
Benchmark Scores
| Benchmark | Claude Opus 4.8 | Gemini 3.1 Pro |
|---|---|---|
| SWE-bench Verified | 87.6 | 80.6 |
| MMLU-Pro | 86.8 | 86.5 |
| HumanEval | 95.1 | 93.5 |
Benchmark scores from official provider reports. Higher is better. Missing scores indicate the provider has not published that benchmark yet.
Use Cases
Claude Opus 4.8
Gemini 3.1 Pro
About the Providers
Claude Opus 4.8 is developed by Anthropic. Gemini 3.1 Pro is developed by Google. This is a cross-provider comparison between Anthropic and Google models. For the most up-to-date pricing, always check the official API documentation from each provider.