Codestral pricing
Codestral, Small-tier from Mistral AI, costs $0.30 per 1M input tokens and $0.90 per 1M output tokens.
Input$0.30per 1M tokens
Output$0.90per 1M tokens
Context window128Ktokens
TierSmallMistral AI
Price your own workload against Codestral in the calculator →
Specs and pricing
| Provider | Mistral AI |
| Tier | Small |
| Context window | 128K tokens |
| Max output | — |
| Input price | $0.30 / 1M tokens |
| Output price | $0.90 / 1M tokens |
| Modalities | text |
What it costs at realistic volumes
Assuming a 4:1 input:output token ratio, a common shape for chat and RAG-style workloads:
| Volume (4:1 in:out ratio) | Input cost | Output cost | Total / month |
|---|---|---|---|
| 1,000,000 in / 250,000 out | $0.30 | $0.23 | $0.53 |
| 10,000,000 in / 2,500,000 out | $3.00 | $2.25 | $5.25 |
| 100,000,000 in / 25,000,000 out | $30.00 | $22.50 | $52.50 |
Cheaper alternatives
Same tier (Small), a different provider, and a lower blended cost at the 4:1 ratio used above:
| Model | Provider | $/1M in | $/1M out | At the 4:1 ratio |
|---|---|---|---|---|
| Meta-Llama-3.1-8B-Instruct-Turbo | DeepInfra | $0.02 | $0.04 | 94.3% cheaper blended |
| Solar Pro 4 | OpenRouter | $0.03 | $0.12 | 88.6% cheaper blended |
| GPT-OSS 20B | OpenRouter | $0.03 | $0.13 | 88.1% cheaper blended |
| schematron-v2-turbo | inference.net | $0.03 | $0.15 | 87.1% cheaper blended |
| Amazon Nova Micro | Amazon (Nova) | $0.035 | $0.14 | 86.7% cheaper blended |