Models / Mistral / Codestral 2508
Mistral

Codestral 2508

BYOKClosedReleased 30 Jul 2025

Closed-weight code model from Mistral, released July 2025, with a 256k context window and tool calling. It has no benchmark results in the registry, so its profile rests on specifications and price.

Read the full description ↓

Spec sheet

Family
Mistral
Released
30 Jul 202516 months ago
Weights
Closed
Context window
256k tokens
Largest response
8k tokens
Accepts
text, file
Supports
tools, structured output
Knowledge cutoff
–
Intelligence index
–
Input price
$0.3 / 1M
Output price
$0.9 / 1M
Blended price (3:1)
$0.45 / 1M
Index points per $
–
Speed
143 tokens/sec#19
Popularity
#178 of 194by usage
Providers
2

Benchmarks

Score · rank among models tested

No results yet on the benchmarks we track.

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
MistralBYOKmistral:codestral-2508 $0.3$0.03$0.9$0.45
OpenRouterBYOKopenrouter:mistralai/codestral-2508 $0.3$0.03$0.9$0.45

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['MISTRAL_API_KEY'] = '...'

agent = Agent('mistral:codestral-2508', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Codestral 2508 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Codestral 2508vsDeepSeek V4.1 Flash
Intelligence index
205590$0.1$1$10DeepSeek V4.1 Flash: 62.8 at $0.26 blended
GPQA Diamond
5075100$0.1$1$10DeepSeek V4.1 Flash: 89.8% at $0.26 blended
OTIS Mock AIME
4070100$0.1$1$10DeepSeek V4.1 Flash: 98.3% at $0.26 blended
FrontierMath
1055100$0.1$1$10DeepSeek V4.1 Flash: 67.4% at $0.26 blended
ARC-AGI-2
050100$0.1$1$10DeepSeek V4.1 Flash: 72.9% at $0.26 blended
SimpleQA Verified
1055100$0.1$1$10DeepSeek V4.1 Flash: 42.9% at $0.26 blended
SciCode
204570$0.1$1$10DeepSeek V4.1 Flash: 51.9% at $0.26 blended
WebDev Arena
122015251830$0.1$1$10DeepSeek V4.1 Flash: 1614 at $0.26 blended
APEX-Agents
04590$0.1$1$10DeepSeek V4.1 Flash: 39.5% at $0.26 blended
LMArena text
128014101540$0.1$1$10DeepSeek V4.1 Flash: 1462.8 at $0.26 blended
Epoch Capabilities Index
120150180$0.1$1$10DeepSeek V4.1 Flash: 157 at $0.26 blended

Score against blended price per 1M tokens (log scale). Codestral 2508   DeepSeek V4.1 Flash   other models

Intelligence indexOur composite of the benchmarks below, 0-100
Codestral 2508–
DeepSeek V4.1 Flash62.8
GPQA DiamondGraduate-level science questions, multiple choice
Codestral 2508–
DeepSeek V4.1 Flash89.8%
OTIS Mock AIMECompetition mathematics problems with exact answers
Codestral 2508–
DeepSeek V4.1 Flash98.3%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Codestral 2508–
DeepSeek V4.1 Flash67.4%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
Codestral 2508–
DeepSeek V4.1 Flash72.9%
SimpleQA VerifiedShort factual questions answered from memory, without search
Codestral 2508–
DeepSeek V4.1 Flash42.9%
SciCodeScientific programming problems written by researchers
Codestral 2508–
DeepSeek V4.1 Flash51.9%
WebDev ArenaRating from human votes on web apps the models built
Codestral 2508–
DeepSeek V4.1 Flash1614
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Codestral 2508–
DeepSeek V4.1 Flash39.5%
LMArena textRating from blind human votes between pairs of chat responses
Codestral 2508–
DeepSeek V4.1 Flash1462.8
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Codestral 2508–
DeepSeek V4.1 Flash157
Input pricePer 1M tokens, lower is better
Codestral 2508$0.3
DeepSeek V4.1 Flash$0.15
Output pricePer 1M tokens, lower is better
Codestral 2508$0.9
DeepSeek V4.1 Flash$0.6
EfficiencyIndex points per blended $
Codestral 2508–
DeepSeek V4.1 Flash239
SpeedOutput tokens per second
Codestral 2508143 t/s
DeepSeek V4.1 Flash123.5 t/s
Context windowTokens
Codestral 2508256k
DeepSeek V4.1 Flash1M
Model stringFor Pydantic AI
Codestral 2508mistral:codestral-2508
DeepSeek V4.1 Flashgateway/doubleword:deepseek-ai/DeepSeek-V4.1-Flash

About Codestral 2508

Description written by an LLM from the data on this page

Closed-weight code model from Mistral, released July 2025, with a 256k context window and tool calling. It has no benchmark results in the registry, so its profile rests on specifications and price.

Codestral 2508 is a closed-weight model from Mistral, released July 30, 2025. It accepts text and file inputs and offers a 256k-token context window, which is large for a model in this price range. It supports tool calling and structured output but has no reasoning mode. The registry holds no benchmark results for it, so its quality cannot be ranked against other models here, and buyers will need to test it on their own tasks.

Pricing is the clearest point in its favour. Input costs $0.30 per million tokens and output costs $0.90, giving a blended price of $0.45 per million tokens against a registry median of about $1.01. That places it 55th of 194 on price rank. Responses are capped at 8192 tokens, which may limit long generated outputs.

The model is offered by Mistral and OpenRouter. Its popularity rank is 178 of 194, and it is not built into the Pydantic AI Gateway, though that is not a drawback in itself.

Strengths

  • Input costs $0.30 per million tokens, below the registry median blend
  • Context window of 256k tokens
  • Supports tool calling and structured output
  • Available directly from Mistral and through OpenRouter

Weaknesses

  • No benchmark results, so capability cannot be compared with other models
  • Popularity ranks 178 of 194 in the registry
  • Largest response is capped at 8192 tokens

Best for

Code-focused agents and coding tasks that need long context, tool calls and structured output on a low budget.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs