Claude Sonnet 5 vs Gemini 3.1 Pro Preview: API cost
Standard, cached and batch API prices for Claude Sonnet 5 (Anthropic) and Gemini 3.1 Pro Preview (Google), and what each costs for your usage.
Claude Sonnet 5 is cheaper than Gemini 3.1 Pro Preview at standard rates, with the same input price and 17% cheaper output.
- Input $60.00
- Cached input $6.00
- Output $90.00
- Input $60.00
- Cached input $6.00
- Output $108.00
Show as a table
| Output tokens | Claude Sonnet 5 | Gemini 3.1 Pro Preview |
|---|---|---|
| 0 | $2.00 | $2.00 |
| 250 | $4.50 | $5.00 |
| 500 | $7.00 | $8.00 |
| 750 | $9.50 | $11.00 |
| 1,000 | $12.00 | $14.00 |
| Token type | Claude Sonnet 5 | Gemini 3.1 Pro Preview | |
|---|---|---|---|
| Input | $2 | $2 | Same price |
| Cached input | $0.20 | $0.20 | Same price |
| Output | $10 | $12 | Claude Sonnet 5 is 17% cheaper |
| Batch input | $1 | $1 | Same price |
| Batch cached input | $0.10 | $0.20 | Claude Sonnet 5 is 2× cheaper |
| Batch output | $5 | $6 | Claude Sonnet 5 is 17% cheaper |
Gemini 3.1 Pro Preview: Prompts over 200K tokens are billed at a higher rate.
| Workload | Claude Sonnet 5 | Gemini 3.1 Pro Preview |
|---|---|---|
Support chatbot 2,000 in / 300 out tokens,
1,000 requests a day, 50% cached | $156.00 | $174.00 |
Document summaries 10,000 in / 800 out tokens,
200 requests a day | $168.00 | $177.60 |
Tagging / classifying 400 in / 20 out tokens,
20,000 requests a day | $600.00 | $624.00 |
More comparisons
- GPT-6 Astra vs Gemini 3.1 Pro Preview
- GPT-6 Sol vs Claude Sonnet 5
- GPT-6 Sol vs Gemini 3.1 Pro Preview
- Claude Fable 5.1 vs Gemini 3.1 Pro Preview
- Claude Opus 5.5 vs Claude Sonnet 5
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Sonnet 5 vs Claude Haiku 4.5
- Claude Sonnet 5 vs Gemini 3.5 Flash
Or see Claude Sonnet 5 pricing, Gemini 3.1 Pro Preview pricing, or compare any two models.
FAQ
Frequently asked questions
Is Claude Sonnet 5 cheaper than Gemini 3.1 Pro Preview?
Claude Sonnet 5 is cheaper than Gemini 3.1 Pro Preview at standard rates, with the same input price and 17% cheaper output. Based on standard API rates last checked on 28 Sept 2026.
How much do Claude Sonnet 5 and Gemini 3.1 Pro Preview cost per million tokens?
Claude Sonnet 5: $2 per million input tokens and $10 per million output tokens. Gemini 3.1 Pro Preview: $2 input and $12 output. These are standard rates in USD, before tax, from each provider’s own pricing page.
Which is cheaper with the Batch API?
Claude Sonnet 5’s batch rates are $1 input and $5 output per million tokens (50% off); Gemini 3.1 Pro Preview’s batch rates are $1 input and $6 output per million tokens (50% off).
Does prompt caching change the comparison?
Claude Sonnet 5 charges $0.20 per million cached input tokens, against $2 for normal input; Gemini 3.1 Pro Preview charges $0.20 per million cached input tokens, against $2 for normal input. Cache write and storage charges are extra and aren’t included here.