Z.aivsOpenAI·Updated Nov 2026
CodeGeeX 4 logovsGPT-6 Luna logo

CodeGeeX 4 vs GPT-6 Luna

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-6 Luna logoGPT-6 Luna-86%

$0.10 vs $0.70 / 1M

Cheaper Output
GPT-6 Luna logoGPT-6 Luna-76%

$0.50 vs $2.10 / 1M

AA Intelligence / AA Engineering
Reasoning

GPT-6 Luna: 27.9

Context Window
GPT-6 Luna logoGPT-6 Luna8.2×

1.05M 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-6 Luna logoGPT-6 Luna27.9
AA Engineering
CodeGeeX 4 logoCodeGeeX 4Pending
GPT-6 Luna logoGPT-6 Luna33.3
Core Capability Profile
MetricCodeGeeX 4GPT-6 Luna
ReasoningYesmax/xhigh/high/medium/low/none
Input Modalitiestexttext, image, file
Tools & JSONToolsTools · JSON
Prompt Caching$0.70/1M$0.01/1M
Open-WeightOpenProprietary

Side-by-side specification matrix

USD ·
MetricCodeGeeX 4 logoCodeGeeX 4GPT-6 Luna logoGPT-6 LunaCompare
Input / 1M$0.70$0.10GPT-6 Luna -86%
Output / 1M$2.10$0.50GPT-6 Luna -76%
5m Cache Write / 1M$0.70$0.13GPT-6 Luna -82%
1h Cache Write / 1M———
Cache Read$0.70$0.01GPT-6 Luna -99%
Web Search / Call—$0.01—
Context128K (128,000)1.05M (1,050,000)GPT-6 Luna 8.2×
Max Output33K (32,768)128K (128,000)GPT-6 Luna 3.9×
AA Intelligence(Artificial Analysis)—27.9—
AA Engineering—33.3—
Capabilitiestexttext, image, fileGPT-6 Luna
ReasoningSupportedmax, xhigh, high, medium, low, noneEqual
Structured Outputs(JSON Schema)Not listedSupportedGPT-6 Luna
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-6 Luna $144.75/mo ($1,737.00)
-86%
CodeGeeX 4 logoCodeGeeX 4
$168.00/mo
In: $52.50
Cache: $52.50
Out: $63.00
Search: N/A
GPT-6 Luna logoGPT-6 LunaBest Value
$23.25/mo
In: $7.50
Cache: $0.75
Out: $15.00
Search: $0.00

Frequently Asked Questions

Is CodeGeeX 4 or GPT-6 Luna cheaper per API token?

GPT-6 Luna is 86% cheaper on input tokens ($0.10 vs $0.70 per 1M). For output tokens, GPT-6 Luna costs 76% less ($0.50 vs $2.10 per 1M).

How do CodeGeeX 4 and GPT-6 Luna prompt caching discounts compare?

GPT-6 Luna offers 99% cheaper cache reads at $0.01/1M compared to $0.70/1M for CodeGeeX 4. CodeGeeX 4 5m write: $0.70/1M; GPT-6 Luna 5m write: $0.13/1M.

Which model has a larger context window: CodeGeeX 4 or GPT-6 Luna?

GPT-6 Luna provides a 8.2× larger context window (1.05M vs 128K tokens). For single-turn output generation, CodeGeeX 4 caps at 33K tokens and GPT-6 Luna caps at 128K tokens.

How do CodeGeeX 4 and GPT-6 Luna compare on benchmarks and capabilities?

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

Related Head-to-Head Matchups

Comparisons