Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GPT-6 Luna

Updated October 21, 2026. 53 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GLM 4.7Z.ai
Coding
33.6
Overall
22.2
Output $/M
$1.98
27
GPT-6 LunaOpenAI
Coding
71.4
Overall
38.1
Output $/M
$0.50
26
vs boards won of 53 shared

Decision reading

Pick GPT-6 Luna for coding: it scores 71.4 on the Vibe Coding Index against 33.6 for GLM 4.7.

Pick GLM 4.7 when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
53
GLM 4.7 only
27
GPT-6 Luna only
49
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

Which one for your work

Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.

At a glance

Coding index
GLM 4.7 33.6 from 1 benchmark, GPT-6 Luna 71.4 from 2 benchmarks.
Widest category
Math, 19.7 points apart on average over 4 shared benchmarks.
Widest single gap
ProofBench: GLM 4.7 6.0% against GPT-6 Luna 64.0%, 58.0 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $1.98 against GPT-6 Luna $0.50 per million output tokens, 4.0x apart.
Context window
GLM 4.7 takes 205K tokens, GPT-6 Luna 1.05M.

Benchmark by benchmark

First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.

Boards won, where both have a result
CategoryGLM 4.7BarsGPT-6 LunaTies
Coding24
Intelligence02
Agentic work02
Reasoning24
Math13
Knowledge42
Web design17
General172
All shared boards2726
CodingLike-for-likeFour of these boards feed the Vibe Coding Index24
Coding benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
LiveBench codingNot measured84.5%Only GPT-6 Luna measured
LMArena WebDev14351578GPT-6 Luna
AA Coding Index45.3Not measuredOnly GLM 4.7 measured
LiveCodeBench (Vals AI)82.2%Not measuredOnly GLM 4.7 measured
SWE-bench Verified (Vals AI)69.4%Not measuredOnly GLM 4.7 measured
Terminal-Bench 4 (Vals AI)Not measured13.6%Only GPT-6 Luna measured
Vibe Code Bench (Vals AI)Not measured81.7%Only GPT-6 Luna measured
Code migration (Vals AI)Not measured42.5%Only GPT-6 Luna measured
ProgramBench (Vals AI)Not measured0.5%Only GPT-6 Luna measured
IOI (Vals AI)Not measured55.6%Only GPT-6 Luna measured
Terminal-Bench 2.1 (Vals AI)Not measured73.0%Only GPT-6 Luna measured
SWE-bench Multimodal (Vals AI)Not measured37.5%Only GPT-6 Luna measured
CyberBench (Vals AI)Not measured76.3%Only GPT-6 Luna measured
LiveCodeBench (Artificial Analysis run)89.4%Not measuredOnly GLM 4.7 measured
SciCodeNot measured54.6%Only GPT-6 Luna measured
Terminal-Bench Hard (Artificial Analysis run)31.8%Not measuredOnly GLM 4.7 measured
Terminal-Bench33.4%Not measuredOnly GLM 4.7 measured
FrontierCodeNot measured42.4%Only GPT-6 Luna measured
ALE-Bench399.51576.9GPT-6 Luna
LMArena Text: coding14541437GLM 4.7
LMArena Text: software and IT14531423GLM 4.7
LMArena WebDev: React14201573GPT-6 Luna
LMArena WebDev: HTML14471595GPT-6 Luna
LMArena WebDev: from an imageNot measured1571Only GPT-6 Luna measured
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
AA Intelligence Index22.238.1GPT-6 Luna
Epoch Capabilities Index143.6156.8GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
Design Arena: agents building web appsNot measured1189Only GPT-6 Luna measured
Design Arena: agents building full-stack apps10501158GPT-6 Luna
Design Arena: agents building mobile apps11051133GPT-6 Luna
Design Arena: agents building Android apps1118Not measuredOnly GLM 4.7 measured
Design Arena: agents building Godot games1058Not measuredOnly GLM 4.7 measured
LiveBench researchNot measured43.5%Only GPT-6 Luna measured
LiveBench browserNot measured72.0%Only GPT-6 Luna measured
LiveBench long agenticNot measured48.1%Only GPT-6 Luna measured
SREBench (Vals AI)Not measured2.7%Only GPT-6 Luna measured
Finance Agent (Vals AI)Not measured49.9%Only GPT-6 Luna measured
Tax Agent Bench (Vals AI)Not measured19.9%Only GPT-6 Luna measured
Legal Research Bench (Vals AI)Not measured30.3%Only GPT-6 Luna measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured4.2%Only GPT-6 Luna measured
Excel Modeling Benchmark (Vals AI)Not measured68.5%Only GPT-6 Luna measured
BioMysteryBench (Vals AI)Not measured61.5%Only GPT-6 Luna measured
Terminal-Bench-Science (Vals AI)Not measured4.3%Only GPT-6 Luna measured
Vals Science IndexNot measured28.4%Only GPT-6 Luna measured
τ²-Bench Telecom95.9%Not measuredOnly GLM 4.7 measured
APEX-AgentsNot measured44.3%Only GPT-6 Luna measured
SpireClimbNot measured0.0%Only GPT-6 Luna measured
Vending-Bench 2$2,377Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index24
Reasoning benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
GPQA Diamond80.0%Not measuredOnly GLM 4.7 measured
LiveBench reasoningNot measured81.8%Only GPT-6 Luna measured
MysteryMechanism (Vals AI)Not measured19.4%Only GPT-6 Luna measured
GPQA Diamond (Artificial Analysis run)85.9%Not measuredOnly GLM 4.7 measured
Humanity's Last Exam (Artificial Analysis run)27.4%38.5%GPT-6 Luna
GPQA Diamond (Epoch AI run)83.3%90.5%GPT-6 Luna
ARC-AGINot measured86.7%Only GPT-6 Luna measured
ARC-AGI-2Not measured59.3%Only GPT-6 Luna measured
SimpleBench47.7%Not measuredOnly GLM 4.7 measured
Chess puzzles21.0%36.0%GPT-6 Luna
Mystery game puzzlesNot measured7.0%Only GPT-6 Luna measured
LMArena Text: hard prompts14431410GLM 4.7
LMArena Text: expert14241442GPT-6 Luna
LMArena Text: hard prompts in English14521410GLM 4.7
LMArena Vision: diagramsNot measured1245Only GPT-6 Luna measured
LMArena Vision: homeworkNot measured1261Only GPT-6 Luna measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index13
Math benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
AIME93.3%Not measuredOnly GLM 4.7 measured
MGSM (Vals AI)88.2%Not measuredOnly GLM 4.7 measured
AA Math Index95.0Not measuredOnly GLM 4.7 measured
AIME 2025 (Artificial Analysis run)95.0%Not measuredOnly GLM 4.7 measured
OTIS Mock AIME83.3%98.9%GPT-6 Luna
FrontierMath, tiers 1 to 3Not measured78.9%Only GPT-6 Luna measured
FrontierMath, tier 4Not measured56.1%Only GPT-6 Luna measured
ProofBench6.0%64.0%GPT-6 Luna
LMArena Text: math14241409GLM 4.7
LMArena Text: mathematical work14111427GPT-6 Luna
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index42
Knowledge benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
MMLU Pro82.7%Not measuredOnly GLM 4.7 measured
LegalBench (Vals AI)83.4%Not measuredOnly GLM 4.7 measured
CaseLaw (Vals AI)54.9%Not measuredOnly GLM 4.7 measured
CorpFin (Vals AI)46.4%Not measuredOnly GLM 4.7 measured
TaxEval (Vals AI)68.8%Not measuredOnly GLM 4.7 measured
MedQA (Vals AI)93.7%Not measuredOnly GLM 4.7 measured
MedCode (Vals AI)32.8%44.7%GPT-6 Luna
MMLU Pro (Artificial Analysis run)85.6%Not measuredOnly GLM 4.7 measured
SimpleQA Verified32.2%41.4%GPT-6 Luna
LMArena Text: science14571386GLM 4.7
LMArena Text: medicine and healthcare14691352GLM 4.7
LMArena Text: legal and government14441400GLM 4.7
LMArena Text: business and finance14291388GLM 4.7
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index17
Web design benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
Design Arena: websites12261272GPT-6 Luna
Design Arena: UI components11991297GPT-6 Luna
Design Arena: game dev11891259GPT-6 Luna
Design Arena: data viz11951215GPT-6 Luna
Design Arena: 3D11911217GPT-6 Luna
Design Arena: all code categories12171271GPT-6 Luna
Design Arena: SVG11421253GPT-6 Luna
Design Arena: ASCII art11651156GLM 4.7
LiveBench designNot measured82.5%Only GPT-6 Luna measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index172
General benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
Vals IndexNot measured52.3%Only GPT-6 Luna measured
LiveBench data analysisNot measured73.4%Only GPT-6 Luna measured
Public Benefits Bench (Vals AI)Not measured57.6%Only GPT-6 Luna measured
SAGE (Vals AI)Not measured48.1%Only GPT-6 Luna measured
MedScribe (Vals AI)68.6%83.7%GPT-6 Luna
IFBench67.9%Not measuredOnly GLM 4.7 measured
Long context reasoning (AA-LCR)71.0%83.3%GPT-6 Luna
DTBenchNot measured90.1%Only GPT-6 Luna measured
LMCANot measured44.5%Only GPT-6 Luna measured
CL-bench15.9%Not measuredOnly GLM 4.7 measured
Furniture assemblyNot measured44.2%Only GPT-6 Luna measured
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351389GLM 4.7
LMArena Text: instruction following14121408GLM 4.7
LMArena Text: creative writing14011363GLM 4.7
LMArena VisionNot measured1216Only GPT-6 Luna measured
LMArena Text: English14531393GLM 4.7
LMArena Text: non-English14171381GLM 4.7
LMArena Text: Chinese14951427GLM 4.7
LMArena Text: German14261376GLM 4.7
LMArena Text: Japanese14391369GLM 4.7
LMArena Text: Korean13991359GLM 4.7
LMArena Text: French14321408GLM 4.7
LMArena Text: Spanish14341391GLM 4.7
LMArena Text: Russian14231392GLM 4.7
LMArena Text: Polish14351383GLM 4.7
LMArena Text: multi-turn14461392GLM 4.7
LMArena Text: longer queries14321408GLM 4.7
LMArena Text: writing and language14111384GLM 4.7
LMArena Text: entertainment and media14001364GLM 4.7
LMArena Vision: EnglishNot measured1204Only GPT-6 Luna measured
LMArena Vision: ChineseNot measured1266Only GPT-6 Luna measured
LMArena Vision: reading textNot measured1225Only GPT-6 Luna measured
LMArena Vision: creative writingNot measured1205Only GPT-6 Luna measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 4.7 and GPT-6 Luna
BenchmarkGLM 4.7GPT-6 LunaLeader
Neither model has a result on 5 boards here

