GPT-5 Mini vs Codestral: Detailed Comparison
Choosing between GPT-5 Mini (OpenAI) and
Codestral (Mistral AI) comes down to three things:
per-token pricing, context window, and which capability matters most for your workload.
GPT-5 Mini costs $0.25/M input vs
$0.20/M for Codestral;
context windows are 400K vs
32K tokens. Detailed breakdown below.
Side-by-side specs
| Spec | GPT-5 Mini | Codestral |
| Provider | OpenAI | Mistral AI |
| Released | 2025-08-07 | 2024-05-29 |
| Input price |
$0.25/M |
$0.20/M |
| Output price |
$2.00/M |
$0.60/M |
| Cached input |
$0.0250/M |
— |
| Context window |
400K |
32K |
| Max output |
128K |
4K |
| Modalities |
text image |
text |
| Tokenizer |
o200k_base |
mistral |
Capability matrix
| Capability | GPT-5 Mini | Codestral |
| function calling |
Yes |
Yes |
| json mode |
Yes |
Yes |
| vision |
Yes |
No |
| streaming |
Yes |
Yes |
| code |
No |
Yes |
Per-call cost on typical workloads
| Workload (in/out tokens) | GPT-5 Mini | Codestral | Cheaper by |
| Standard chat (1K / 500) |
$0.001250 |
$0.000500 |
Codestral by $0.000750 |
| RAG (4K / 500) |
$0.002000 |
$0.001100 |
Codestral by $0.000900 |
| Long doc (20K / 1K) |
$0.007000 |
$0.004600 |
Codestral by $0.002400 |
| Very long context (100K / 2K) |
$0.028000 |
$0.020900 |
Codestral by $0.007100 |
When to choose GPT-5 Mini over Codestral
- Larger context window (400K vs 32K) — relevant when whole documents or long histories must fit in a single call.
- Supports vision — Codestral does not.
When to choose Codestral over GPT-5 Mini
- Per-token input cost is 20% lower than GPT-5 Mini.
- Supports code — GPT-5 Mini does not.
Related comparisons