Codestral 2508
by Mistral · mistralai/codestral-2508 · #115 cheapest of 325 paid models
Prices updated Jul 22, 2026, 1:34 AM UTC · refreshed hourly
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/news/codestral-25-08)
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol
Pricing
Input
$0.30
per 1M tokens
Output
$0.90
per 1M tokens
Blended (3:1)
$0.45
3 input : 1 output
Cache read
$0.03
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for Codestral 2508 with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $0.45 | $0.0315 | — |
| 50% | $0.349 | $0.018 | −43% |
| 90% | $0.268 | $0.0072 | −77% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates (available for OpenAI / Anthropic / Google — not flagged for this creator). Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.00042 | $0.42 |
| Document summary | 8,000 | 1,000 | $0.0033 | $3.30 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0108 | $10.80 |
| Long-context analysis | 150,000 | 5,000 | $0.0495 | $49.50 |
Performance
Intelligence Index
—
AA composite quality
Coding Index
—
Math Index
—
Agentic Index
—
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,040 |
| UI components | 1,060 |
| Data viz | 1,054 |
| 3D | 1,079 |
| Game dev | 1,025 |
| Code categories | 1,041 |
Specs
Context window
256K
tokens
Max output
—
tokens
Input modalities
text, file
Tokenizer
Mistral