
Codestral
Mistral AI's code model for fill-in-the-middle and code generation, now Codestral 25.08 with a 128k context.
Codestral is Mistral AI's code model for low-latency fill-in-the-middle completion and code generation; the current version, Codestral 25.08 (codestral-2508), was released at the end of July 2025 with a 128k context window. Mistral's API pricing lists it at $0.3 per million input tokens and $0.9 per million output tokens.
About Codestral
Mistral's model list names Codestral 25.08 as its code model, tagged GA and PREMIER, with the API name codestral-2508. Its model page says it was released at the end of July 2025 and specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM) and code generation, and it lists a 128k context window.
Codestral is called through /v1/fim/completions for fill-in-the-middle and through /v1/chat/completions and /v1/conversations, where its model page lists structured outputs, function calling, predicted outputs, document QnA and prefix; batching runs through /v1/batch. Standard API prices in USD are $0.3 per million input tokens, $0.03 per million cached input tokens and $0.9 per million output tokens, and the pricing page keeps batch and priority prices on separate tabs.
Codestral began on May 29, 2024 as Mistral's first code model: Codestral 24.05 (codestral-2405), a 22B model with a 32k context window whose weights Mistral released under its Non-Production License (MNPL). Mistral's deprecation table lists codestral-2405 as retired on 6/16/2025, Codestral 25.01 (codestral-2501) as retired on 11/30/2025 and Codestral Mamba 7B as retired on 6/6/2025, each with Codestral named as the alternative.
Codestral Embed, version 25.05, is a separate model in Mistral's embedding family, which turns text or code into vectors for retrieval and similarity search; it is priced at $0.15 per million input tokens. Mistral's model list tags both Codestral models PREMIER, while other models carry licence names such as APACHE 2.0 or MODIFIED MIT, and the Codestral 25.08 page lists no weights, where the retired 24.05 page links weights under MNPL.
Sources: mistral.ai/news/codestral, docs.mistral.ai/models, docs.mistral.ai/models/codestral-25-08, docs.mistral.ai/inference/pricing and docs.mistral.ai/models/codestral-24-05, read 2026-10-26
Codestral pros and cons
Pros
- A 128k context window, against 32k for the 2024 Codestral.
- A dedicated FIM endpoint, /v1/fim/completions, sits alongside chat completions with structured outputs, function calling and predicted outputs.
- Cached input tokens cost $0.03 per million, against $0.3 for regular input.
- Mistral names Codestral as the alternative for codestral-2405, codestral-2501 and Codestral Mamba.
Cons
- The Codestral 25.08 page lists no weights or download, while the retired 2024 model's page links weights under MNPL.
- Mistral's docs give no parameter count or benchmark scores for Codestral 25.08.
- Mistral retires older versions: codestral-2501 was deprecated on 11/6/2025 and retired on 11/30/2025.
Tagged
- Self-hostable
- Web-based
- Open Source
Codestral alternatives
More from Code Completion.
- 01Freemium →JetBrains AI Assistant
JetBrains IDE plugin with AI Chat, coding agents such as Junie, Codex and Claude Agent, and code completion.
- 02Free →Continue
Open-source AI code assistant for VS Code, JetBrains and the terminal, whose maker was acquired by Cursor.
- 03Freemium →GitHub Copilot
GitHub's AI coding agent for IDEs, the terminal, a desktop app and github.com, with free and paid plans.
- 04→Jomatter
Free HTML, CSS & JavaScript Developer Tools
- 05→Mellum by JetBrains
Fast LLMs for low-latency and high-performance workflows
- 06→DeepSeek Coder
DeepSeek's open-weights code model series, 1.3B to 33B parameters, no longer served by DeepSeek's own API.
Codestral pricing
Read off the vendor’s own pricing page on 2026-09-01.
| Plan | Price | Best for |
|---|---|---|
| Free | $0 | Trying out Vibe and testing Mistral models in Studio |
| Pro | $14.99 /mo (excluding taxes) | Solo developer coding all day in CLI, IDE, or web |
| Education (verified students) | $5.99 /month | Verified students who want Pro features |
| Team | $24.99 /user/mo (excluding taxes) | Teams building with AI in a shared workspace |
| Enterprise | Contact us | Organizations needing private deployments and custom models |
Full Codestral pricing breakdown — limits, hidden costs, change log →
Related reading
Featured on Vibedonalds
Own Codestral? Add this badge to your site to show you’re listed — and link back to your profile here.
<a href="https://vibedonalds.com/tools/codestral" target="_blank" rel="noopener nofollow">
<img src="https://vibedonalds.com/badge/featured-on-vibedonalds.svg" alt="Codestral — Featured on Vibedonalds" width="240" height="60" loading="lazy" />
</a>Frequently asked questions
- What is Codestral?
- Codestral is a mistral AI's code model for fill-in-the-middle and code generation, now Codestral 25.08 with a 128k context.
- How much does Codestral cost?
- Codestral pricing, read from the vendor's page on 2026-09-01: Free — $0; Pro — $14.99 /mo (excluding taxes); Education (verified students) — $5.99 /month; Team — $24.99 /user/mo (excluding taxes); Enterprise — Contact us.
- Is Codestral free?
- Yes. Codestral has a free plan (Free) — Limited messages; limited web searches; limited coding sessions; $10 /mo in API credits; image generation included. Verified against the vendor's pricing page on 2026-09-01.
- What are the alternatives to Codestral?
- Similar tools in Code Completion on vibedonalds: JetBrains AI Assistant, Continue, GitHub Copilot, Jomatter.
- What are the downsides of Codestral?
- The Codestral 25.08 page lists no weights or download, while the retired 2024 model's page links weights under MNPL. Mistral's docs give no parameter count or benchmark scores for Codestral 25.08. Mistral retires older versions: codestral-2501 was deprecated on 11/6/2025 and retired on 11/30/2025.
- What is Codestral 25.08 (codestral-2508)?
- It is the current Codestral, which Mistral's docs say was released at the end of July 2025 for low-latency, high-frequency tasks such as fill-in-the-middle and code generation. Its API name is codestral-2508 and its context window is 128k.
- How much does the Codestral API cost?
- At standard rates in USD, Mistral's API pricing page lists Codestral at $0.3 per million input tokens, $0.03 per million cached input tokens and $0.9 per million output tokens. Batch and priority prices are on separate tabs of the same page.
- Is Codestral 22B still available?
- Not as an API model: the 22B Codestral from May 2024, codestral-2405, is marked retired, with a retirement date of 6/16/2025 and Codestral named as its replacement, though its model page still links the weights under MNPL. Codestral 25.01 (codestral-2501) was retired on 11/30/2025.
- What is Codestral Embed?
- Codestral Embed is a separate Mistral embedding model, version 25.05, in the family that turns text or code into vectors for retrieval and similarity search. The API pricing page lists it at $0.15 per million input tokens and $0.015 per million cached input tokens.
- What happened to Codestral Mamba?
- Mistral's deprecation table lists Codestral Mamba 7B (open-codestral-mamba) as deprecated and retired on 6/6/2025, with Codestral as the alternative.