Codestral
VerifiedMistral AI's code model for completion, generation and fill-in-the-middle
Product preview
Codestral
What it is
Codestral is a generative model from Mistral AI designed specifically for code. It was trained on 80+ programming languages, from Python, Java, C++ and JavaScript to Swift and Fortran, and supports both instruction-style prompts and fill-in-the-middle completion, which makes it well suited to autocomplete inside editors. Developers can call it through Mistral's API, where usage is billed per token and a free experiment tier is available for evaluation, or use it through plugins and coding tools that support it. Mistral has released updated versions since the first launch in 2024. It is aimed at developers and companies building coding assistants or adding completion to their own tools.
Key features
- Fill-in-the-middle code completion
- Support for 80+ programming languages
- API access with per-token billing
- Integrations with IDE plugins and coding tools
What we liked
- + Purpose-built for code rather than general chat
- + Low per-token API pricing
- + Works for both autocomplete and instructions
Worth noting
- · Requires API setup or a supporting tool
- · Free tier is meant for evaluation, not production
Editor's notes
More context from AI BirdView
Codestral was Mistral AI's first model built specifically for software development, and it remains a focused option for teams that want a code model rather than a general chatbot. Its support for fill-in-the-middle completion is the key detail: it can predict code that belongs between existing lines, which is exactly what fast editor autocomplete needs. That makes it a practical engine for developers who assemble their own coding setup.
- Trained across 80+ programming languages, including less common ones like Fortran and Swift
- Fill-in-the-middle mode suited to inline autocomplete
- Instruction prompts for writing functions, tests and explanations
- Available through Mistral's API with per-token pricing and batch options
- Supported by a range of third-party IDE extensions and coding tools
Codestral is best for developers and platform teams who want to plug a capable code model into their own editor, internal tooling or product, especially those already using Mistral services. Mistral's free experiment plan is a convenient way to test it before moving to paid usage. A practical tip: connect it through an editor extension that supports custom providers and use it for autocomplete first, since low-latency completion is where a dedicated code model tends to make the biggest daily difference.
Reader reviews
From people who've used Codestral. Emails are never shown publicly.
No reviews yet. Be the first to share your experience.
Alternatives to Codestral
Other tools we like in this space.
GitHub Copilot
The pair programmer inside your editor and GitHub
Refact.ai
Open-source AI coding agent, local-first with your own model keys
Tabby
Self-hosted Copilot alternative, open to the core
CodeGPT
Build custom AI coding experts for your team