Z.aivsMistral·Updated Nov 2026
CodeGeeX 4 logovsDevstral 2 2512 logo

CodeGeeX 4 vs Devstral 2 2512

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
Devstral 2 2512 logoDevstral 2 2512-43%

$0.40 vs $0.70 / 1M

Cheaper Output
Devstral 2 2512 logoDevstral 2 2512-4.8%

$2.00 vs $2.10 / 1M

AA Intelligence / AA Engineering
CodeGeeX 4

—

Context Window
Devstral 2 2512 logoDevstral 2 25122×

262K 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
Devstral 2 2512 logoDevstral 2 2512Pending
AA Engineering
CodeGeeX 4 logoCodeGeeX 4Pending
Devstral 2 2512 logoDevstral 2 2512Pending
Core Capability Profile
MetricCodeGeeX 4Devstral 2 2512
ReasoningYes—
Input Modalitiestexttext, file
Tools & JSONToolsTools
Prompt Caching$0.70/1M$0.04/1M
Open-WeightOpenOpen

Side-by-side specification matrix

USD ·
MetricCodeGeeX 4 logoCodeGeeX 4Devstral 2 2512 logoDevstral 2 2512Compare
Input / 1M$0.70$0.40Devstral 2 2512 -43%
Output / 1M$2.10$2.00Devstral 2 2512 -4.8%
5m Cache Write / 1M$0.70$0.40Devstral 2 2512 -43%
1h Cache Write / 1M———
Cache Read$0.70$0.04Devstral 2 2512 -94%
Web Search / Call———
Context128K (128,000)262K (262,144)Devstral 2 2512 2×
Max Output33K (32,768)210K (209,715)Devstral 2 2512 6.4×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestexttext, fileDevstral 2 2512
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 Devstral 2 2512 $75.00/mo ($900.00)
-45%
CodeGeeX 4 logoCodeGeeX 4
$168.00/mo
In: $52.50
Cache: $52.50
Out: $63.00
Search: N/A
Devstral 2 2512 logoDevstral 2 2512Best Value
$93.00/mo
In: $30.00
Cache: $3.00
Out: $60.00
Search: N/A

Frequently Asked Questions

Is CodeGeeX 4 or Devstral 2 2512 cheaper per API token?

Devstral 2 2512 is 43% cheaper on input tokens ($0.40 vs $0.70 per 1M). For output tokens, Devstral 2 2512 costs 4.8% less ($2.00 vs $2.10 per 1M).

How do CodeGeeX 4 and Devstral 2 2512 prompt caching discounts compare?

Devstral 2 2512 offers 94% cheaper cache reads at $0.04/1M compared to $0.70/1M for CodeGeeX 4. CodeGeeX 4 5m write: $0.70/1M; Devstral 2 2512 5m write: $0.40/1M.

Which model has a larger context window: CodeGeeX 4 or Devstral 2 2512?

Devstral 2 2512 provides a 2× larger context window (262K vs 128K tokens). For single-turn output generation, CodeGeeX 4 caps at 33K tokens and Devstral 2 2512 caps at 210K tokens.

How do CodeGeeX 4 and Devstral 2 2512 compare on benchmarks and capabilities?

Compare CodeGeeX 4 (Z.ai) and Devstral 2 2512 (Mistral) across tool calling (yes vs yes) and reasoning support above.

Related Head-to-Head Matchups

Comparisons