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

Devstral 2 2512

text+file->text

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

Devstral 2 2512 is a efficient AI model from Mistral. It costs $0.400 per million input tokens and $2.000 per million output tokens (blended $0.880/M), with a 262K-token context window.

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

INPUT
$0.400/M
per million input tokens
OUTPUT
$2.000/M
per million output tokens
CONTEXT
262K
262,144 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 (Devstral base) — 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 Devstral 2 2512 cost?

Devstral 2 2512 costs $0.400 per million input tokens and $2.000 per million output tokens, for a blended reference rate of $0.880 per million tokens.

What is Devstral 2 2512's context window?

Devstral 2 2512 supports up to 262K tokens of context (262,144 tokens).

What is Devstral 2 2512 best for?

Devstral 2 2512 is well suited to Code-tuned, 256K context and 80+ languages.

Who makes Devstral 2 2512?

Devstral 2 2512 is developed and served by Mistral.