Codestral 2508 vs Grok 4.7

Price, context window & benchmark comparison

M

Codestral 2508

Mistral AI
$0.30 / $0.90
Input / Output · per 1M tokens
VS
X

Grok 4.7

xAI
$1.60 / $4.80
Input / Output · per 1M tokens
Compare different models
M
X
Verdict: Codestral 2508 is 5.3× cheaper than Grok 4.7 on a typical 3:1 input/output mix. Grok 4.7 has the larger context window (500K vs 256K).
Codestral 2508Grok 4.7
Input price / 1M$0.30$1.60
Output price / 1M$0.90$4.80
Blended price (3:1)$0.45$2.40
Cached input / 1M$0.03$0.40
Context window256K500K
Max output205K450K
Intelligence index46.4
Coding index
Providers4
Best provider uptime (30m)100.0%
Vision inputNoYes
ReasoningNoYes
Tool callingYesYes
Released2025-08-012026-09-21
Retirement

Cost calculator

FAQ

Which is cheaper, Codestral 2508 or Grok 4.7?

Codestral 2508 is 5.3× cheaper than Grok 4.7 on a typical 3:1 input/output mix.

Codestral 2508 vs Grok 4.7: which has a bigger context window?

Codestral 2508: 256,000 tokens. Grok 4.7: 500,000 tokens.

How much would 1 million requests cost?

At 2,000 input + 500 output tokens per request: Codestral 2508 ≈ $1,050, Grok 4.7 ≈ $5,600.

More comparisons