Skip to content
MI

Codestral 2508

mistralai/codestral-2508POST /v1/chat/completions

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

Tool callingStructured outputStreamingPrompt caching
Input / 1M
$0.3000
via OpenRouter
Output / 1M
$0.9000
via OpenRouter
Cached input / 1M
$0.0300
on a cache hit
Context
256K
max output not published
Providers
1
single route

1 provider serves this model

Multigrid picks between them on every request using your policy. Each price is what that route costs us, and we add no spread of our own to it.

ProviderUpstream model idIn / 1MOut / 1MBilling
OpenRoutermistralai/codestral-2508$0.3000$0.9000Credit
This model is reached through OpenRouter, and the rate reflects that

We hold no direct key for mistralai, so every route above goes through OpenRouter. We do not buy tokens from them — we buy their credit, and a dollar of it costs $1.055. The rate shown here is their price with that 5.5% included, because that is what the route costs us. We add nothing on top of it.

The consequence, plainly: for this model we cannot be cheaper than OpenRouter. Their fee sits underneath ours. What you get here instead is one balance and one key across the whole catalogue, failover, spend caps and the audit trail — and if you already hold a mistralai contract, bring that key and we take nothing at all.

No performance data published yet
Time to first token, throughput and uptime are measurements, and Multigrid has not served enough traffic through Codestral 2508 to publish honest ones. When it has, they will appear here per provider, taken from real requests. Nothing on this page is estimated: prices, context window and capabilities all come from the provider’s own documentation.

Call it

Same request shape as every other model in the catalogue.

example.ts
const res = await client.chat.completions.create({
  model: "mistralai/codestral-2508",
  messages: [{ role: "user", content: "Hello" }],
});

Send Codestral 2508 a real request

Signing up takes no card and commits you to nothing — you start at a zero balance, so nothing can be charged until you decide to add credit. The playground opens on Codestral 2508 and prices every answer as it arrives, at the rate shown above — what the route costs us, with nothing of ours added. Already have an account? The second button skips the form.

Codestral 2508 — API and pricing · Multigrid