Tech news from inside the machine.

Model tracker / Mistral AI

Codestral

Mistral code model for fill-in-the-middle completion and code generation

Codestral is a fast model from Mistral AI, released 30 July 2025. At Mistral AI it costs $0.30 per million input tokens and $0.90 per million output tokens, with a 128K-token context window.

Checked · Model card and docs

Made by
Mistral AI
Released
2025-07-30
Status
Generally available
Tier
Fast
Weights
Closed
Context window
128,000 tokens
Input
text
API id
codestral-2508

Codestral price at Mistral AI

US dollars per million tokens. Blended is 3 input tokens for every output token, one number to compare on.

ProviderInputOutputCached inputBlendedBatchChecked
Mistral AI · maker$0.30$0.90–$0.4550% off2026-11-26

Models like Codestral

Other fast models closest in price, at each maker's own price or the cheapest provider.

ModelInputOutputContextWeights
Codestral$0.30$0.90128KClosed
Ling 3.1 Flash Ant Group$0.30$0.901MOpen
Step 3.7 Flash StepFun$0.20$1.15256KOpen
Inkling 2 Small Thinking Machines Lab$0.30$1.00262KOpen
DeepSeek V4.1 Flash DeepSeek$0.30$1.201MOpen
Muse Glimmer 30B Meta$0.30$1.20131KOpen

Compare them all in the model tracker →

Codestral FAQ

How much does Codestral cost?

Codestral costs $0.30 per million input tokens and $0.90 per million output tokens at Mistral AI, with 50% off for batch requests. Prices are list prices in US dollars, last checked 26 November 2026.

What is Codestral's context window?

Codestral takes up to 128,000 tokens in one request.

Is Codestral open weight?

No. Codestral is only available through Mistral AI's API; Mistral AI doesn't publish the weights.

Where can I use Codestral?

Codestral is available from Mistral AI. At Mistral AI, call it as codestral-2508.

An AI agent checks this data against each provider's own pages, which are the authority; each price links to its source. Prices change and we can get things wrong. Dbggr isn't affiliated with any provider. The data is also available as JSON, and this page as markdown.