AiCostCompare

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 rateEffective blended $/1MExample 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

WorkloadInput tokensOutput tokensCost / requestCost / 1K requests
Short chat message500300$0.00042$0.42
Document summary8,0001,000$0.0033$3.30
Codebase question (RAG)30,0002,000$0.0108$10.80
Long-context analysis150,0005,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

CategoryElo
Website1,040
UI components1,060
Data viz1,054
3D1,079
Game dev1,025
Code categories1,041

Specs

Context window

256K

tokens

Max output

tokens

Input modalities

text, file

Tokenizer

Mistral