Codestral 2508

mistralai/codestral-2508 by mistralai

Mistral's code-specialist model, trained across 80-plus programming languages with fill-in-the-middle support.

Codestral is Mistral's model line built only for code, trained on more than eighty programming languages and, unlike general chat models, supporting fill-in-the-middle completion, which is what an IDE needs to suggest code with context on both sides of the cursor. This 2508 release carries a 128K-token context window and is licensed for development use rather than under Apache 2.0.

Specifications

Context window
128,000 tokens
Input
document, text
Output
text, code
Function calling
Supported
Providers
1 (0 EU-sovereign)

Providers, pricing and carbon

Codestral 2508 across providers. Prices in EUR per 1M tokens; carbon in gCO₂e per 1M tokens in the provider's lowest-carbon region.
ProviderEU-sovereignInput €/1MOutput €/1MgCO₂e/1M tokensRegions
mistralNo€0.2805€0.84151104EU, Global