Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GLM 5

GLM 4.7 leads GLM 5 on coding, 55.1 to 41.7 on the Vibe Coding Index, and GLM 4.7 costs 1.5x less per output token ($2.20 vs $3.20 per million). Updated October 22, 2026; 68 benchmarks have a result for both.

GLM 4.7Z.ai
Coding
55.1
Overall
56.9
Output $/M
$2.20
9
GLM 5Z.ai
Coding
41.7
Overall
54.3
Output $/M
$3.20
59
vs boards won of 68 shared

GLM 4.7 or GLM 5: which to pick

Pick GLM 4.7 for coding: it scores 55.1 on the Vibe Coding Index against 41.7 for GLM 5, though on 2 benchmarks against 3.

Pick GLM 5 for work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Shared results
68
GLM 4.7 only
13
GLM 5 only
8
Like-for-like categories
8 of 9

Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.

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 55.1 from 2 benchmarks, GLM 5 41.7 from 3 benchmarks.
Widest category
Agentic work, 7.2 points apart on average over 6 shared benchmarks.
Widest single gap
Terminal-Bench: GLM 4.7 33.4% against GLM 5 52.4%, 19.0 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $2.20 against GLM 5 $3.20 per million output tokens, 1.5x apart.
Context window
Both take 205K tokens.

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.7BarsGLM 5Ties
Coding19
Intelligence02
Agentic work06
Reasoning17
Math22
Knowledge28
Web design17
General218
All shared boards959
CodingLike-for-likeSix of these boards feed the Vibe Coding Index19
Coding benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
SWE-bench VerifiedNot measured72.8%Only GLM 5 measured
SWE-bench MultilingualNot measured69.7%Only GLM 5 measured
LMArena WebDev14351435GLM 5
AA Coding Index45.3Not measuredOnly GLM 4.7 measured
LiveCodeBench (Vals AI)82.2%81.9%GLM 4.7
SWE-bench Verified (Vals AI)69.4%71.4%GLM 5
Vibe Code Bench (Vals AI)Not measured23.4%Only GLM 5 measured
LiveCodeBench (Artificial Analysis run)89.4%Not measuredOnly GLM 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)31.8%43.2%GLM 5
Terminal-Bench33.4%52.4%GLM 5
WeirdMLNot measured48.2%Only GLM 5 measured
ALE-Bench399.5765.6GLM 5
LMArena Text: coding14541461GLM 5
LMArena Text: software and IT14531460GLM 5
LMArena WebDev: React14201424GLM 5
LMArena WebDev: HTML14471450GLM 5
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
AA Intelligence Index22.227.9GLM 5
Epoch Capabilities Index143.6145.8GLM 5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index06
Agentic work benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
Design Arena: agents building full-stack apps10501123GLM 5
Design Arena: agents building mobile apps11051136GLM 5
Design Arena: agents building Android apps11121147GLM 5
Design Arena: agents building Godot games10581144GLM 5
Design Arena: HTML slidesNot measured1098Only GLM 5 measured
τ²-Bench Telecom95.9%98.2%GLM 5
Vending-Bench 2$2,377$4,432GLM 5
BrowseComp-Plus64.7%Not measuredOnly GLM 4.7 measured
Neither model has a result on the other 33 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index17
Reasoning benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
GPQA Diamond80.0%83.3%GLM 5
GPQA Diamond (Artificial Analysis run)85.9%82.0%GLM 4.7
Humanity's Last Exam (Artificial Analysis run)27.4%29.3%GLM 5
GPQA Diamond (Epoch AI run)83.3%87.8%GLM 5
ARC-AGINot measured44.7%Only GLM 5 measured
ARC-AGI-2Not measured4.9%Only GLM 5 measured
SimpleBench47.7%53.2%GLM 5
Chess puzzles21.0%Not measuredOnly GLM 4.7 measured
LMArena Text: hard prompts14431452GLM 5
LMArena Text: expert14241454GLM 5
LMArena Text: hard prompts in English14521460GLM 5
Kagi LLM BenchmarkNot measured75.0%Only GLM 5 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index22
Math benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
AIME93.3%91.7%GLM 4.7
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%80.0%GLM 4.7
ProofBench6.0%Not measuredOnly GLM 4.7 measured
LMArena Text: math14241440GLM 5
LMArena Text: mathematical work14111451GLM 5
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index28
Knowledge benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
MMLU Pro82.7%86.0%GLM 5
LegalBench (Vals AI)83.4%84.1%GLM 5
CaseLaw (Vals AI)54.9%52.5%GLM 4.7
CorpFin (Vals AI)46.4%62.9%GLM 5
TaxEval (Vals AI)68.8%70.0%GLM 5
MedQA (Vals AI)93.7%94.3%GLM 5
MedCode (Vals AI)32.8%Not measuredOnly GLM 4.7 measured
MMLU Pro (Artificial Analysis run)85.6%Not measuredOnly GLM 4.7 measured
SimpleQA Verified32.2%Not measuredOnly GLM 4.7 measured
LMArena Text: science14571460GLM 5
LMArena Text: medicine and healthcare14691455GLM 4.7
LMArena Text: legal and government14441453GLM 5
LMArena Text: business and finance14291430GLM 5
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index17
Web design benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
Design Arena: websites12251247GLM 5
Design Arena: UI components11961227GLM 5
Design Arena: game dev11881234GLM 5
Design Arena: data viz11951228GLM 5
Design Arena: 3D11901228GLM 5
Design Arena: all code categories12161246GLM 5
Design Arena: SVG11421168GLM 5
Design Arena: ASCII art11651147GLM 4.7
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index218
General benchmarks for GLM 4.7 and GLM 5
BenchmarkGLM 4.7GLM 5Leader
MedScribe (Vals AI)68.6%Not measuredOnly GLM 4.7 measured
IFBench67.9%72.3%GLM 5
Long context reasoning (AA-LCR)71.0%75.7%GLM 5
CL-bench15.9%18.7%GLM 5
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351446GLM 5
LMArena Text: instruction following14121428GLM 5
LMArena Text: creative writing14011438GLM 5
LMArena Text: English14531458GLM 5
LMArena Text: non-English14171430GLM 5
LMArena Text: Chinese14951511GLM 5
LMArena Text: German14261447GLM 5
LMArena Text: Japanese14391416GLM 4.7
LMArena Text: Korean13991423GLM 5
LMArena Text: French14321456GLM 5
LMArena Text: Spanish14341454GLM 5
LMArena Text: Russian14231436GLM 5
LMArena Text: Polish14351434GLM 4.7
LMArena Text: multi-turn14461456GLM 5
LMArena Text: longer queries14321446GLM 5
LMArena Text: writing and language14111437GLM 5
LMArena Text: entertainment and media14001426GLM 5
Neither model has a result on the other 24 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 GLM 5
BenchmarkGLM 4.7GLM 5Leader
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.0017Fits in one request
GLM 5$0.0026Fits in one request

