Z.aivsxAI·Updated Nov 2026
CodeGeeX 4 logovsGrok 4.20 logo

CodeGeeX 4 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.

Switch Comparison Matchup411 · Updated Nov 2026
Cheaper Input
CodeGeeX 4 logoCodeGeeX 4-44%

$0.70 vs $1.25 / 1M

Cheaper Output
CodeGeeX 4 logoCodeGeeX 4-16%

$2.10 vs $2.50 / 1M

AA Intelligence / AA Engineering
Reasoning

—

Context Window
Grok 4.20 logoGrok 4.2016×

2M 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
Grok 4.20 logoGrok 4.20Pending
AA Engineering
CodeGeeX 4 logoCodeGeeX 4Pending
Grok 4.20 logoGrok 4.20Pending
Core Capability Profile
MetricCodeGeeX 4Grok 4.20
ReasoningYesYes
Input Modalitiestexttext, image, file
Tools & JSONToolsTools · JSON
Prompt Caching$0.70/1M$0.20/1M
Open-WeightOpenProprietary

Side-by-side specification matrix

USD ·
MetricCodeGeeX 4 logoCodeGeeX 4Grok 4.20 logoGrok 4.20Compare
Input / 1M$0.70$1.25CodeGeeX 4 -44%
Output / 1M$2.10$2.50CodeGeeX 4 -16%
5m Cache Write / 1M$0.70$1.25CodeGeeX 4 -44%
1h Cache Write / 1M———
Cache Read$0.70$0.20Grok 4.20 -71%
Web Search / Call—$0.005—
Context128K (128,000)2M (2,000,000)Grok 4.20 16×
Max Output33K (32,768)1.8M (1,800,000)Grok 4.20 55×
AA Intelligence(Artificial Analysis)———
AA Engineering———
Capabilitiestexttext, image, fileGrok 4.20
ReasoningSupportedSupportedEqual
Structured Outputs(JSON Schema)Not listedSupportedGrok 4.20
Open-WeightOpen-WeightProprietary APICodeGeeX 4

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 CodeGeeX 4 $15.75/mo ($189.00)
-8.6%
CodeGeeX 4 logoCodeGeeX 4Best Value
$168.00/mo
In: $52.50
Cache: $52.50
Out: $63.00
Search: N/A
Grok 4.20 logoGrok 4.20
$183.75/mo
In: $93.75
Cache: $15.00
Out: $75.00
Search: $0.00

Frequently Asked Questions

Is CodeGeeX 4 or Grok 4.20 cheaper per API token?

CodeGeeX 4 is 44% cheaper on input tokens ($0.70 vs $1.25 per 1M). For output tokens, CodeGeeX 4 costs 16% less ($2.10 vs $2.50 per 1M).

How do CodeGeeX 4 and Grok 4.20 prompt caching discounts compare?

Grok 4.20 offers 71% cheaper cache reads at $0.20/1M compared to $0.70/1M for CodeGeeX 4. CodeGeeX 4 5m write: $0.70/1M; Grok 4.20 5m write: $1.25/1M.

Which model has a larger context window: CodeGeeX 4 or Grok 4.20?

Grok 4.20 provides a 15.6× larger context window (2M vs 128K tokens). For single-turn output generation, CodeGeeX 4 caps at 33K tokens and Grok 4.20 caps at 1.8M tokens.

How do CodeGeeX 4 and Grok 4.20 compare on benchmarks and capabilities?

Grok 4.20 adds native vision/image input support, and CodeGeeX 4 releases open weights for self-hosting or dedicated inference.

Related Head-to-Head Matchups

Comparisons