Codestral is Mistral AI's first-ever open-weight generative AI model designed specifically for code generation tasks.
Codestral is a 22B parameter model with a large 32K context window, allowing it to handle long-range code completion tasks effectively.
Key Features of Codestral
- Fluency in over 80 programming languages, including popular ones like Python, Java, C, C++, JavaScript, as well as more specialized languages like Swift and Fortran
- Ability to generate code from scratch, complete coding functions, write tests, and fill in missing code segments using a fill-in-the-middle mechanism
- Open-weight nature, allowing free access to the model's learned parameters for research and non-commercial use
- Exceptional performance and low latency, outperforming existing code-centric models on various benchmarks like RepoBench, HumanEval, CruxEval, and Spider
How to Access Codestral
- Download from Hugging Face for research and testing under Mistral AI's Non-Production License
- Use the dedicated codestral.mistral.ai endpoint for IDE integrations, with personal API keys and separate rate limits (currently free during beta)
- Access through Mistral AI's La Plateforme platform using the standard api.mistral.ai endpoint, billed per token
- Interact with an instructed version of Codestral through Mistral AI's free conversational interface, Le Chat
Codestral has been integrated into popular developer tools and frameworks like LlamaIndex, LangChain, Continue.dev, and Tabnine, enabling seamless integration with IDEs such as VSCode and JetBrains.