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
ProviderMistralxAI
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 window128K256K
Max output128K256K
Vision—Yes
Tool useYesYes
Reasoning—Yes
Listed sinceDec 14, 2025Aug 30, 2025

Cost per 1,000 requests

WorkloadCodestral (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

Codestral (2508)Grok Code Fast 1
$0$0.400$0.800$1.20$1.60Oct 25Jan 26Apr 26Jul 26Oct 26$0.450$1.25

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.