codestral-latest · Mistral AI
Code-specialized model at $0.30/$0.90 — fast completions and FIM for IDE integrations.
Last checked Aug 16, 2026. Calculations use the listed base rates; provider-specific tiers, cache writes, batch pricing, and long-context rules may differ. Note: Cached input 90% off; batch half price. Confirm the current rate at the official provider source.
Input
$0.30
per 1M tokens
Output
$0.90
per 1M tokens
Cached input
$0.03
per 1M tokens
Context window
256K
max output 32.8K
Codestral cost calculator
What Codestral costs per task
| Use case | Input tokens | Output tokens | Cost / request | Monthly @ 1K req/day |
|---|---|---|---|---|
| Customer support chatbot | 3,500 | 350 | $0.000703 | $21.105 |
| RAG / search-augmented answers | 8,000 | 500 | $0.00177 | $53.10 |
| AI coding assistant | 12,000 | 2,000 | $0.003456 | $103.68 |
| Document summarization | 25,000 | 600 | $0.007365 | $220.95 |
| Agentic workflow | 40,000 | 1,500 | $0.00633 | $189.90 |
| Content generation | 800 | 1,200 | $0.001255 | $37.656 |
| Data extraction & tagging | 2,000 | 250 | $0.000717 | $21.51 |
| Translation | 5,000 | 5,500 | $0.006248 | $187.425 |
Assumes each use case's typical cacheable share of input. See full cost scenarios.
Compare with alternatives
| Model | Input /M | Output /M | Context | Chat request* |
|---|---|---|---|---|
| Codestral | $0.30 | $0.90 | 256K | $0.00138 |
| GPT-5.4 minicompare | $0.75 | $4.50 | 1.1M | $0.00525 |
| GPT-5.2 | $1.75 | $14.00 | 400K | $0.0151 |
| Grok 4.3 | $1.25 | $2.50 | 1M | $0.0049 |
*4,000 in + 800 out tokens, 50% cached input where available.
Related calculations
FAQ
Codestral costs $0.30 per 1M input tokens and $0.90 per 1M output tokens, with cached input at $0.03 per 1M tokens. Verified Aug 16, 2026 against https://mistral.ai/pricing/api/.
Codestral supports a 256,000-token context window with up to 32,768 output tokens per request, tokenized with Tekken (131K vocab).
At $0.30/M input and $0.90/M output, Codestral sits below GPT-5.4 mini ($0.75/M in, $4.50/M out) — see the comparison table for full-workload differences.