Codestral
Code
Code-specialist model from Mistral. 256K context fits whole repos and 80+ programming languages.
Codestral is a efficient AI model from Mistral. It costs $0.200 per million input tokens and $0.600 per million output tokens (blended $0.320/M), with a 256,000-token context window.
INPUT
$0.200/M
per million input tokens
OUTPUT
$0.600/M
per million output tokens
CONTEXT
256,000
tokens
What it is good at
- Code-tuned
- 256K context
- 80+ languages
Typical use cases
- IDE autocomplete
- Code review
- Repo Q&A
Benchmarks
vs. best public score
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 →Mistral Large 3
Frontier · 256,000 ctx
in $0.500/Mout $1.500/M
Mistral Medium 3.5
Balanced · 256,000 ctx
in $1.500/Mout $7.500/M
Mistral Small 4
Efficient · 128,000 ctx
in $0.100/Mout $0.300/M
Mistral Large 2
Frontier · 128,000 ctx
in $2.000/Mout $6.000/M
Pixtral Large
Vision · 128,000 ctx
in $2.000/Mout $6.000/M
Pixtral 12B
Compact Vision · 128,000 ctx
in $0.150/Mout $0.150/M
Frequently asked questions
How much does Codestral cost?
Codestral costs $0.200 per million input tokens and $0.600 per million output tokens, for a blended reference rate of $0.320 per million tokens.
What is Codestral's context window?
Codestral supports up to 256,000 tokens of context in a single request.
What is Codestral best for?
Codestral is well suited to Code-tuned, 256K context and 80+ languages.
Who makes Codestral?
Codestral is developed and served by Mistral.