🇫🇷 France · Mistral Codestral
Status: 🟩 COMPLETE 🟦 LIVING Last updated: 2026-06-26 Plain-English tagline: Mistral’s coding-specialist model. Strong on multiple languages, available via Mistral API or open-weight download, the European alternative for code-specialised AI.
Front-matter facts
| Field | Value |
|---|---|
| Vendor | Mistral AI (Paris, France) |
| Country / origin | 🇫🇷 France 🇪🇺 EU |
| Recommended for Australian users? | ✅ Yes — EU GDPR-native provider; particularly relevant for AUS organisations preferring non-US AI |
| Privacy summary | Mistral API: no training by default; EU servers. Open-weight: runs entirely on your hardware. |
| Free tier | Limited via Mistral API free trial; open-weight is free to download and run |
| Paid tiers | Mistral API pay-per-token (EUR-denominated); Le Chat Pro for IDE-adjacent use |
| First released | 2024 |
| Last reviewed | 2026-06-26 |
| Official site | https://mistral.ai/news/codestral/ |
What it is
Codestral is Mistral AI’s coding-specialised LLM family. It’s available in two main forms:
- Codestral via Mistral API — pay-per-token closed access
- Codestral open weights — downloadable model weights (Codestral Mamba and successor releases) for self-hosting
The model is specifically tuned for:
- Code completion (multiple languages)
- Code chat / refactoring
- Test generation
- Documentation
- Fill-in-the-middle (FIM) completions
- Multi-language support: Python, JavaScript / TypeScript, Java, C / C++, Go, Rust, Ruby, PHP, Bash, SQL, and ~80 others
Codestral is Mistral’s response to the trend of coding-specialised models (alongside Anthropic’s general Claude with coding strength, Google’s Gemini coding variants, OpenAI’s Codex line, DeepSeek-Coder for the Chinese ecosystem).
Key positioning: Codestral is the EU-based coding model. For AUS / EU users wanting GDPR-native AI for code, Codestral is the natural pick.
What you’d use it for
- Code completion / chat via API in your own tools
- Self-hosted coding AI via open weights (Codestral Mamba, etc.)
- EU data-residency for code work
- Multi-language code generation where Mistral’s broad language coverage is useful
- Backing IDE plugins (Cursor, Cline, Aider, Codestral plugins) with Mistral’s coding model
- Cheaper than Claude / GPT for some coding tasks at scale
How to use it
Via Mistral API
- Sign up at
console.mistral.ai - Get an API key
- Use
codestral-latest(or specific version) as the model in your API requests - Available via direct Mistral API or via aggregators (OpenRouter, Together AI)
Via open weights
- Download from huggingface.co/mistralai
- Run with Ollama / LM Studio / vLLM / TGI
- Or host on Western inference providers (Together AI, Fireworks AI)
Via Cursor / Cline / Aider
- In any of these tools, select Codestral as your model
- Provide your Mistral API key
- Use as you would Claude / GPT
What it costs
Mistral API (Codestral)
- Pay-per-token, EUR-denominated
- Significantly cheaper than Claude Opus / GPT-5 for comparable coding output
- Example (verify current): ~€0.25/$1.25 per million input/output tokens (approximate; rates change)
Open weights
- Free to download and run
- Cost = your hardware electricity + maintenance
Subscription (no direct subscription for Codestral itself)
- Le Chat Pro €14.99/mo includes some Codestral access via the chat surface
How it compares to alternatives
| Capability | Codestral | Claude (general) | GPT-5 | DeepSeek-Coder (avoid direct) |
|---|---|---|---|---|
| Coding-specialised tuning | Yes | General + strong coding | Strong coding | Coding-specialised |
| EU jurisdiction | Yes | US | US | China ⛔ |
| Open weights | Yes | No | Limited (gpt-oss separate) | Yes (but politically-filtered training) |
| Cost (API) | Cheap | Moderate | Moderate | Cheap (but avoid direct) |
| Multi-language | 80+ | 100+ | 100+ | Strong |
| Available in coding tools | Cursor / Cline / Aider | Everywhere | Everywhere | Open-source clients only (recommended via Western hosts) |
For Western-jurisdiction open-weight coding models, Codestral and Llama-coder are the two main choices. Codestral often wins on multi-language coverage; Llama on raw capability at the largest sizes.
Privacy / data handling
- Mistral API: no training; EU data centres
- Open weights: completely under your control
- Le Chat Pro: same as general Mistral Le Chat privacy posture
Recent changes
- 2026: Codestral Mamba and successor releases
- 2025: Codestral expanded language support
- 2024: Initial Codestral launch
Gotchas
- Codestral and general Mistral models are different — for general chat, use Mistral Large / Magnum; for coding specifically, Codestral
- API is EUR-billed — foreign-transaction fees on AUS cards (use Wise / Revolut / ANZ Plus to avoid)
- Open-weight Codestral has license terms — generally Apache 2.0-ish for most variants, but check the specific release; some Mistral commercial models have non-commercial-only open weights
- Pricing rate-shift over time — verify current rates at mistral.ai/pricing
- For most everyday IDE use, Claude or GPT via Cursor / Copilot is more polished — Codestral shines for self-hosted or EU-mandated work
See also
- Mistral Le Chat 🟩 🟦
- Mistral models lineup 🟥
- Cursor 🟩 🟦
- Cline 🟩 🟦
- Aider 🟩 🟦
- GitHub Copilot 🟩 🟦
- Claude Code deep dive 🟩 🟦
- Llama (Meta’s open weights, coding variants) 🟥
- DeepSeek 🟩 🟦 — Chinese ⛔ alternative
- Ollama 🟥 — for local Codestral
- Together AI 🟥 — Western hosting for open-weight Codestral