Codestral (2508) vs Grok Code Fast 1
Codestral (2508) (Mistral) costs $0.30 per million input tokens and $0.90 per million output tokens; Grok Code Fast 1 (xAI) costs $1.00 and $2.00. Codestral (2508) is 2.8× cheaper for a typical 3:1 input-to-output mix. Grok Code Fast 1 has the larger context window (256K vs 128K tokens).
| Codestral (2508) | Grok Code Fast 1 | |
|---|---|---|
| Provider | Mistral | xAI |
| Input / 1M tokens | $0.30 | $1.00 |
| Output / 1M tokens | $0.90 | $2.00 |
| Cached input / 1M | $0.03 | $0.20 |
| Blended (3:1) | $0.45 | $1.25 |
| Context window | 128K | 256K |
| Max output | 128K | 256K |
| Vision | — | Yes |
| Tool use | Yes | Yes |
| Reasoning | — | Yes |
| Listed since | Dec 14, 2025 | Aug 30, 2025 |
Cost per 1,000 requests
| Workload | Codestral (2508) | Grok Code Fast 1 |
|---|---|---|
| Chatbot reply2,000 input + 500 output tokens | $1.05 | $3.00 |
| RAG / search answer8,000 input + 700 output tokens | $3.03 | $9.40 |
| Long-document summary100,000 input + 2,000 output tokens | $31.80 | $104.00 |
Blended price history
Blended = (3 × input + output) ÷ 4, per million tokens. Each line starts when the model first appeared in the price list.
The companies
List prices for each provider's own API (USD), taken daily from LiteLLM's public model price list. Batch, caching and committed-use discounts aren't reflected. Price alone says nothing about output quality; check benchmarks and your own evaluations before switching.
