Mistral model
Codestral 2508 API cost calculator
Codestral 2508 costs $0.30 per 1M input tokens and $0.90 per 1M output tokens on the Mistral API, with a 256K-token context window. A typical request (2K input, 500 output tokens) costs $0.0010 — about $31.50/month at 1,000 requests per day. Use the calculator below to model your exact workload.
Find me a cheaper modelWhat real workloads cost on Codestral 2508
| Workload | Tokens (in / out) | Per request | Per 1K requests |
|---|---|---|---|
| Chatbot message | 500 / 300 | $0.0004 | $0.42 |
| RAG query with context | 4,000 / 500 | $0.0016 | $1.65 |
| Document summarization | 20,000 / 1,000 | $0.0069 | $6.90 |
| Agent coding session | 100,000 / 5,000 | $0.03 | $34.50 |
Codestral 2508 vs other Mistral models
| Model | Input /1M | Output /1M | Context |
|---|---|---|---|
| Codestral 2508 | $0.30 | $0.90 | 256K |
| Mistral Medium 3.5 | $1.50 | $7.50 | 262K |
| Mistral Small 4 | $0.15 | $0.60 | 262K |
| Ministral 3 14B 2512 | $0.20 | $0.20 | 262K |
| Ministral 3 8B 2512 | $0.15 | $0.15 | 262K |
Frequently asked questions
How much does Codestral 2508 cost per 1M tokens?
According to current pricing data, Codestral 2508 costs $0.30 per 1M input tokens and $0.90 per 1M output tokens. Processing 1M tokens each way costs $1.20.
What does a typical API request to Codestral 2508 cost?
A typical request with 2,000 input tokens and 500 output tokens costs $0.0010. At 1,000 requests per day that is $1.05 daily, or about $31.50 per month.
What is Codestral 2508's context window?
Codestral 2508 supports a 256K-token context window (256,000 tokens).
Does Codestral 2508 support prompt caching?
Yes. Cached input tokens cost $0.03 per 1M — a 90% discount versus the standard input rate, which matters for agents and chat apps that resend the same system prompt.
What is a cheaper alternative to Codestral 2508?
Ling-2.6-flash from Inclusionai is currently the cheapest comparable option at $0.01 per 1M input tokens versus $0.30 for Codestral 2508 — roughly 30x cheaper on input.
Prices may differ from Mistral's official pricing page for batch, tiered, or fine-tuned usage. Compare all current prices on the live model pricing dashboard, see Codestral 2508 vs Ling-2.6-flash pricing, or run Codestral 2508 head-to-head against other models in the side-by-side comparison playground.
Pricing data via the OpenRouter models API.