Loading
Loading
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)
One price on every route. If the primary provider is down, the request goes to a backup at the same price.
| Provider | Input | Output | Cache | Latency | Throughput | Uptime · 3 days |
|---|---|---|---|---|---|---|
Partner networkPrimaryGets requests first | $0.3957 | $1.19 | $0.0396 | — | — | no requests in 3 days |
Latency and throughput are averages over our requests in the last 4 weeks; uptime is the share of successful responses over 3 days.
Per 1M tokens. The same whichever provider serves the request.
Averages over our requests in the last 4 weeks.
Throughput and latency will appear after the first requests to this model through our API.
Tokens per day across all customers over 30 days.
A chart of daily tokens will appear here once people start using the model.
Same format as OpenAI. Get your key in the .
from openai import OpenAIimport os client = OpenAI( base_url="https://llmproxy.org/v1", api_key=os.environ["MAXAI_API_KEY"],) resp = client.chat.completions.create( model="mistralai/codestral-2508", messages=[{"role": "user", "content": "Hi! Who are you?"}], stream=True,)for chunk in resp: print(chunk.choices[0].delta.content or "", end="")
We choose which provider serves each request and charge one price per model. If a request goes to a backup route, you pay the same.
No. We only log metadata: model, token counts, cost and response time. We don’t store request or response texts.
Yes. The API still accepts codestral-2508, but responses and logs name the model mistralai/codestral-2508. Use mistralai/codestral-2508 in new code.