Codestral is
Mistral AI's language model with a 256K context window and up to 8K output tokens, available from 4 providers, starting at $0.200 / 1M input and $0.600 / 1M output. Mistral's dedicated code-generation LLM supporting fill-in-the-middle, code correction, and test generation with low-latency performance across 80+ programming languages.
mistral-codestral |
| Language |
| Active |
| 256K tokens |
| 8K tokens |
| Text |
| Text |
| · 9 months ago |
Capabilities
Input1/5
✓
·
·
·
·
Output1/5
✓
·
·
·
·
Capabilities3/13
·
·
✓
·
✓
·
·
·
·
·
·
·
✓
Pricing by Provider
| Provider | Standard | Batch | |||
|---|---|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | Input $ / 1M | Output $ / 1M | |
Google Vertex AI | $0.200 | $0.600 | N/A | — | — |
Mistral AI | $0.300 | $0.900 | N/A | $0.150 | $0.450 |
OpenRouter | $0.300 | $0.900 | $0.030 | — | — |
Vercel AI Gateway | $0.300 | $0.900 | N/A | — | — |
Cost Calculator
Preset:
Compares every provider & tier in USD
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Codestral 2 | — | 128K | $0.300 | $0.900 | Available |
| Codestral | 256K | $0.200 | $0.600 | Current | |
| Codestral Mamba 7B | — | 256K | $0.250 | $0.250 | Available |
| Mamba Codestral 7B | — | 256K | $0.190 | $0.190 | Available |