Gemini 3.1 Pro Preview vs Codestral 2508 compared — price per token, context window, multimodality, openness and which to choose. Full 2026 breakdown.
Gemini 3.1 Pro Preview — full profile › · Codestral 2508 — 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 | Codestral 2508 | Winner |
|---|---|---|---|
| Maker | Mistral AI | – | |
| Type | Proprietary | Proprietary | – |
| Context window | 1M tokens | 256K tokens | |
| Input price | $2/M | $0.3/M | |
| Output price | $12/M | $0.9/M | |
| Vision / multimodal | Yes | No | |
| Tool / function calling | Yes | Yes | = Tie |
| Self-hostable | No (API only) | No (API only) | – |
| License | Proprietary | Proprietary | – |
Codestral 2508 is ~13× cheaper than Gemini 3.1 Pro Preview on output tokens ($0.9 vs $12 per M tokens).
| Capability | Gemini 3.1 Pro Preview | Codestral 2508 |
|---|---|---|
| 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 | Codestral 2508 |
|---|---|---|
| Cost-efficiency | 3.5 | 5.0 |
| Context window | 5.0 | 4.0 |
| Openness | 1.5 | 1.5 |
| Self-hosting | 1.0 | 1.0 |
| Multimodality | 5.0 | 3.5 |
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.
Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](https://mistral.ai/ne
These variants are tracked but not compared here — one page per family keeps the comparison readable.
Codestral 2508 is cheaper on output ($0.9/M vs $12/M).
Gemini 3.1 Pro Preview offers the larger context window (1M tokens).
Choose Codestral 2508 for the lower output price ($0.9/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 →