Skip to content

Grok 4.20 vs Codestral 2508

Grok 4.20

xAI

89#29
vs
Codestral 2508

Mistral AI

40#267
Signal-by-Signal Comparison
SignalGrok 4.20DeltaCodestral 2508
Capabilities
100
+50
50
Benchmarks
86
+86
0
Pricing
98
-2
99
Context window size
100
+14
86
Recency
100
+33
67
Output Capacity
20
--
20
Overall Result
4 wins
of 6
1 wins
Grok 4.20 wins 4 of 6 signals

Score History

Score History (24 data points)
Grok 4.20Codestral 2508
Grok 4.20

88.8

current score

Leader

Grok 4.20

right now

Codestral 2508

40

current score

LMMarketCap.com
Interactive Price Comparison
100Kcalls/month
1,000tokens (~1,333 chars)
500tokens (~667 chars)

Grok 4.20

xAI

Per request$0.002500
Daily$8.33
Monthly$250.00
Annual$3000.00

Codestral 2508

Mistral AI

Best Value
Per request$0.000750
Daily$2.50
Monthly$75.00
Annual$900.00

Codestral 2508 saves you $175.00/month

That's $2100.00/year compared to Grok 4.20 at your current usage level of 100K calls/month.

70% cheaper
Choose Codestral 2508 for cost optimization

Grok 4.20 pricing:
Input:$1.25/M tokens
Output:$2.50/M tokens
Codestral 2508 pricing:
Input:$0.30/M tokens
Output:$0.90/M tokens
Winner
Grok 4.20

xAI

89

Composite Score

Codestral 2508

Mistral AI

40

Composite Score

Signal-by-Signal Comparison
MetricGrok 4.20Codestral 2508Winner
Overall Score
89
40
Grok 4.20
Rank#29#267
Grok 4.20
Quality Rank#29#267
Grok 4.20
Adoption Rank#29#267
Grok 4.20
Parameters------
Context Window2000K256K
Grok 4.20
Pricing$1.25/$2.50/M$0.30/$0.90/M--
Signal Scores
Capabilities
100
50
Grok 4.20
Benchmarks
86
--
Grok 4.20
Pricing
98
99
Codestral 2508
Context window size
100
86
Grok 4.20
Recency
100
67
Grok 4.20
Output Capacity
20
20
Grok 4.20
Benchmark Head-to-Head(11 benchmarks)
Grok 4.20: 0Codestral 2508: 0
Grok 4.20
Codestral 2508
Normalized 0-100%
MMLU
91.5%-
MMLU-Pro
83.5%-
GPQA Diamond
82%-
MATH-500
95%-
HumanEval
95.5%-
SWE-bench Verified
70%-
AIME 2024
88%-
IFEval
91%-
BBH
90%-
Arena Elo
1462-
LiveBench
73%-
Benchmark Interpretation

Our score (0-100) is driven by benchmark performance (90%) from Arena Elo ratings, MMLU, GPQA, HumanEval, SWE-bench, and 15+ standardized evaluations. Capabilities and context window serve as tiebreakers (10%). Learn more about our methodology.

Grok 4.20Elite Tier

Scores 89/100 (rank #29), placing it in the top 90% of all 290 models tracked.

Raw Quality0/100
Cost Efficiency0/100
Speed0/100
Codestral 2508Entry Level

Scores 40/100 (rank #267), placing it in the top 8% of all 290 models tracked.

Raw Quality0/100
Cost Efficiency0/100
Speed0/100

Grok 4.20 has a 49-point advantage, which typically translates to noticeably stronger performance on complex reasoning, code generation, and multi-step tasks.

When to Use Each Model

Choose Grok 4.20 when you need:

  • Processing long documents or large codebases (2000K token context)
  • Multimodal workflows that require image understanding
  • Step-by-step reasoning and chain-of-thought problem solving

Choose Codestral 2508 when you need:

  • High-volume production workloads where API costs must be minimized
Cost-Performance Analysis
Grok 4.20
Input cost$1.25/M tokens
Output cost$2.50/M tokens
Cost per quality point$0.042
Est. monthly (1M tokens/day)$56.25
Codestral 2508Best Value
Input cost$0.30/M tokens
Output cost$0.90/M tokens
Cost per quality point$0.030
Est. monthly (1M tokens/day)$18.00

Codestral 2508 offers 68% better value per quality point. At 1M tokens/day, you'd spend $18.00/month with Codestral 2508 vs $56.25/month with Grok 4.20 - a $38.25 monthly difference.

Latency & Speed
Grok 4.20Faster
Speed score0/100
Codestral 2508
Speed score0/100

Both models have comparable response speeds. For most applications, the latency difference is negligible.

When latency matters most: Interactive chatbots, IDE code completion, real-time translation, and user-facing applications where response time directly impacts experience. For batch processing, background summarization, or offline analysis, latency is less critical.

Example Use Cases

Code generation & review

Based on overall model capabilities and architecture for coding tasks like generating functions, debugging, and refactoring

Grok 4.20

Customer support chatbot

Suitable for user-facing chat with competitive response times. Codestral 2508 also offers lower per-token costs for high-volume support

Grok 4.20

Long document analysis

Larger context window (2000K tokens) can process longer documents, contracts, and research papers in a single pass

Grok 4.20

Batch data extraction

Lower output pricing ($0.90/M) reduces costs when processing thousands of records daily

Codestral 2508

Creative writing & content

Higher overall composite score (89/100) correlates with better nuance, coherence, and style in long-form content

Grok 4.20

Image understanding & OCR

Supports vision input - can analyze screenshots, diagrams, photos, and scanned documents directly

Grok 4.20
Which Should You Choose?
Our recommendation:
Grok 4.20

Grok 4.20 clearly outperforms Codestral 2508 with a significant 48.8-point lead. For most general use cases, Grok 4.20 is the stronger choice. However, Codestral 2508 may still excel in niche scenarios.

Grok 4.20
Recommended

by xAI

  • Choose for Quality - Marginally better benchmark scores; both are excellent
  • Choose for Reliability - Higher uptime and faster response speeds
  • Choose for Prototyping - Stronger community support and better developer experience
  • Choose for Production - Wider enterprise adoption and proven at scale

by Mistral AI

  • Choose for Cost - 68% lower pricing; better value at scale
Capability Comparison
CapabilityGrok 4.20Codestral 2508
Vision (Image Input)differs
Function Calling
Streaming
JSON Mode
Reasoningdiffers
Web Searchdiffers
Image Output
Monthly Cost Calculator
1,000tokens (600 in / 400 out)
100requests/day (3,000/month)

Grok 4.20

xAI

$5.25
estimated monthly cost

Codestral 2508

Mistral AI

Best Value
$1.62
estimated monthly cost

Codestral 2508 saves you $3.63/month

That's 69% cheaper than Grok 4.20 at 1,000 tokens/request and 100 requests/day.

Assumes 60% input / 40% output token ratio per request. Actual costs may vary based on your usage pattern.

Parameters & Context
ParameterGrok 4.20Codestral 2508
Context Window2M256K
Max Output Tokens----
Open SourceNoNo
CreatedMar 31, 2026Aug 1, 2025
Last updated: 56m ago

相关对比

Grok 4.20 vs Codestral 2508 (2026) | LM Market Cap