LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GLM 5.1

Updated October 21, 2026. 71 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
7
GLM 5.1Z.ai
Coding
44.0
Overall
26.1
Output $/M
$4.40
64
vs boards won of 71 shared

Decision reading

Pick GLM 5.1 for coding: it scores 44.0 on the Vibe Coding Index against 33.6 for GLM 4.7.

Pick GLM 4.7 when output tokens cost 2.2x less, or when a solved task costs $0.29 against $0.60.

Shared results
71
GLM 4.7 only
9
GLM 5.1 only
18
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, GLM 5.1 44.0 from 1 benchmark.
Widest category
Web design, 10.9 points apart on average over 8 shared benchmarks.
Widest single gap
Design Arena: data viz: GLM 4.7 1195 against GLM 5.1 1366, 21.4 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $1.98 against GLM 5.1 $4.40 per million output tokens, 2.2x 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 5.1Ties
Coding19
Intelligence02
Agentic work15
Reasoning18
Math14
Knowledge110
Web design17
General119
All shared boards764
CodingLike-for-likeFour of these boards feed the Vibe Coding Index19
Coding benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
LMArena WebDev14351508GLM 5.1
AA Coding Index45.355.8GLM 5.1
LiveCodeBench (Vals AI)82.2%81.4%GLM 4.7
SWE-bench Verified (Vals AI)69.4%76.4%GLM 5.1
Vibe Code Bench (Vals AI)Not measured31.5%Only GLM 5.1 measured
Code migration (Vals AI)Not measured25.8%Only GLM 5.1 measured
ProgramBench (Vals AI)Not measured0.0%Only GLM 5.1 measured
Terminal-Bench 2.1 (Vals AI)Not measured56.9%Only GLM 5.1 measured
LiveCodeBench (Artificial Analysis run)89.4%Not measuredOnly GLM 4.7 measured
SciCodeNot measured44.8%Only GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)31.8%43.2%GLM 5.1
Terminal-Bench33.4%Not measuredOnly GLM 4.7 measured
WeirdMLNot measured57.1%Only GLM 5.1 measured
ALE-Bench399.5887.1GLM 5.1
LMArena Text: coding14541485GLM 5.1
LMArena Text: software and IT14531484GLM 5.1
LMArena WebDev: React14201505GLM 5.1
LMArena WebDev: HTML14471508GLM 5.1
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
AA Intelligence Index22.226.1GLM 5.1
Epoch Capabilities Index143.6149.8GLM 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index15
Agentic work benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
AA Agentic IndexNot measured23.9Only GLM 5.1 measured
Design Arena: agents building web appsNot measured1175Only GLM 5.1 measured
Design Arena: agents building full-stack apps10501167GLM 5.1
Design Arena: agents building mobile apps11051162GLM 5.1
Design Arena: agents building Android apps11181186GLM 5.1
Design Arena: agents building Godot games10581053GLM 4.7
Design Arena: agents building gamesNot measured1164Only GLM 5.1 measured
Design Arena: HTML slidesNot measured1170Only GLM 5.1 measured
Design Arena: PowerPoint slidesNot measured1189Only GLM 5.1 measured
Design Arena: spreadsheetsNot measured1315Only GLM 5.1 measured
Finance Agent (Vals AI)Not measured44.8%Only GLM 5.1 measured
Legal Research Bench (Vals AI)Not measured27.9%Only GLM 5.1 measured
τ²-Bench Telecom95.9%97.7%GLM 5.1
APEX-AgentsNot measured40.9%Only GLM 5.1 measured
Vending-Bench 2$2,377$5,634GLM 5.1
Neither model has a result on the other 24 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index18
Reasoning benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
GPQA Diamond80.0%84.5%GLM 5.1
GPQA Diamond (Artificial Analysis run)85.9%86.8%GLM 5.1
Humanity's Last Exam (Artificial Analysis run)27.4%30.1%GLM 5.1
GPQA Diamond (Epoch AI run)83.3%89.9%GLM 5.1
SimpleBench47.7%55.1%GLM 5.1
Chess puzzles21.0%20.0%GLM 4.7
LMArena Text: hard prompts14431473GLM 5.1
LMArena Text: expert14241478GLM 5.1
LMArena Text: hard prompts in English14521482GLM 5.1
Neither model has a result on the other 12 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index14
Math benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
AIME93.3%91.9%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%93.3%GLM 5.1
FrontierMath, tiers 1 to 3Not measured36.8%Only GLM 5.1 measured
ProofBench6.0%22.2%GLM 5.1
LMArena Text: math14241473GLM 5.1
LMArena Text: mathematical work14111470GLM 5.1
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index110
Knowledge benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
MMLU Pro82.7%86.9%GLM 5.1
LegalBench (Vals AI)83.4%84.4%GLM 5.1
CaseLaw (Vals AI)54.9%51.5%GLM 4.7
CorpFin (Vals AI)46.4%64.5%GLM 5.1
TaxEval (Vals AI)68.8%71.2%GLM 5.1
MedQA (Vals AI)93.7%Not measuredOnly GLM 4.7 measured
MedCode (Vals AI)32.8%41.6%GLM 5.1
MMLU Pro (Artificial Analysis run)85.6%Not measuredOnly GLM 4.7 measured
SimpleQA Verified32.2%34.0%GLM 5.1
LMArena Text: science14571478GLM 5.1
LMArena Text: medicine and healthcare14691474GLM 5.1
LMArena Text: legal and government14441465GLM 5.1
LMArena Text: business and finance14291452GLM 5.1
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 GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
Design Arena: websites12261290GLM 5.1
Design Arena: UI components11991292GLM 5.1
Design Arena: game dev11891265GLM 5.1
Design Arena: data viz11951366GLM 5.1
Design Arena: 3D11911336GLM 5.1
Design Arena: all code categories12171268GLM 5.1
Design Arena: SVG11421217GLM 5.1
Design Arena: ASCII art11651142GLM 4.7
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index119
General benchmarks for GLM 4.7 and GLM 5.1
BenchmarkGLM 4.7GLM 5.1Leader
Public Benefits Bench (Vals AI)Not measured61.8%Only GLM 5.1 measured
MedScribe (Vals AI)68.6%72.3%GLM 5.1
IFBench67.9%76.3%GLM 5.1
Long context reasoning (AA-LCR)71.0%73.7%GLM 5.1
CL-bench15.9%Not measuredOnly GLM 4.7 measured
ExploitBenchNot measured18.1%Only GLM 5.1 measured
CL-bench Life10.9%Not measuredOnly GLM 4.7 measured
LMArena Text14351463GLM 5.1
LMArena Text: instruction following14121453GLM 5.1
LMArena Text: creative writing14011453GLM 5.1
LMArena Text: English14531476GLM 5.1
LMArena Text: non-English14171448GLM 5.1
LMArena Text: Chinese14951515GLM 5.1
LMArena Text: German14261467GLM 5.1
LMArena Text: Japanese14391435GLM 4.7
LMArena Text: Korean13991424GLM 5.1
LMArena Text: French14321470GLM 5.1
LMArena Text: Spanish14341468GLM 5.1
LMArena Text: Russian14231454GLM 5.1
LMArena Text: Polish14351449GLM 5.1
LMArena Text: multi-turn14461473GLM 5.1
LMArena Text: longer queries14321467GLM 5.1
LMArena Text: writing and language14111454GLM 5.1
LMArena Text: entertainment and media14001442GLM 5.1
Neither model has a result on the other 22 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.1
BenchmarkGLM 4.7GLM 5.1Leader
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
GLM 5.1$0.0036Fits in one request

GLM 4.7 costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.033Fits in one request
GLM 5.1$0.083Fits in one request

GLM 4.7 costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.128Exceeds the context window
GLM 5.1$0.324Exceeds 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.1
SpecificationZ.ai GLM 4.7Z.ai GLM 5.1
MakerZ.aiZ.ai
WeightsOpen weightsOpen weights
ReleasedDecember 22, 2025April 7, 2026
Context window205K205K
Input $/Mtok$0.54$1.40
Output $/Mtok$1.98$4.40
Coding index33.644.0
Independent measurements behind it11
Cost per solved task$0.29$0.60
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GLM 5.1 for coding?

Pick GLM 5.1 for coding: it scores 44.0 on the Vibe Coding Index against 33.6 for GLM 4.7. Pick GLM 4.7 when output tokens cost 2.2x less, or when a solved task costs $0.29 against $0.60.

Which is cheaper, GLM 4.7 or GLM 5.1?

GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens; GLM 5.1 costs $1.40 and $4.40. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GLM 5.1 $0.60.

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

Neither: both take 205K tokens.

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

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

Compare next