- Home
- Models
- Comparisons
- Claude Sonnet 5.5 vs Gemini 3.1 Pro Preview
Claude Sonnet 5.5 vs Gemini 3.1 Pro Preview: API pricing and context window
Claude Sonnet 5.5 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Claude Sonnet 5.5 is 17% cheaper for output ($10.00 vs $12.00). Context window: 1,000,000 tokens for Claude Sonnet 5.5, 1,048,576 for Gemini 3.1 Pro Preview. A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.032 on Gemini 3.1 Pro Preview.
- Claude Sonnet 5.5
- $2.00 / $10.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 Sonnet 5.5 | Gemini 3.1 Pro Preview | Claude Sonnet 5.5 vs Gemini 3.1 Pro Preview |
|---|---|---|---|
| Input | $2.00 | $2.00 | |
| Output | $10.00 | $12.00 | -17% |
| Cached input | $0.10 | $0.20 | -50% |
| 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 | $1.00 | $1.00 | |
| Batch API output | $5.00 | $6.00 | -17% |
| 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 Sonnet 5.5 | Gemini 3.1 Pro Preview | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.03 | $0.032 | Claude Sonnet 5.5 (6% less) |
| Codebase question (100K in + 2K out) | $0.22 | $0.224 | Claude Sonnet 5.5 (2% less) |
| Same question, context cached (100K cached + 2K out) | $0.03 | $0.044 | Claude Sonnet 5.5 (32% less) |
| Long document (300K in + 4K out) | $0.64 | $1.27 | Claude Sonnet 5.5 (50% less) |
| 1M tokens a month (750K in + 250K out) | $4.00 | $4.50 | Claude Sonnet 5.5 (11% less) |
Estimate your own workload in the calculator
Which one to pick
- Pick Claude Sonnet 5.5 to spend less: it is cheaper on every task above. A chat request costs $0.03 vs $0.032, and 1M tokens a month $4.00 vs $4.50.
- Claude Sonnet 5.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 Sonnet 5.5 lists no long-context surcharge.
- Through the Batch API, input costs the same ($1.00 per 1M tokens); Claude Sonnet 5.5 is cheaper for output ($5.00 vs $6.00).
- Claude Sonnet 5.5 charges less for cached input reads: $0.10 vs $0.20 per 1M tokens.
Full pages: Claude Sonnet 5.5 · Gemini 3.1 Pro Preview
More comparisons
- Claude Opus 5.5 vs Gemini 3.1 Pro Preview
- Claude Opus 5 vs Gemini 3.1 Pro Preview
- 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
- Gemini 3.1 Pro Preview vs DeepSeek V4 Pro
- Claude Sonnet 5.5 vs GPT-5.4
- Claude Sonnet 5.5 vs Gemini 3.8 Flash
Questions
Which is cheaper, Claude Sonnet 5.5 or Gemini 3.1 Pro Preview?
Claude Sonnet 5.5 and Gemini 3.1 Pro Preview cost the same for input ($2.00 per 1M tokens); Claude Sonnet 5.5 is 17% cheaper for output ($10.00 vs $12.00). A 10K-input, 1K-output request costs $0.03 on Claude Sonnet 5.5 and $0.032 on Gemini 3.1 Pro Preview.
Which has the larger context window, Claude Sonnet 5.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 Sonnet 5.5. Max output: 128,000 tokens for Claude Sonnet 5.5, 65,536 for Gemini 3.1 Pro Preview.
How much does a typical request cost on Claude Sonnet 5.5 and Gemini 3.1 Pro Preview?
A chat request with 10K input and 1K output tokens costs $0.03 on Claude Sonnet 5.5 and $0.032 on Gemini 3.1 Pro Preview. A 100K-token codebase question with a 2K answer costs $0.22 and $0.224.
What are the differences between Claude Sonnet 5.5 and Gemini 3.1 Pro Preview?
Claude Sonnet 5.5 / Gemini 3.1 Pro Preview: output: $10.00 / $12.00; cached input: $0.10 / $0.20; context window: 1,000,000 / 1,048,576; max output: 128,000 / 65,536; long-context threshold: none / 200,000; Batch API output: $5.00 / $6.00; minimum cacheable prompt: 512 / 4,096.