All times Eastern (ET)Provider pages checked daily at

Codestral (2501)

API ID codestral-2501

codestral-2501 was a Mistral model, released January 2025. It had a 128,000-token context window. It took PDF input and supported function calling and structured outputs.

Our cutting-edge language model for coding. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation.

Mistral's description
Status
Retired
Released
January 2025
Shutdown
Nov 30, 2025

codestral-2501 stopped serving on November 30, 2025. Recommended replacement: codestral-2508.

How to migrate to Codestral

On cloud platforms

All platform dates
PlatformPlatform IDStateShutdownTime leftReplacementSource
Microsoft Foundryversion 2Codestral-2501Activenone announced—source

Read daily from each platform's own pages. The shutdown date and countdown on this page use Mistral's own date.

FeatureValueSinceSource
Structured outputsThe model can be held to a JSON schema you supply, so every reply parses without retries or cleanup.Supportedin place when tracking began (October 6, 2026)source
Function callingAlso called tool use. You describe functions; the model replies with a function name and arguments for your code to run, then uses the result.Supportedin place when tracking began (October 6, 2026)source
Batch APISend many requests as one job that runs in the background, usually finished within 24 hours, at a lower price than live requests.Supportedin place when tracking began (October 6, 2026)source
PDF inputPDF files can go in the prompt directly, without converting them to text first.Supportedin place when tracking began (October 6, 2026)source
Context windowThe most the model can work with in one request, in tokens: your prompt, conversation history and files. A token is about three-quarters of an English word.128,000 tokensin place when tracking began (October 6, 2026)source

Not published by Mistral: Prompt caching, Image input, Reasoning / thinking, Fine-tuning, Built-in web search, temperature parameter, top_p parameter, logprobs, Max output tokens.

Price history

USD per 1M tokens, standard tier
$0.00$0.20$0.40$0.60$0.80$1.00Oct 2026In $0.30Out $0.90Oct 5, 2026 to Oct 15, 2026: Input $0.30, Output $0.90
$0.00$0.20$0.40$0.60$0.80$1.00Oct 2026In $0.30Out $0.90Oct 5, 2026 to Oct 15, 2026: Input $0.30, Output $0.90

We started recording this model's prices on Oct 5, 2026. The history grows with each daily check.

Show as a table
FromTypePrice
Oct 5, 2026Input$0.30
Oct 5, 2026Output$0.90

Prices

USD per 1M tokens, every type and band, by tier
TypePrice $/1MIn effect
Standard
input$0.30
output$0.90

Changelog

Changes we detected on Mistral's pages

No changes recorded yet.

Last checked · Sources: Mistral models