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.200 / 1M input and $0.600 / 1M output. Mistral AI's dedicated code generation model supporting fill-in-the-middle, code correction, and agentic software engineering tasks.
mistral-codestral |
| Language |
| Active |
| 256K tokens |
| 8K tokens |
| Text |
| Text |
| · 9 months ago |
Capabilities
Input1/5
✓
·
·
·
·
Output1/5
✓
·
·
·
·
Capabilities4/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 | — | — |
Azure AI Foundry | $0.300 | $0.900 | 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 | — | — |
Regional pricing
Provider-specific pricing that varies by region.
Azure AI Foundry
18 regions
| Region | Standard | |
|---|---|---|
| Input $ / 1M | Output $ / 1M | |
| Global | ||
| Global | $0.300 | $0.900 |
| Asia Pacific | ||
| Southeast Asia (Singapore)/ southeastasia | $0.396 | $1.19 |
| Europe | ||
| France Central (Paris)/ francecentral | $0.330 | $0.990 |
| Germany West Central (Frankfurt)/ germanywestcentral | $0.330 | $1.09 |
| Italy North (Milan)/ italynorth | $0.330 | $1.09 |
| Poland Central (Warsaw)/ polandcentral | $0.330 | $1.09 |
| Spain Central (Madrid)/ spaincentral | $0.363 | $1.09 |
| Sweden Central (Gävle)/ swedencentral | $0.363 | $0.990 |
| West Europe (Netherlands)/ westeurope | $0.396 | $1.19 |
| US | ||
| Central US (Iowa)/ centralus | $0.330 | $0.990 |
| East US (Virginia)/ eastus | $0.330 | $0.990 |
| East US 2 (Virginia)/ eastus2 | $0.330 | $0.990 |
| North Central US (Illinois)/ northcentralus | $0.330 | $0.990 |
| South Central US (Texas)/ southcentralus | $0.330 | $0.990 |
| West Central US (Wyoming)/ westcentralus | $0.330 | $0.990 |
| West US (California)/ westus | $0.330 | $0.990 |
| West US 2 (Washington)/ westus2 | $0.330 | $0.990 |
| West US 3 (Phoenix)/ westus3 | $0.330 | $0.990 |
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 | |
| Mamba Codestral 7B | — | 256K | $0.250 | $0.250 | Available |
| Mamba Codestral 7B | — | 256K | $0.190 | $0.190 | Available |