Post-Cutoff

Mistral AICodestral familyCurrentCode modelReleased 30 Jul 2025

Codestral 25.08

IDE autocomplete / FIM and fast code generation.

Model idcodestral-2508

Price$0.30 in, $0.90 out per 1M tokens

Checked29 September 2026

Where it stands

6newer code models since its release

The 5 newest are listed. All code models

After it from Mistral AI
Leanstral 1.52 Jul 2026
Weights
Closed weights; access is hosted only. Licence: Mistral Premier.

How to call it

3 ways to use Codestral 25.08, with the model id each provider expects.

Providers, model ids, endpoints and docs for Codestral 25.08
ProviderModel idEndpointDocs
Mistral API (FIM) codestral-2508 https://api.mistral.ai/v1/fim/completions docs.mistral.ai
Mistral API (chat) codestral-latest https://api.mistral.ai/v1/chat/completions
OpenRouter mistralai/codestral-2508 openrouter.ai

Pricing

Prices for Codestral 25.08
Input$0.30 per 1M tokens
Output$0.90 per 1M tokens

As published: “per 1M tokens (USD)”.

Source: docs.mistral.ai, checked 29 September 2026.

Specs

Input
Text
Output
Text
Context window
128,000 tokens
Max output
Not published
Open weights
No
Licence
Mistral Premier
Released
30 July 2025
Status
Current
Type
Code model

What stands out

What its maker marketed at launch, and what people found later, each with its source.

  • Low-latency fill-in-the-middle

    Specialized for high-frequency FIM/autocomplete with a dedicated FIM endpoint, plus predicted outputs.

    Source: docs.mistral.ai

  • Predicted outputs and prefix mode

    Supports predicted outputs (fast edits of known code) and assistant prefix, plus function calling and structured outputs.

    Source: docs.mistral.ai

Notes

Alias codestral-latest. Mistral’s current code-completion model (Premier). OpenRouter lists 256K context; Mistral card says 128K.

curl https://api.mistral.ai/v1/fim/completions -H "Authorization: Bearer $MISTRAL_API_KEY" -H "Content-Type: application/json" \
 -d '{"model":"codestral-2508","prompt":"def fib(n):","suffix":"\nprint(fib(10))"}'

Sources: https://docs.mistral.ai/models/model-cards/codestral-25-08