reroute

Mistral: Codestral 2508

mistralai/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

Modalities
In / Out Price
$0.30 / $0.90 per 1M
Context
256K
Released
Aug 1, 2025
Knowledge Cutoff
Mar 2025

API

Reroute speaks the OpenAI Chat Completions format. Point any OpenAI SDK at https://reroute.wtf/api/v1 and use mistralai/codestral-2508 as the model.

You need an API key
Keys start with sk-rr-v1- and are shown once.
Create API key
curl https://reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{
  "model": "mistralai/codestral-2508",
  "messages": [
    { "role": "user", "content": "What is the meaning of life?" }
  ]
}'

Streaming

Set stream: true to receive server-sent events. The final chunk carries usage and cost.

curl -N https://reroute.wtf/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $REROUTE_API_KEY" \
  -d '{ "model": "mistralai/codestral-2508", "stream": true,
        "messages": [{ "role": "user", "content": "Count to five" }] }'