Codestral
Versioncodestral-2508- Views3 views
- Release dateReleased May 2024
Overview
About
DISCONTINUED. Mistral AI's first code-specialized open-weight model with 22B parameters. Released May 2024, designed explicitly for code generation tasks including function completion, test writing, and fill-in-the-middle code completion. Trained on diverse dataset of 80+ programming languages (Python, Java, C, C++, JavaScript, Bash, Swift, Fortran, etc.). Features 32K context window - larger than competitors' 4K-16K. Licensed under Mistral AI Non-Production License for research/testing; commercial licenses available on demand. Helps developers write and interact with code through unified instruction and completion API. Mistral deprecated the 24.05 hosted model on December 2, 2024 and retired it on June 16, 2025; a current Codestral (v25.08) exists under Mistral's Premier licence, so this record covers the retired original.
Strengths
- Specialized for code generation - trained on 80+ programming languages
- 32K context window larger than competitors (4K-16K typical)
- Fill-in-the-middle capability for inline code completion
- Unified API for both instruction-following and code completion
- Covers both popular (Python, Java, JavaScript) and niche (Swift, Fortran) languages
- Test generation capabilities improve development workflow
- Open weights enable customization and self-hosting
Caveats
- DISCONTINUED - Mistral retired the codestral-2405 version on June 16, 2025
- A current Codestral exists under Mistral's Premier licence and is a separate model
- Non-Production License limits use cases (commercial licenses required)
- 22B size requires GPU for optimal performance
- 4K max output tokens standard for the size class
- Not ideal for general-purpose tasks - code-specialized
- Commercial licensing terms not publicly detailed
Tags
Specs
- Company
- Mistral AI
- Family
- Codestral
- Version
- codestral-2508
- Modalities
- Text
- Context window
- 32,000 tokens
- Max output
- 4,096 tokens
- Release date
- May 29, 2024
- License
- Mistral AI Non-Production License
- Open weights
- Yes
- Streaming
- Yes
- Added
- Jul 6, 2026
- Updated
- Dec 1, 2026
Community
Reviews
Reviews
Comments