Skip to content

Menu

Codestral logo

Codestral

Published

AI Coding

At a glance

What it is
Codestral is Mistral AI's language model for code, built for fast, frequent coding tasks rather than long reasoning.
Price from
Usage-based pricing Details
Best for
Tools and teams that need fast, low-cost code completion through an API; Developers configuring a separate autocomplete model in an AI coding extension
Official site
docs.mistral.ai
Last checked
November 2026
Watch out for
It is a completion model, not a full coding agent; use Vibe or another agent for multi-step tasks.

Codestral is Mistral AI's language model for code, built for fast, frequent coding tasks rather than long reasoning. Its speciality is fill-in-the-middle completion, where the model sees the code before and after your cursor and fills the gap. That is the job autocomplete in an editor needs done, and why Codestral is often used as the completion model behind coding assistants while a larger model handles chat and agent work.

The current version is Codestral 25.08, which Mistral describes as its latest model for code completion, released at the end of July 2025. Its API model ID is codestral-2508, it has a 128,000-token context window, and besides normal chat completions it is available through a dedicated fill-in-the-middle endpoint at /v1/fim/completions. Mistral also offers Codestral Embed, a model for creating embeddings of code, which is useful for search and retrieval over a codebase.

Mistral retires older versions on a published schedule, so check your configuration if you set Codestral up a while ago. Codestral 24.05 was retired in June 2025, Codestral 25.01 in November 2025 and the experimental Codestral Mamba in June 2025. Mistral's Devstral models for agentic coding have also been deprecated in turn during 2026, with Mistral Medium 3.5 suggested as the replacement in most cases. For a full coding agent rather than a model, Mistral now offers Vibe, which works in the terminal and VS Code and can work on GitHub repositories in a remote sandbox. Use Codestral when you need fast, cheap completion through an API or inside a tool that lets you choose the completion model.

Key features

Fill-in-the-middle
Completes code between a prefix and suffix through a dedicated FIM endpoint.
Low latency
Built for high-frequency tasks such as editor autocomplete.
128K context
Codestral 25.08 accepts up to 128,000 tokens.
Codestral Embed
A companion model for code embeddings, search and retrieval.
Published lifecycle
Clear deprecation and retirement dates for older versions.

Pricing

As of November 2026, Mistral's documentation lists Codestral 25.08 at $0.30 and $0.90 per million tokens, which by convention are the input and output prices, although the page does not label them. It is used through Mistral's API with the model ID codestral-2508. Codestral Embed is priced separately. Mistral's consumer and team plans for its Vibe coding agent are listed on its website without prices shown in the page text.

Best for

  • Tools and teams that need fast, low-cost code completion through an API
  • Developers configuring a separate autocomplete model in an AI coding extension
  • Building code search with Codestral Embed
  • Organisations that prefer a European model provider

Limitations

  • It is a completion model, not a full coding agent; use Vibe or another agent for multi-step tasks.
  • Older versions are retired on a schedule, so integrations need updating.
  • Mistral's model page does not state the licence or label the two prices.
  • For complex reasoning, larger models generally do better.

Verdict

Codestral is a good choice when you need fast, inexpensive code completion, especially through the fill-in-the-middle endpoint. Treat it as a building block rather than a complete assistant. Keep an eye on Mistral's deprecation schedule so your integration does not break when a version is retired.

Sources

Written from the vendor's own site and documentation, checked November 2026. We have no paid relationship that affects what this page says.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…