- Home
- Models
- Comparisons
- Claude Opus 5 vs Gemini 3.1 Pro Preview
Claude Opus 5 vs Gemini 3.1 Pro Preview: API pricing and context window
Gemini 3.1 Pro Preview is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 52% cheaper for output ($12.00 vs $25.00). Context window: 1,000,000 tokens for Claude Opus 5, 1,048,576 for Gemini 3.1 Pro Preview. A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.032 on Gemini 3.1 Pro Preview.
- Claude Opus 5
- $5.00 / $25.00 Input / Output, per 1M tokens · 1M context window
- Gemini 3.1 Pro Preview
- $2.00 / $12.00 Input / Output, per 1M tokens · 1M context window
Side by side
| Field | Claude Opus 5 | Gemini 3.1 Pro Preview | Claude Opus 5 vs Gemini 3.1 Pro Preview |
|---|---|---|---|
| Input | $5.00 | $2.00 | +150% |
| Output | $25.00 | $12.00 | +108% |
| Cached input | $0.50 | $0.20 | +150% |
| Context window | 1,000,000 | 1,048,576 | -5% |
| Max output | 128,000 | 65,536 | +95% |
| Long-context threshold | none | 200,000 | |
| Batch API input | $2.50 | $1.00 | +150% |
| Batch API output | $12.50 | $6.00 | +108% |
| Image input | Yes | Yes | |
| Function calling | Yes | Yes | |
| Reasoning | Yes | Yes | |
| Prompt caching | Yes | Yes | |
| PDF input | Yes | Yes | |
| Web search | Yes | Yes | |
| Structured output | Yes | Yes | |
| Minimum cacheable prompt | 512 | 4,096 |
Cost per task
| Task | Claude Opus 5 | Gemini 3.1 Pro Preview | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.075 | $0.032 | Gemini 3.1 Pro Preview (57% less) |
| Codebase question (100K in + 2K out) | $0.55 | $0.224 | Gemini 3.1 Pro Preview (59% less) |
| Same question, context cached (100K cached + 2K out) | $0.10 | $0.044 | Gemini 3.1 Pro Preview (56% less) |
| Long document (300K in + 4K out) | $1.60 | $1.27 | Gemini 3.1 Pro Preview (21% less) |
| 1M tokens a month (750K in + 250K out) | $10.00 | $4.50 | Gemini 3.1 Pro Preview (55% less) |
Estimate your own workload in the calculator
Which one to pick
- Pick Gemini 3.1 Pro Preview to spend less: it is cheaper on every task above. A chat request costs $0.032 vs $0.075, and 1M tokens a month $4.50 vs $10.00.
- Claude Opus 5 returns longer answers: up to 128,000 output tokens in one response, against 65,536 for Gemini 3.1 Pro Preview.
- Gemini 3.1 Pro Preview bills the whole request at $4.00 input and $18.00 output per 1M once a prompt passes 200K tokens; Claude Opus 5 lists no long-context surcharge.
- Through the Batch API, Gemini 3.1 Pro Preview is cheaper for input and output: $1.00 vs $2.50 and $6.00 vs $12.50 per 1M tokens.
- Gemini 3.1 Pro Preview charges less for cached input reads: $0.20 vs $0.50 per 1M tokens.
Full pages: Claude Opus 5 · Gemini 3.1 Pro Preview
More comparisons
- Claude Opus 5.5 vs Claude Opus 5
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Opus 5 vs GPT-6.2 Astra
- Claude Opus 5 vs Grok 4.7
- GPT-6.2 Astra vs Gemini 3.1 Pro Preview
- GPT-5.5 vs Gemini 3.1 Pro Preview
- Gemini 3.1 Pro Preview vs Grok 4.7
- Claude Opus 5 vs Kimi K3
Questions
Which is cheaper, Claude Opus 5 or Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview is 60% cheaper than Claude Opus 5 for input ($2.00 vs $5.00 per 1M tokens) and 52% cheaper for output ($12.00 vs $25.00). A 10K-input, 1K-output request costs $0.075 on Claude Opus 5 and $0.032 on Gemini 3.1 Pro Preview.
Which has the larger context window, Claude Opus 5 or Gemini 3.1 Pro Preview?
Gemini 3.1 Pro Preview accepts more: 1,048,576 input tokens, against 1,000,000 for Claude Opus 5. Max output: 128,000 tokens for Claude Opus 5, 65,536 for Gemini 3.1 Pro Preview.
How much does a typical request cost on Claude Opus 5 and Gemini 3.1 Pro Preview?
A chat request with 10K input and 1K output tokens costs $0.075 on Claude Opus 5 and $0.032 on Gemini 3.1 Pro Preview. A 100K-token codebase question with a 2K answer costs $0.55 and $0.224.
What are the differences between Claude Opus 5 and Gemini 3.1 Pro Preview?
Claude Opus 5 / Gemini 3.1 Pro Preview: input: $5.00 / $2.00; output: $25.00 / $12.00; cached input: $0.50 / $0.20; context window: 1,000,000 / 1,048,576; max output: 128,000 / 65,536; long-context threshold: none / 200,000; Batch API input: $2.50 / $1.00; Batch API output: $12.50 / $6.00.