History
Codestral: Mistral's first code model
Mistral AI releases Codestral, a 22B model for code, under a licence for non-production use.

On 29 May 2024, Mistral AI releases Codestral, a model made for code.
What happened
- Codestral has 22 billion parameters and is trained on more than 80 programming languages.
- It can fill in code in the middle of a file (fill-in-the-middle), complete functions and write tests.
- The context window is 32,000 tokens.
- The weights are open, under the new Mistral AI Non-Production License: for research and testing. For business use, you ask for a commercial licence.

Why it mattered
A code model that you can run yourself helps when your code may not leave your company. But “open weights” is not the same as open source here.

What you can do with it now
Use such a model for tests first. Arrange the licence before it goes into your daily work.
Written afterwards on 12 November 2026, from the source below.