Codestral 2508 vs Grok 4.20
Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.
$0.30 vs $1.25 / 1M
$0.90 vs $2.50 / 1M
—
2M vs 256K tokens
Capability Benchmarks & Third-Party Evaluations
Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.
| Metric | Codestral 2508 | Grok 4.20 |
|---|---|---|
| Reasoning | — | Yes |
| Input Modalities | text, file | text, image, file |
| Tools & JSON | Tools | Tools · JSON |
| Prompt Caching | $0.03/1M | $0.20/1M |
| Open-Weight | Open | Proprietary |
Compare independent Intelligence Index, Engineering/Coding scores, tokens/sec throughput, and TTFT latency for Codestral 2508 and Grok 4.20.
Blind pairwise human preference Elo ratings across Overall, Coding, Hard Prompts, and Instruction Following.
Measures autonomous GitHub repository issue resolution rates in sandboxed software engineering evaluations.
Monthly refreshed objective tests spanning Math, Coding, Reasoning, Data Analysis, and Language.
Evaluates practical diff editing pass rates and API cost per benchmark run across Python, C++, Go, Java, JS, and Rust.
Live provider uptime, latency, throughput, and parameter support for x-ai/grok-4.20.
Side-by-side specification matrix
USD ·| Metric | Compare | ||
|---|---|---|---|
| Input / 1M | $0.30 | $1.25 | Codestral 2508 -76% |
| Output / 1M | $0.90 | $2.50 | Codestral 2508 -64% |
| 5m Cache Write / 1M | $0.30 | $1.25 | Codestral 2508 -76% |
| 1h Cache Write / 1M | — | — | — |
| Cache Read | $0.03 | $0.20 | Codestral 2508 -85% |
| Web Search / Call | — | $0.005 | — |
| Context | 256K (256,000) | 2M (2,000,000) | Grok 4.20 7.8× |
| Max Output | 205K (204,800) | 1.8M (1,800,000) | Grok 4.20 8.8× |
| AA Intelligence(Artificial Analysis) | — | — | — |
| AA Engineering | — | — | — |
| Capabilities | text, file | text, image, file | Grok 4.20 |
| Reasoning | Not listed | Supported | Grok 4.20 |
| Structured Outputs(JSON Schema) | Not listed | Supported | Grok 4.20 |
| Open-Weight | Open-Weight | Proprietary API | Codestral 2508 |
30-day production cost estimator
Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.
Frequently Asked Questions
Is Codestral 2508 or Grok 4.20 cheaper per API token?
Codestral 2508 is 76% cheaper on input tokens ($0.30 vs $1.25 per 1M). For output tokens, Codestral 2508 costs 64% less ($0.90 vs $2.50 per 1M).
How do Codestral 2508 and Grok 4.20 prompt caching discounts compare?
Codestral 2508 offers 85% cheaper cache reads at $0.03/1M compared to $0.20/1M for Grok 4.20. Codestral 2508 5m write: $0.30/1M; Grok 4.20 5m write: $1.25/1M.
Which model has a larger context window: Codestral 2508 or Grok 4.20?
Grok 4.20 provides a 7.8× larger context window (2M vs 256K tokens). For single-turn output generation, Codestral 2508 caps at 205K tokens and Grok 4.20 caps at 1.8M tokens.
How do Codestral 2508 and Grok 4.20 compare on benchmarks and capabilities?
Grok 4.20 adds native vision/image input support, and Codestral 2508 releases open weights for self-hosting or dedicated inference.
Related Head-to-Head Matchups
ComparisonsCodestral 2508 vs Gemini 3.5 Flash Lite
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs DeepSeek Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $1.20
Codestral 2508 vs Gemini 2.5 Flash
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Codestral 2508 vs Gemini Exp 1206
In: $0.30 vs $0.30 · Out: $0.90 vs $2.50
Grok 4.20 vs Llama 4 Scout
In: $1.25 vs $0.10 · Out: $2.50 vs $0.30
Grok 4.20 vs DeepSeek V4.1 Flash
In: $1.25 vs $0.14 · Out: $2.50 vs $0.42