Z.aivsOpenAI·Updated Nov 2026
CodeGeeX 4 logovsGPT Oss 20B logo

CodeGeeX 4 vs GPT Oss 20B

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
GPT Oss 20B logoGPT Oss 20B-96%

$0.03 vs $0.70 / 1M

Cheaper Output
GPT Oss 20B logoGPT Oss 20B-94%

$0.13 vs $2.10 / 1M

AA Intelligence / AA Engineering
Reasoning

—

Context Window
GPT Oss 20B logoGPT Oss 20B1×

131K 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
GPT Oss 20B logoGPT Oss 20BPending
AA Engineering
CodeGeeX 4 logoCodeGeeX 4Pending
GPT Oss 20B logoGPT Oss 20BPending
Core Capability Profile
MetricCodeGeeX 4GPT Oss 20B
ReasoningYesYes
Input Modalitiestexttext
Tools & JSONToolsTools
Prompt Caching$0.70/1M$0.03/1M
Open-WeightOpenProprietary

Side-by-side specification matrix

USD ·
MetricCodeGeeX 4 logoCodeGeeX 4GPT Oss 20B logoGPT Oss 20BCompare
Input / 1M$0.70$0.03GPT Oss 20B -96%
Output / 1M$2.10$0.13GPT Oss 20B -94%
5m Cache Write / 1M$0.70$0.03GPT Oss 20B -96%
1h Cache Write / 1M———
Cache Read$0.70$0.03GPT Oss 20B -96%
Web Search / Call———
Context128K (128,000)131K (131,072)GPT Oss 20B 1×
Max Output33K (32,768)118K (117,964)GPT Oss 20B 3.6×
AA Intelligence(Artificial Analysis)———
AA Engineering———
CapabilitiestexttextEqual
ReasoningSupportedSupportedEqual
Structured Outputs(JSON Schema)Not listedNot listedEqual
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 GPT Oss 20B $159.60/mo ($1,915.20)
-95%
CodeGeeX 4 logoCodeGeeX 4
$168.00/mo
In: $52.50
Cache: $52.50
Out: $63.00
Search: N/A
GPT Oss 20B logoGPT Oss 20BBest Value
$8.40/mo
In: $2.25
Cache: $2.25
Out: $3.90
Search: N/A

Frequently Asked Questions

Is CodeGeeX 4 or GPT Oss 20B cheaper per API token?

GPT Oss 20B is 96% cheaper on input tokens ($0.03 vs $0.70 per 1M). For output tokens, GPT Oss 20B costs 94% less ($0.13 vs $2.10 per 1M).

How do CodeGeeX 4 and GPT Oss 20B prompt caching discounts compare?

GPT Oss 20B offers 96% cheaper cache reads at $0.03/1M compared to $0.70/1M for CodeGeeX 4. CodeGeeX 4 5m write: $0.70/1M; GPT Oss 20B 5m write: $0.03/1M.

Which model has a larger context window: CodeGeeX 4 or GPT Oss 20B?

GPT Oss 20B provides a 1× larger context window (131K vs 128K tokens). For single-turn output generation, CodeGeeX 4 caps at 33K tokens and GPT Oss 20B caps at 118K tokens.

How do CodeGeeX 4 and GPT Oss 20B compare on benchmarks and capabilities?

CodeGeeX 4 releases open weights for self-hosting or dedicated inference.

Related Head-to-Head Matchups

Comparisons