Z.aivsMistral·Updated Nov 2026
CodeGeeX 4 logovsCodestral 2508 logo

CodeGeeX 4 vs Codestral 2508

Side-by-side pricing tables, surcharge math, capability benchmarks, and 30-day spend estimators across 411 live models and cloud GPU matchups.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
Codestral 2508 logoCodestral 2508-57%

$0.30 vs $0.70 / 1M

Cheaper Output
Codestral 2508 logoCodestral 2508-57%

$0.90 vs $2.10 / 1M

AA Intelligence / AA Engineering
CodeGeeX 4

—

Context Window
Codestral 2508 logoCodestral 25082×

256K vs 128K tokens

Capability Benchmarks & Third-Party Evaluations

Compare Artificial Analysis intelligence and engineering indexes, core capability matrices, and standardized external leaderboards.

AA Intelligence · Engineering · Arena · SWE-bench
Artificial Analysis Benchmarks
AA Intelligence
CodeGeeX 4 logoCodeGeeX 4Pending
Codestral 2508 logoCodestral 2508Pending
AA Engineering
CodeGeeX 4 logoCodeGeeX 4Pending
Codestral 2508 logoCodestral 2508Pending
Core Capability Profile
MetricCodeGeeX 4Codestral 2508
ReasoningYes—
Input Modalitiestexttext, file
Tools & JSONToolsTools
Prompt Caching$0.70/1M$0.03/1M
Open-WeightOpenOpen

Side-by-side specification matrix

USD ·
MetricCodeGeeX 4 logoCodeGeeX 4Codestral 2508 logoCodestral 2508Compare
Input / 1M$0.70$0.30Codestral 2508 -57%
Output / 1M$2.10$0.90Codestral 2508 -57%
5m Cache Write / 1M$0.70$0.30Codestral 2508 -57%
1h Cache Write / 1M———
Cache Read$0.70$0.03Codestral 2508 -96%
Web Search / Call———
Context128K (128,000)256K (256,000)Codestral 2508 2×
Max Output33K (32,768)205K (204,800)Codestral 2508 6.3×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestexttext, fileCodestral 2508
ReasoningSupportedNot listedCodeGeeX 4
Structured Outputs(JSON Schema)Not listedNot listedEqual
Open-WeightOpen-WeightOpen-WeightEqual

30-day production cost estimator

Adjust daily volume, prompt length, and cache hit rate to model 30-day API spend.

LLM API Monthly Cost Calculator
2,000
2,500
500
50%
0
60,000 · 150.0M · 30.0M
Est. 30-Day Spend
Estimated monthly savings with Codestral 2508 $116.25/mo ($1,395.00)
-69%
CodeGeeX 4 logoCodeGeeX 4
$168.00/mo
In: $52.50
Cache: $52.50
Out: $63.00
Search: N/A
Codestral 2508 logoCodestral 2508Best Value
$51.75/mo
In: $22.50
Cache: $2.25
Out: $27.00
Search: N/A

Frequently Asked Questions

Is CodeGeeX 4 or Codestral 2508 cheaper per API token?

Codestral 2508 is 57% cheaper on input tokens ($0.30 vs $0.70 per 1M). For output tokens, Codestral 2508 costs 57% less ($0.90 vs $2.10 per 1M).

How do CodeGeeX 4 and Codestral 2508 prompt caching discounts compare?

Codestral 2508 offers 96% cheaper cache reads at $0.03/1M compared to $0.70/1M for CodeGeeX 4. CodeGeeX 4 5m write: $0.70/1M; Codestral 2508 5m write: $0.30/1M.

Which model has a larger context window: CodeGeeX 4 or Codestral 2508?

Codestral 2508 provides a 2× larger context window (256K vs 128K tokens). For single-turn output generation, CodeGeeX 4 caps at 33K tokens and Codestral 2508 caps at 205K tokens.

How do CodeGeeX 4 and Codestral 2508 compare on benchmarks and capabilities?

Compare CodeGeeX 4 (Z.ai) and Codestral 2508 (Mistral) across tool calling (yes vs yes) and reasoning support above.

Related Head-to-Head Matchups

Comparisons