Our cutting-edge language model for coding. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.
| Model | Context | Max out | Pricing |
|---|---|---|---|
| Google Vertex AI: codestral@2405 | — | — | $0.2$0.6 |
| Mistral: codestral-2405 | 32K | — | $0.2$0.6 |
| Mistral: codestral-mamba | — | — | $0.25$0.25 |
| OpenRouter: mistralai/codestral-mamba | — | — | $0.25$0.25 |
| Azure OpenAI: codestral-2501 | — | — | $0.3$0.9 |
| Google Vertex AI: codestral-2501 | — | — | $0.3$0.9 |
| Mistral: codestral-2501 | 128K | — | $0.3$0.9 |
| Mistral: codestral-2508 | 128K | — | $0.3$0.9 |
| Mistral: codestral-latest | — | — | $0.3$0.9 |
| OpenRouter: mistralai/codestral-2501 | — | — | $0.3$0.9 |
| OpenRouter: mistralai/codestral-2508 | — | — | $0.3$0.9 |
/v1/models/cloudflare-ai-gateway/mistral/codestral-2501