Enter opens the highlighted result. Esc closes.

GLM 5.1 vs GPT-5.4 Mini

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

GLM 5.1Z.ai
Coding
44.0
Overall
26.1
Output $/M
$4.40
48
GPT-5.4 MiniOpenAI
Coding
28.2
Overall
24.1
Output $/M
$4.50
15
vs boards won of 64 shared, 1 tied

Decision reading

Pick GLM 5.1 for coding: it scores 44.0 on the Vibe Coding Index against 28.2 for GPT-5.4 Mini.

Pick GPT-5.4 Mini when the context window is larger, 400K against 205K tokens, or when what matters is AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Shared results
64
GLM 5.1 only
25
GPT-5.4 Mini only
24
Like-for-like categories
7 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 5.1 44.0 from 1 benchmark, GPT-5.4 Mini 28.2 from 1 benchmark.
Widest category
Agentic work, 9.1 points apart on average over 4 shared benchmarks.
Widest single gap
LMArena WebDev: React: GLM 5.1 1505 against GPT-5.4 Mini 1386, 19.7 points apart on a 0 to 100 scale.
Output price
GLM 5.1 $4.40 against GPT-5.4 Mini $4.50 per million output tokens, 1.0x apart.
Context window
GLM 5.1 takes 205K tokens, GPT-5.4 Mini 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 5.1BarsGPT-5.4 MiniTies
Coding871 tie
Intelligence20
Agentic work31
Reasoning62
Math42
Knowledge72
General181
All shared boards48151 tie
CodingLike-for-likeFour of these boards feed the Vibe Coding Index87
Coding benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
LMArena WebDev15081397GLM 5.1
AA Coding Index55.856.1GPT-5.4 Mini
LiveCodeBench (Vals AI)81.4%81.5%GPT-5.4 Mini
SWE-bench Verified (Vals AI)76.4%73.0%GLM 5.1
Terminal-Bench 4 (Vals AI)Not measured2.5%Only GPT-5.4 Mini measured
Vibe Code Bench (Vals AI)31.5%48.0%GPT-5.4 Mini
Code migration (Vals AI)25.8%12.9%GLM 5.1
ProgramBench (Vals AI)0.0%0.0%Tie
Terminal-Bench 2.1 (Vals AI)56.9%54.7%GLM 5.1
SciCode44.8%52.1%GPT-5.4 Mini
Terminal-Bench Hard (Artificial Analysis run)43.2%52.3%GPT-5.4 Mini
FrontierCodeNot measured27.0%Only GPT-5.4 Mini measured
WeirdML57.1%60.3%GPT-5.4 Mini
ALE-Bench887.11188.6GPT-5.4 Mini
LMArena Text: coding14851438GLM 5.1
LMArena Text: software and IT14841436GLM 5.1
LMArena WebDev: React15051386GLM 5.1
LMArena WebDev: HTML15081419GLM 5.1
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
AA Intelligence Index26.124.1GLM 5.1
Epoch Capabilities Index149.8148.7GLM 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index31
Agentic work benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
AA Agentic Index23.917.9GLM 5.1
Design Arena: agents building web apps1175Not measuredOnly GLM 5.1 measured
Design Arena: agents building full-stack apps1167Not measuredOnly GLM 5.1 measured
Design Arena: agents building mobile apps1162Not measuredOnly GLM 5.1 measured
Design Arena: agents building Android apps1186Not measuredOnly GLM 5.1 measured
Design Arena: agents building Godot games1053Not measuredOnly GLM 5.1 measured
Design Arena: agents building games1164Not measuredOnly GLM 5.1 measured
Design Arena: HTML slides1170Not measuredOnly GLM 5.1 measured
Design Arena: PowerPoint slides1189Not measuredOnly GLM 5.1 measured
Design Arena: spreadsheets1315Not measuredOnly GLM 5.1 measured
Finance Agent (Vals AI)44.8%45.4%GPT-5.4 Mini
Tax Agent Bench (Vals AI)Not measured8.8%Only GPT-5.4 Mini measured
Legal Research Bench (Vals AI)27.9%12.5%GLM 5.1
Excel Modeling Benchmark (Vals AI)Not measured45.4%Only GPT-5.4 Mini measured
τ²-Bench Telecom97.7%83.3%GLM 5.1
APEX-Agents40.9%Not measuredOnly GLM 5.1 measured
DeepResearch BenchNot measured36.3%Only GPT-5.4 Mini measured
Vending-Bench 2$5,634Not measuredOnly GLM 5.1 measured
Neither model has a result on the other 21 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index62
Reasoning benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
GPQA Diamond84.5%83.1%GLM 5.1
MMMU Pro (Vals AI)Not measured79.3%Only GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)86.8%87.5%GPT-5.4 Mini
Humanity's Last Exam (Artificial Analysis run)30.1%28.1%GLM 5.1
GPQA Diamond (Epoch AI run)89.9%86.9%GLM 5.1
ARC-AGINot measured63.7%Only GPT-5.4 Mini measured
ARC-AGI-2Not measured18.9%Only GPT-5.4 Mini measured
SimpleBench55.1%Not measuredOnly GLM 5.1 measured
Chess puzzles20.0%23.0%GPT-5.4 Mini
Mystery game puzzlesNot measured11.0%Only GPT-5.4 Mini measured
LMArena Text: hard prompts14731424GLM 5.1
LMArena Text: expert14781435GLM 5.1
LMArena Text: hard prompts in English14821420GLM 5.1
LMArena Vision: diagramsNot measured1266Only GPT-5.4 Mini measured
LMArena Vision: homeworkNot measured1285Only GPT-5.4 Mini measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index42
Math benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
AIME91.9%95.6%GPT-5.4 Mini
OTIS Mock AIME93.3%88.9%GLM 5.1
FrontierMath, tiers 1 to 336.8%51.2%GPT-5.4 Mini
FrontierMath, tier 4Not measured9.8%Only GPT-5.4 Mini measured
ProofBench22.2%21.0%GLM 5.1
LMArena Text: math14731418GLM 5.1
LMArena Text: mathematical work14701429GLM 5.1
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index72
Knowledge benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
MMLU Pro86.9%84.5%GLM 5.1
LegalBench (Vals AI)84.4%Not measuredOnly GLM 5.1 measured
CaseLaw (Vals AI)51.5%51.7%GPT-5.4 Mini
CorpFin (Vals AI)64.5%60.9%GLM 5.1
TaxEval (Vals AI)71.2%71.2%GPT-5.4 Mini
MortgageTax (Vals AI)Not measured63.5%Only GPT-5.4 Mini measured
MedCode (Vals AI)41.6%Not measuredOnly GLM 5.1 measured
SimpleQA Verified34.0%29.4%GLM 5.1
LMArena Text: science14781417GLM 5.1
LMArena Text: medicine and healthcare14741395GLM 5.1
LMArena Text: legal and government14651414GLM 5.1
LMArena Text: business and finance14521418GLM 5.1
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
Design Arena: websites1290Not measuredOnly GLM 5.1 measured
Design Arena: UI components1292Not measuredOnly GLM 5.1 measured
Design Arena: game dev1265Not measuredOnly GLM 5.1 measured
Design Arena: data viz1366Not measuredOnly GLM 5.1 measured
Design Arena: 3D1336Not measuredOnly GLM 5.1 measured
Design Arena: all code categories1268Not measuredOnly GLM 5.1 measured
Design Arena: SVG1217Not measuredOnly GLM 5.1 measured
Design Arena: ASCII art1142Not measuredOnly GLM 5.1 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index181
General benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
Public Benefits Bench (Vals AI)61.8%Not measuredOnly GLM 5.1 measured
SAGE (Vals AI)Not measured50.8%Only GPT-5.4 Mini measured
MedScribe (Vals AI)72.3%Not measuredOnly GLM 5.1 measured
Vals Multimodal IndexNot measured54.2%Only GPT-5.4 Mini measured
IFBench76.3%73.3%GLM 5.1
Long context reasoning (AA-LCR)73.7%77.0%GPT-5.4 Mini
DTBenchNot measured80.0%Only GPT-5.4 Mini measured
LMCANot measured40.8%Only GPT-5.4 Mini measured
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
LMArena Text14631412GLM 5.1
LMArena Text: instruction following14531405GLM 5.1
LMArena Text: creative writing14531370GLM 5.1
LMArena VisionNot measured1245Only GPT-5.4 Mini measured
LMArena Text: English14761412GLM 5.1
LMArena Text: non-English14481405GLM 5.1
LMArena Text: Chinese15151446GLM 5.1
LMArena Text: German14671408GLM 5.1
LMArena Text: Japanese14351375GLM 5.1
LMArena Text: Korean14241370GLM 5.1
LMArena Text: French14701441GLM 5.1
LMArena Text: Spanish14681405GLM 5.1
LMArena Text: Russian14541417GLM 5.1
LMArena Text: Polish14491415GLM 5.1
LMArena Text: multi-turn14731429GLM 5.1
LMArena Text: longer queries14671408GLM 5.1
LMArena Text: writing and language14541393GLM 5.1
LMArena Text: entertainment and media14421373GLM 5.1
LMArena Vision: EnglishNot measured1244Only GPT-5.4 Mini measured
LMArena Vision: ChineseNot measured1286Only GPT-5.4 Mini measured
LMArena Vision: reading textNot measured1253Only GPT-5.4 Mini measured
LMArena Vision: humorNot measured1235Only GPT-5.4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only GPT-5.4 Mini measured
LMArena Vision: creative writingNot measured1222Only GPT-5.4 Mini measured
Neither model has a result on the other 13 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GLM 5.1 and GPT-5.4 Mini
BenchmarkGLM 5.1GPT-5.4 MiniLeader
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 5.1$0.0036Fits in one request
GPT-5.4 Mini$0.0030Fits in one request

