mistralai / text-generation API-only released 2025-08-01

Codestral 2508

Mistral's cutting-edge language model for coding released end of July 2025. Codestral specializes in low-latency, high-frequency tasks such as fill-in-the-middle (FIM), code correction and test generation. [Blog Post](https://mistral.ai/news/codestral-25-08)

Input / 1M
$0.30
Output / 1M
$0.90
Context
256K
AA Intelligence
—
Closed weights — available only as a hosted API text + file → text Knowledge cutoff Mar 2025 View on OpenRouter ↗

Pricing

via OpenRouter · USD per 1M tokens · synced 2026-10-24
$0.30
input / 1M
$0.90
output / 1M
$0.03
cached input / 1M
$1.20
1M in + 1M out
:batch variant $0.15 in · $0.45 out
Context window
256,000 tokens
Max output
204,800 tokens
Providers
1
Cheapest provider
Mistral · $0.30 / $0.90
Best throughput
—
AA Intelligence / Coding / Agentic
— / — / —
✓ Tool calling ✗ Reasoning ✓ Structured outputs ✗ Image input ✓ File input ✗ Audio input ✓ Prompt caching

Price history

tracking started — chart appears after 7 days of snapshots (6 recorded)
Current: $0.30 input · $0.90 output per 1M tokens

Benchmarks

Third-party indices as published through OpenRouter — Artificial Analysis and Design Arena. Not measured by us.

AA Intelligence Index
—
AA Coding Index
—
AA Agentic Index
—
Design Arena
CategoryEloWin %Rank
codecategories 1007 38.5% #124
dataviz 1017 41.1% #114
gamedev 968 36.3% #128
uicomponent 1014 46.7% #114
website 1013 37.8% #130
3d 1020 45.4% #109

Providers

1 provider · per 1M tokens · last 30 min metrics
ProviderQuantContextInputOutputUptimeTok/s
Mistral unknown 256K $0.30 $0.90 100% —
Mistral unknown 256K $0.33 $0.99 — —
Provider data from OpenRouter's endpoint listing, refreshed daily.

Specifications

Organisation
mistralai
Released on OpenRouter
2025-08-01
Context window
256,000 tokens
Max output
204,800 tokens
Input
text, file
Output
text
Knowledge cutoff
March 2025
Tokenizer
Mistral
Moderated by provider
No
OpenRouter id
mistralai/codestral-2508
Compare with
Prices, context and providers from the public OpenRouter API, snapshotted daily; benchmark indices from Artificial Analysis. See /methodology.