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 genera

Mistral · more Mistral models · all models

Pricing and specs

Model IDroutexor/codestral-2508
ProviderMistral
Input, per 1M tokens$0.30
Output, per 1M tokens$0.90
Cached input, per 1M tokens$0.03
Price sourceReference price from OpenRouter's listing, not the provider's own page. A direct call on your key can cost a different amount.
Context window256K tokens
Max output205K tokens
CapabilitiesStreaming, Tools, JSON

Your provider bills these tokens on your account. A listing is not a promise that your key has access to this model.

Call it

curl https://api.routexor.com/v1/chat/completions \
  -H "Authorization: Bearer $ROUTEXOR_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{"model":"routexor/codestral-2508","messages":[{"role":"user","content":"Say hello briefly."}],"max_tokens":64}'

Add your Mistral key in the dashboard first. This call is billed by Mistral. See the docs for which request paths are supported.