GPT-5.4 Mini costs less

Repository review

50K input + 3K output tokens

GLM 5.1$0.083Fits in one request
GPT-5.4 Mini$0.051Fits in one request

GPT-5.4 Mini costs less

Agent loop

200K input + 10K output tokens

GLM 5.1$0.324Exceeds the context window
GPT-5.4 Mini$0.195Fits in one request

GPT-5.4 Mini 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 5.1 and GPT-5.4 Mini
SpecificationZ.ai GLM 5.1OpenAI GPT-5.4 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 7, 2026March 17, 2026
Context window205K400K
Input $/Mtok$1.40$0.75
Output $/Mtok$4.40$4.50
Coding index44.028.2
Independent measurements behind it11
Cost per solved task$0.60$0.70
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.1 better than GPT-5.4 Mini for coding?

Pick GLM 5.1 for coding: it scores 44.0 on the Vibe Coding Index against 28.2 for GPT-5.4 Mini. Pick GPT-5.4 Mini when the context window is larger, 400K against 205K tokens, or when what matters is AA Coding Index or LiveCodeBench (Vals AI), where it leads.

Which is cheaper, GLM 5.1 or GPT-5.4 Mini?

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, GLM 5.1 costs $0.60 and GPT-5.4 Mini $0.70.

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

GPT-5.4 Mini, with 400K tokens against 205K.

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

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

Compare next