Codestral 2508 API pricing
Mistral · checked 2026-11-21 · source
Input / 1M tokens
$0.3
Output / 1M tokens
$0.9
Cached input / 1M tokens
$0.03
Context window
256,000
Provider
Mistral
Cost per typical task
Computed from the prices above. The token counts are illustrative task sizes, not measurements.
| Task | Tokens | Arithmetic | Cost |
|---|---|---|---|
| Chat reply | 1,000 input + 300 output | 1,000 ÷ 1,000,000 × $0.3 + 300 ÷ 1,000,000 × $0.9 = $0.000570 | $0.000570 |
| Summarize a long document | 20,000 input + 1,000 output | 20,000 ÷ 1,000,000 × $0.3 + 1,000 ÷ 1,000,000 × $0.9 = $0.006900 | $0.006900 |
| Coding agent step (cached context) | 5,000 input + 40,000 cached input + 2,000 output | 5,000 ÷ 1,000,000 × $0.3 + 40,000 ÷ 1,000,000 × $0.03 + 2,000 ÷ 1,000,000 × $0.9 = $0.004500 | $0.004500 |
← Calculate the cost of your own prompt · Compare with the cheapest LLM APIs