Model · Mistral AI · Code
Codestral
Mistral's code-specialised model. Trained on 80+ programming languages; the open-weights default for self-hosted code completion and refactoring.
- Modality
- Code
- License
- Mistral Non-Production License (Open weights)
- Parameter size
- 22B
- Context window
- 32,768 tokens
- Released
- May 29, 2024
- Last verified
- May 10, 2026
- Runs locally
- Yes
Strengths
- Coverage across 80+ programming languages
- Fill-in-the-middle support — works in IDE completion flows
- Runs on a single 48GB GPU
Weaknesses
- Non-commercial weights license — paid tier needed for production
- Smaller than DeepSeek Coder V2
Try it
| Where | Type | Notes |
|---|---|---|
| Mistral La Plateforme | hosted-api | API key required |
| Hugging Face | weights | Non-production license |
| Ollama | local | ollama run codestral |
Used in solutions
Official sources
- Announcement announcement
Change log
- — Initial entry.
- — Marked deprecated after verification that Codestral 25.08 is the current Codestral release.
Esc