Overview

Codestral was released in May 2024 as Mistral AI’s first model dedicated to code. It was trained on more than 80 programming languages and supports fill-in-the-middle, which lets editors complete code between existing lines. Weights were published under a non-production license, with commercial use through Mistral’s API.

Highlights

  • 22 billion parameters
  • Trained on 80+ programming languages
  • Fill-in-the-middle for in-editor completion
  • Integrations with popular IDE plugins
  • Weights for research and testing; commercial use via API or license

Typical uses

Code completion in editors, test generation and code explanation.

Things to consider

  • The non-production license restricts commercial self-hosting.
  • Mistral has released updated Codestral versions with longer context.
  • Smaller context than many newer models.

Specifications are taken from the provider’s official announcement, documentation or model card. Benchmark results depend on evaluation settings; see how AI benchmarks work.