Gemini 3.1 Pro Preview vs Claude Sonnet 5 compared — price per token, context window, multimodality, openness and which to choose. Full 2026 breakdown.
Gemini 3.1 Pro Preview — full profile › · Claude Sonnet 5 — full profile ›
Prices & specs refreshed from live data · olud.ai
Open-model prices = cheapest provider via OpenRouter; official maker rates may be higher.
| Spec | Gemini 3.1 Pro Preview | Claude Sonnet 5 | Winner |
|---|---|---|---|
| Maker | Anthropic | – | |
| Type | Proprietary | Proprietary | – |
| Context window | 1M tokens | 1M tokens | |
| Input price | $2/M | $2/M | = Tie |
| Output price | $12/M | $10/M | |
| Vision / multimodal | Yes | Yes | = Tie |
| Tool / function calling | Yes | Yes | = Tie |
| Self-hostable | No (API only) | No (API only) | – |
| License | Proprietary | Proprietary | – |
| Capability | Gemini 3.1 Pro Preview | Claude Sonnet 5 |
|---|---|---|
| Open weights (downloadable) | ✗ | ✗ |
| Self-hostable | ✗ | ✗ |
| Runs fully offline | ✗ | ✗ |
| Vision / multimodal | ✓ | ✓ |
| Tool / function calling | ✓ | ✓ |
| 1M+ context window | ✓ | ✓ |
Independent benchmark scores measured by Artificial Analysis. Higher is better (except latency).
Benchmark data by Artificial Analysis.
| Criterion | Gemini 3.1 Pro Preview | Claude Sonnet 5 |
|---|---|---|
| Cost-efficiency | 3.5 | 3.5 |
| Context window | 5.0 | 5.0 |
| Openness | 1.5 | 1.5 |
| Self-hosting | 1.0 | 1.0 |
| Multimodality | 5.0 | 5.0 |
Scores come from live data — output price (cost), context length, open vs closed weights (openness & self-hosting) and vision/tool support (multimodality). Raw task quality isn't scored here; it depends on your benchmark — see the verdict.
Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation.
Sonnet 5 is Anthropic's most capable Sonnet-class model, with frontier performance across coding, agents, and professional work. It supports adaptive thinking with selectable reasoning effort levels (low, medium, high, max,...
These variants are tracked but not compared here — one page per family keeps the comparison readable.
Claude Sonnet 5 is cheaper on output ($10/M vs $12/M).
Gemini 3.1 Pro Preview offers the larger context window (1M tokens).
Choose Claude Sonnet 5 for the lower output price ($10/M vs $12/M). Choose Gemini 3.1 Pro Preview if you need the larger 1M context window.
Browse the full open-source model leaderboard, thousands of tools and live benchmarks — all in one place.
Open the leaderboard →