Claude Fable 5$22.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/MGemini 1.5 Pro$2.375/MGemini 1.0 Ultra$12.000/MGemini 1.0 Pro$0.800/MClaude Fable 5$22.000/MClaude Opus 4.8$11.000/MClaude Opus 4.7$11.000/MClaude Opus 4.6$11.000/MClaude Opus 4.5$33.000/MClaude Sonnet 3.7$6.600/MClaude Opus 3$33.000/MClaude 2.1$12.800/MClaude 2$12.800/MGPT-5.5$12.500/MGPT-5.2$5.425/MGPT-5.2-Codex$5.425/MGPT-5$3.875/MGPT-4.5$97.500/MGPT-4 Turbo Preview$16.000/MGPT-4$39.000/MGPT-4-32k$78.000/Mo3$19.000/Mo3-mini$2.090/Mo4-mini$2.090/Mo1$28.500/Mo1-mini$5.700/Mo1-preview$28.500/MGemini 3.5 Pro$5.000/MGemini 3.1 Pro$5.000/MGemini 3 Pro$5.000/MGemini 2.5 Pro$3.875/MGemini 1.5 Pro$2.375/MGemini 1.0 Ultra$12.000/MGemini 1.0 Pro$0.800/M
BETA
Mistral
Mistral
EfficientLIVE INDEX

Codestral 2508

text+file->text

Code-specialist model from Mistral. 256K context fits whole repos and 80+ programming languages.

Codestral 2508 is a efficient AI model from Mistral. It costs $0.300 per million input tokens and $0.900 per million output tokens (blended $0.480/M), with a 256K-token context window.

Profile inherited from upstream Codestral — this is a hosted variant of the same open-weights model.

INPUT
$0.300/M
per million input tokens
OUTPUT
$0.900/M
per million output tokens
CONTEXT
256K
256,000 tokens
What it's good at
  • Code-tuned
  • 256K context
  • 80+ languages
Typical use cases
  • IDE autocomplete
  • Code review
  • Repo Q&A
Benchmarks
vs. best public score
Scores inherited from Codestral — this is a hosted variant of the same open-weights model, so the underlying benchmark scores are identical.
MATH51%
High-school competition math problems.
HumanEval85%
Python function synthesis from docstrings.
Hand-curated from each provider's published reports and public leaderboards. Methodology varies across sources — treat as directional rather than authoritative.
More from Mistral
See all 15
Frequently asked questions

How much does Codestral 2508 cost?

Codestral 2508 costs $0.300 per million input tokens and $0.900 per million output tokens, for a blended reference rate of $0.480 per million tokens.

What is Codestral 2508's context window?

Codestral 2508 supports up to 256K tokens of context (256,000 tokens).

What is Codestral 2508 best for?

Codestral 2508 is well suited to Code-tuned, 256K context and 80+ languages.

Who makes Codestral 2508?

Codestral 2508 is developed and served by Mistral.