Codestral 2 is Mistral's code generation specialized model built specifically for high-precision fill-in-the-middle (FIM) completion. It helps developers write and interact with code through a shared instruction and completion API endpoint. Because it masters code and can also converse in a variety of languages, it can be used to design advanced AI applications for software developers.
Codestral 2 is well-suited for tasks such as:
- Code generation
- Fill-in-the-middle completion
- Software development applications
View model card in Model Garden
codestral-2 
- Inputs: Text , Code 
- Outputs: Text 
- Supported
- Not supported
-  codestral-2
- Launch stage: GA
- Release date: October 16, 2025
Model availability
- United States
-  us-central1
- Europe
-  europe-west4
ML processing
- United States
-  Multi-region
- Europe
-  Multi-region
us-central1:
- QPM: 1,100
- Input TPM: 1,100,000
- Output TPM: 110,000
- Context length: 128,000 tokens
europe-west4:
- QPM: 1,100
- Input TPM: 1,100,000
- Output TPM: 110,000
- Context length: 128,000 tokens