What each workload costs

Three fixed token mixes at each model's listed price, so per-token rates become a bill.

Chat turn

1K input + 500 output tokens

GLM 4.7$0.0015Fits in one request
GPT-6 Luna$0.0003Fits in one request

GPT-6 Luna costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.033Fits in one request
GPT-6 Luna$0.0065Fits in one request

GPT-6 Luna costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.128Exceeds the context window
GPT-6 Luna$0.025Fits in one request

GPT-6 Luna costs less

Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.

Specification differences

The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.

Specifications of GLM 4.7 and GPT-6 Luna
SpecificationZ.ai GLM 4.7OpenAI GPT-6 Luna
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 22, 2025September 22, 2026
Context window205K1.05M
Input $/Mtok$0.54$0.10
Output $/Mtok$1.98$0.50
Coding index33.671.4
Independent measurements behind it12
Cost per solved task$0.29Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GPT-6 Luna for coding?

Pick GPT-6 Luna for coding: it scores 71.4 on the Vibe Coding Index against 33.6 for GLM 4.7. Pick GLM 4.7 when what matters is LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, GLM 4.7 or GPT-6 Luna?

GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; GPT-6 Luna costs $0.10 and $0.50. Cost per solved task is known for GLM 4.7 only.

Which has the bigger context window, GLM 4.7 or GPT-6 Luna?

GPT-6 Luna, with 1.05M tokens against 205K.

How many benchmarks is the GLM 4.7 vs GPT-6 Luna comparison based on?

53 benchmarks have a result for both models as of October 21, 2026. GLM 4.7's coding index rests on 1 independent benchmark and GPT-6 Luna's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next