Mistral: Codestral 2508 API Pricing & Monthly Cost Calculator
Mistral: Codestral 2508 by Mistral is priced at $0.3 per 1M input tokens and $0.9 per 1M output tokens with a 256K context window. Prompt caching reduces repeated prefix reads to $0.03/1M (90% savings). Batch API lowers rates to $0.15 in / $0.45 out.
Direct Official vs. OpenRouter Gateway
Comparing direct vendor pricing against multi-provider OpenRouter routing for mistralai/codestral-2508.
| Channel | Input / 1M | Output / 1M | Cache Read |
|---|---|---|---|
| Direct Official | $0.3 | $0.9 | $0.03 |
| OpenRouter Gateway | $0.3 | $0.9 | $0.03 |
1M to 1B Token Cost Tiers
Reference monthly spend assuming a standard 75% input / 25% output workload mix.
| Monthly Volume | Standard | 75% Cached | Batch API |
|---|---|---|---|
| 1M tokens | $0.45 | $0.30 | $0.22 |
| 10M tokens | $4.50 | $2.98 | $2.25 |
| 100M tokens | $45.00 | $29.81 | $22.50 |
| 1B tokens | $450.00 | $298.13 | $225.00 |
Interactive Mistral: Codestral 2508 Bill Estimator
Adjust request volume, tokens, and prompt cache hit ratio.
Closest Price-Tier Alternatives
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| Meta: Llama 4 Maverick | $0.35 | $1.00 | 524.3K |
| Meta: Llama 3.3 70B Instruct | $0.59 | $0.79 | 131.1K |
| OpenAI: GPT-5.6 Luna | $0.2 | $1.20 | 1.05M |
| OpenAI: GPT-5.6 Luna Pro | $0.2 | $1.20 | 1.05M |
| OpenAI: GPT-5.4 Nano | $0.2 | $1.25 | 400K |
| DeepSeek: DeepSeek V4 Flash Vision Exp | $0.3 | $1.20 | 1.05M |
Optimize Inference & Self-Hosting
Compare Mistral: Codestral 2508 against flagship models from OpenAI, Anthropic, Google, and DeepSeek in our interactive comparison matrix, or benchmark self-hosted GPU break-even thresholds.
Model Specifications & FAQs
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)
How much does Mistral: Codestral 2508 API cost per 1M tokens?
Mistral: Codestral 2508 costs $0.3 per 1M input tokens and $0.9 per 1M output tokens (official direct provider rate), verified on 2026-11-30.
Does Mistral: Codestral 2508 support prompt caching or batch discounts?
Yes, cached input reads cost $0.03 per 1M tokens (90% off standard input). Batch API reduces rates to $0.15 input and $0.45 output per 1M tokens.
What is the context window and max output for Mistral: Codestral 2508?
Mistral: Codestral 2508 supports a 256,000-token context window and up to 204,800 output tokens per completion.