GLM 4.7 costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.037Fits in one request
GLM 5$0.060Fits in one request

GLM 4.7 costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.142Exceeds the context window
GLM 5$0.232Exceeds the context window

GLM 4.7 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 GLM 5
SpecificationZ.ai GLM 4.7Z.ai GLM 5
MakerZ.aiZ.ai
WeightsOpen weightsOpen weights
ReleasedDecember 22, 2025February 11, 2026
Context window205K205K
Input $/Mtok$0.60$1.00
Output $/Mtok$2.20$3.20
Coding index55.141.7
Independent measurements behind it23
Cost per solved task$0.29$0.63
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GLM 5 for coding?

Pick GLM 4.7 for coding: it scores 55.1 on the Vibe Coding Index against 41.7 for GLM 5, though on 2 benchmarks against 3. Pick GLM 5 for work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Which is cheaper, GLM 4.7 or GLM 5?

GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens; GLM 5 costs $1.00 and $3.20. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GLM 5 $0.63.

Which has the bigger context window, GLM 4.7 or GLM 5?

Neither: both take 205K tokens.

How many benchmarks is the GLM 4.7 vs GLM 5 comparison based on?

68 benchmarks have a result for both models as of October 22, 2026. GLM 4.7's coding index rests on 2 independent benchmarks and GLM 5's on 3. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/glm-4-7-vs-glm-5" title="GLM 4.7 vs GLM 5, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/glm-4-7-vs-glm-5">LLMBenchmark.ai, GLM 4.7 vs GLM 5</a></p>