Home/Models/Mistral AI/Codestral
Model detail
Codestral, explained.
Code-focused — fast and accurate.
Standalone access
Per 1M tokens · official provider pricing
| Provider | Input | Output | Cache read |
|---|---|---|---|
| Mistral AI | $0.35 | $1.03 | — |
Official provider list price — AnyModel routes to whichever channel is healthiest, at no markup. Snapshot effective Jul 1, 2026.
AnyModel access
Per 1M tokens · public AnyModel price
- One API key across every channel
- Automatic health-based failover
- Single invoice · versioned price snapshot
AnyModel price is the public price; internal channel cost is never exposed.
News
What’s happening with this model
Related models
More from Mistral AI
Reasoning model with transparent chain-of-thought.
Frontier general-purpose model.
Multimodal document understanding.
Mid-size general model.
Compact efficient model.
Mixture-of-experts open model.
Capability
Analysis
Share of requests by client type.
↑ Trending up by 5.2% this month.
14-day uptime holds above the SLA line.
p95 time-to-first-token across routes.
| Window | Avg latency | Success | Requests | Tokens |
|---|---|---|---|---|
| 24h | 291ms | 97.60% | 397,290 | 52,455,061 |
| 7d | 302ms | 98.93% | 2,121,675 | 326,519,862 |
| 14d | 298ms | 98.84% | 4,370,033 | 631,037,697 |
Use case
Same prompt, this model’s answer
Every model answers the same question — see exactly how Codestral responds before you commit a token.
Summarize the key risks of provider lock-in for an AI gateway, in three bullets.
• Price changes pass through with zero negotiation leverage.
• Migration touches every call site, SDK, and retry policy.
• A single provider outage takes your whole product down.
Read the highlighted bar and explain the trend in one line.
The highlighted bar (Fri) is the week’s peak at 1,420 requests — a 5.2% rise continuing the upward trend since Monday.
Availability
Call it
# base url https://api.anymodel.com/v1 # model id mistral/codestral # openai-compatible requestcurl https://api.anymodel.com/v1/chat/completions \ -H "Authorization: Bearer $ANYMODEL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "mistral/codestral", "messages": [{"role":"user","content":"Hello"}] }'
Recommended fallback → mistral/magistral · mistral/mistral-large · openai/gpt-5.4 · auto-routed on health or quota.
Start in minutes
Find it. Route it. Ship it.
Generate an API key, pick a model (or let the router choose), and send your first request. No per-provider SDKs, no migration.