Enter opens the highlighted result. Esc closes.

GLM 4.7 vs GPT-5.1

GLM 4.7 leads GPT-5.1 on coding, 55.1 to 53.2 on the Vibe Coding Index, and GLM 4.7 costs 4.5x less per output token ($2.20 vs $10.00 per million). Updated December 6, 2026; 74 benchmarks have a result for both.

GLM 4.7Z.ai
Coding
55.1
Overall
62.3
Output $/M
$2.20
19
GPT-5.1OpenAI
Coding
53.2
Overall
62.9
Output $/M
$10.00
54
vs boards won of 74 shared, 1 tied

GLM 4.7 or GPT-5.1: which to pick

GLM 4.7 and GPT-5.1 are level for coding, 55.1 against 53.2 on the Vibe Coding Index, so price and context decide.

Pick GPT-5.1 for a larger context window (400K against 203K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads. Pick GLM 4.7 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and a lower cost per solved task ($0.29 against $1.02).

Shared results
74
GLM 4.7 only
7
GPT-5.1 only
29
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, GPT-5.1 53.2 from 2 benchmarks.
Widest category
Intelligence, 9.4 points apart on average over 1 shared benchmark.
Widest single gap
Chess puzzles: GLM 4.7 21.0% against GPT-5.1 42.0%, 21.0 points apart on a 0 to 100 scale.
Output price
GLM 4.7 $2.20 against GPT-5.1 $10.00 per million output tokens, 4.5x apart.
Context window
GLM 4.7 takes 203K tokens, GPT-5.1 400K.

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-5.1Ties
Coding56
Intelligence01
Agentic work30
Reasoning09
Math141 tie
Knowledge112
Web design62
General320
All shared boards19541 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index56
Coding benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1 measured
LMArena WebDev14361397GLM 4.7
LiveCodeBench (Vals AI)82.2%86.5%GPT-5.1
SWE-bench Verified (Vals AI)69.4%69.8%GPT-5.1
LiveCodeBench (Artificial Analysis run)89.4%86.8%GLM 4.7
Terminal-Bench Hard (Artificial Analysis run)31.8%45.5%GPT-5.1
Terminal-Bench33.4%47.6%GPT-5.1
GSO-BenchNot measured13.7%Only GPT-5.1 measured
WeirdMLNot measured60.8%Only GPT-5.1 measured
ALE-Bench399.5Not measuredOnly GLM 4.7 measured
LMArena Text: coding14541453GLM 4.7
LMArena Text: software and IT14531454GPT-5.1
LMArena WebDev: React14211306GLM 4.7
LMArena WebDev: HTML14471406GLM 4.7
LMArena WebDev: from an imageNot measured1419Only GPT-5.1 measured
Terminal-Bench 2.033.4%47.6%GPT-5.1
Neither model has a result on the other 36 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
Epoch Capabilities Index143.4150.9GPT-5.1
Neither model has a result on the other 1 board here
Agentic workLike-for-likePublic boards, shown as published, kept out of the index30
Agentic work benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
Design Arena: agents building full-stack apps1096Not measuredOnly GLM 4.7 measured
Design Arena: agents building mobile apps1094Not measuredOnly GLM 4.7 measured
Design Arena: agents building Android apps1091Not measuredOnly GLM 4.7 measured
Design Arena: agents building Godot games1058Not measuredOnly GLM 4.7 measured
τ²-Bench Telecom95.9%81.9%GLM 4.7
DeepResearch BenchNot measured42.8%Only GPT-5.1 measured
Vending-Bench 2$2,377$1,473GLM 4.7
LMArena SearchNot measured1199Only GPT-5.1 measured
BrowseComp-Plus64.7%Not measuredOnly GLM 4.7 measured
MCP Atlas58.1%50.1%GLM 4.7
Neither model has a result on the other 34 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index09
Reasoning benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
GPQA Diamond80.0%86.6%GPT-5.1
MMMU Pro (Vals AI)Not measured83.2%Only GPT-5.1 measured
GPQA Diamond (Artificial Analysis run)85.9%87.3%GPT-5.1
Humanity's Last Exam (Artificial Analysis run)27.4%28.5%GPT-5.1
GPQA Diamond (Epoch AI run)83.3%87.6%GPT-5.1
ARC-AGINot measured72.8%Only GPT-5.1 measured
ARC-AGI-2Not measured17.6%Only GPT-5.1 measured
SimpleBench47.7%53.2%GPT-5.1
Chess puzzles21.0%42.0%GPT-5.1
Mystery game puzzlesNot measured19.0%Only GPT-5.1 measured
VPCTNot measured58.7%Only GPT-5.1 measured
LMArena Text: hard prompts14431457GPT-5.1
LMArena Text: expert14241469GPT-5.1
LMArena Text: hard prompts in English14521462GPT-5.1
LMArena Vision: diagramsNot measured1264Only GPT-5.1 measured
LMArena Vision: homeworkNot measured1274Only GPT-5.1 measured
Neither model has a result on the other 10 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index14
Math benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
AIME93.3%93.3%Tie
MGSM (Vals AI)88.2%93.0%GPT-5.1
AIME 2025 (Artificial Analysis run)95.0%94.0%GLM 4.7
OTIS Mock AIME83.3%88.6%GPT-5.1
ProofBench6.0%Not measuredOnly GLM 4.7 measured
LMArena Text: math14231447GPT-5.1
LMArena Text: mathematical work14111450GPT-5.1
MathArenaNot measured16.0%Only GPT-5.1 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index112
Knowledge benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
MMLU Pro82.7%86.4%GPT-5.1
LegalBench (Vals AI)83.4%85.7%GPT-5.1
CaseLaw (Vals AI)54.9%73.4%GPT-5.1
CorpFin (Vals AI)46.4%63.8%GPT-5.1
TaxEval (Vals AI)68.8%74.9%GPT-5.1
MortgageTax (Vals AI)Not measured61.4%Only GPT-5.1 measured
MedQA (Vals AI)93.7%96.4%GPT-5.1
MedCode (Vals AI)32.8%52.7%GPT-5.1
MMLU Pro (Artificial Analysis run)85.6%87.0%GPT-5.1
SimpleQA Verified32.2%48.0%GPT-5.1
LMArena Text: science14571459GPT-5.1
LMArena Text: medicine and healthcare14701456GLM 4.7
LMArena Text: legal and government14451459GPT-5.1
LMArena Text: business and finance14291431GPT-5.1
PRBench FinanceNot measured48.0%Only GPT-5.1 measured
PRBench LegalNot measured48.0%Only GPT-5.1 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index62
Web design benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
Design Arena: websites12661227GLM 4.7
Design Arena: UI components11781146GLM 4.7
Design Arena: game dev11561149GLM 4.7
Design Arena: data viz11871198GPT-5.1
Design Arena: 3D1152986GLM 4.7
Design Arena: all code categories12591210GLM 4.7
Design Arena: SVG11841190GPT-5.1
Design Arena: ASCII art11421096GLM 4.7
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index320
General benchmarks for GLM 4.7 and GPT-5.1
BenchmarkGLM 4.7GPT-5.1Leader
MedScribe (Vals AI)68.6%88.1%GPT-5.1
IFBench67.9%72.9%GPT-5.1
Long context reasoning (AA-LCR)71.0%80.0%GPT-5.1
GDPval-AA1025837GLM 4.7
DTBenchNot measured90.1%Only GPT-5.1 measured
LMCANot measured43.9%Only GPT-5.1 measured
CL-bench15.9%23.7%GPT-5.1
CL-bench Life10.9%17.3%GPT-5.1
LMArena Text14351442GPT-5.1
LMArena Text: instruction following14121442GPT-5.1
LMArena Text: creative writing14021427GPT-5.1
LMArena VisionNot measured1249Only GPT-5.1 measured
LMArena Text: English14531451GLM 4.7
LMArena Text: non-English14171431GPT-5.1
LMArena Text: Chinese14941495GPT-5.1
LMArena Text: German14261438GPT-5.1
LMArena Text: Japanese14391455GPT-5.1
LMArena Text: Korean13981400GPT-5.1
LMArena Text: French14301450GPT-5.1
LMArena Text: Spanish14341432GLM 4.7
LMArena Text: Russian14251435GPT-5.1
LMArena Text: Polish14351440GPT-5.1
LMArena Text: multi-turn14461450GPT-5.1
LMArena Text: longer queries14321447GPT-5.1
LMArena Text: writing and language14111428GPT-5.1
LMArena Text: entertainment and media14001414GPT-5.1
LMArena Vision: EnglishNot measured1251Only GPT-5.1 measured
LMArena Vision: ChineseNot measured1271Only GPT-5.1 measured
LMArena Vision: reading textNot measured1254Only GPT-5.1 measured
LMArena Vision: humorNot measured1264Only GPT-5.1 measured
LMArena Vision: captioningNot measured1252Only GPT-5.1 measured
LMArena Vision: recognizing thingsNot measured1232Only GPT-5.1 measured
LMArena Vision: creative writingNot measured1267Only GPT-5.1 measured
LMArena DocumentNot measured1403Only GPT-5.1 measured
MultiChallengeNot measured63.4%Only GPT-5.1 measured
Neither model has a result on the other 14 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-5.1
BenchmarkGLM 4.7GPT-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.0017Fits in one request
GPT-5.1$0.0063Fits in one request

GLM 4.7 costs less

Repository review

50K input + 3K output tokens

GLM 4.7$0.037Fits in one request
GPT-5.1$0.092Fits in one request

GLM 4.7 costs less

Agent loop

200K input + 10K output tokens

GLM 4.7$0.142Exceeds the context window
GPT-5.1$0.350Fits in one request

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 GPT-5.1
SpecificationZ.ai GLM 4.7OpenAI GPT-5.1
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedDecember 22, 2025November 13, 2025
Context window203K400K
Input $/Mtok$0.60$1.25
Output $/Mtok$2.20$10.00
Coding index55.153.2
Independent measurements behind it22
Cost per solved task$0.29$1.02
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 4.7 better than GPT-5.1 for coding?

GLM 4.7 and GPT-5.1 are level for coding, 55.1 against 53.2 on the Vibe Coding Index, so price and context decide. Pick GPT-5.1 for a larger context window (400K against 203K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads. Pick GLM 4.7 for output tokens 4.5x cheaper ($2.20 vs $10.00 per million) and a lower cost per solved task ($0.29 against $1.02).

Which is cheaper, GLM 4.7 or GPT-5.1?

GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens; GPT-5.1 costs $1.25 and $10.00. Per solved SWE-bench Verified task, GLM 4.7 costs $0.29 and GPT-5.1 $1.02.

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

GPT-5.1, with 400K tokens against 203K.

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

74 benchmarks have a result for both models as of December 6, 2026. GLM 4.7's coding index rests on 2 independent benchmarks and GPT-5.1's on 2. 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-gpt-5-1" title="GLM 4.7 vs GPT-5.1, 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-gpt-5-1">LLMBenchmark.ai, GLM 4.7 vs GPT-5.1</a></p>