Codestral is Mistral AI's language model with a 256K context window and up to 8K output tokens, available from 5 providers, starting at $0.2 / 1M input and $0.6 / 1M output. Mistral AI's dedicated code generation model supporting fill-in-the-middle, code correction, and agentic software engineering tasks.
| Specifications | |
|---|---|
mistral-codestral | |
| Language | |
| Active | |
| 256K tokens | |
| 8K tokens | |
| Text | |
| Text | |
| · 11 months ago | |
| · 1 year ago | |
Capabilities
Input1/5
Text✓
Image·
Audio·
Video·
PDF·
Output1/5
Text✓
Image·
Audio·
Video·
Embedding·
Capabilities4/13
Reasoning·
Adaptive Reasoning·
Function Calling✓
Parallel Function Calling·
Structured Outputs✓
Native JSON Schema✓
Web Search·
URL Context·
Computer Use·
Code Execution·
File Search·
Prompt Caching·
Assistant Prefill✓
Pricing by Provider
US Dollar ($)
Per 1M tokens
| Provider | Standard | Batch | |||
|---|---|---|---|---|---|
| Input $ / 1M | Output $ / 1M | Cache Read $ / 1M | Input $ / 1M | Output $ / 1M | |
| $0.3 | $0.9 | N/A | — | — | |
| $0.2 | $0.6 | N/A | — | — | |
| $0.3 | $0.9 | N/A | $0.15 | $0.45 | |
| $0.3 | $0.9 | $0.03 | — | — | |
| $0.3 | $0.9 | N/A | — | — | |
Cost Calculator
US Dollar ($)
Preset:
Versions
| Version | Released | Context | Input / 1M | Output / 1M | Status |
|---|---|---|---|---|---|
| Codestral 2 | — | 128K | $0.300 | $0.900 | Available |
| Codestral | 256K | $0.200 | $0.600 | Current | |
| Mamba Codestral 7B | — | 256K | $0.250 | $0.250 | Available |
| Mamba Codestral 7B | — | 256K | $0.190 | $0.190 | Available |