Enter opens the highlighted result. Esc closes.

GLM 5.1 vs o4 Mini

GLM 5.1 leads o4 Mini on the Artificial Analysis Intelligence Index, 26.1 to 16.7, at about the same output price ($4.40 vs $4.40 per million). Updated October 21, 2026; 58 benchmarks have a result for both.

GLM 5.1Z.ai
Coding
49.2
Overall
57.5
Output $/M
$4.40
55
o4 MiniOpenAI
Coding
No data
Overall
43.0
Output $/M
$4.40
3
vs boards won of 58 shared

GLM 5.1 or o4 Mini: which to pick

Only GLM 5.1 has a coding score, 49.2 on the Vibe Coding Index; o4 Mini has none, so the two cannot be ranked on coding.

Pick o4 Mini for work measured by LiveCodeBench (Vals AI) or Chess puzzles, where it leads.

Shared results
58
GLM 5.1 only
31
o4 Mini only
40
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 5.1 49.2 from 3 benchmarks, o4 Mini not benchmarked.
Widest category
Web design, 42.2 points apart on average over 6 shared benchmarks.
Widest single gap
Design Arena: 3D: GLM 5.1 1336 against o4 Mini 854, 60.3 points apart on a 0 to 100 scale.
Output price
Both cost $4.40 per million output tokens.
Context window
GLM 5.1 takes 205K tokens, o4 Mini 200K.

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.1Barso4 MiniTies
Coding41
Intelligence20
Agentic work10
Reasoning81
Math50
Knowledge91
Web design60
General200
All shared boards553
CodingLike-for-likeSix of these boards feed the Vibe Coding Index41
Coding benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
Aider polyglotNot measured72.0%Only o4 Mini measured
SWE-bench VerifiedNot measured64.6%Only o4 Mini measured
SWE-bench MultimodalNot measured33.9%Only o4 Mini measured
LMArena WebDev1508Not measuredOnly GLM 5.1 measured
AA Coding Index55.8Not measuredOnly GLM 5.1 measured
LiveCodeBench (Vals AI)81.4%82.2%o4 Mini
SWE-bench Verified (Vals AI)76.4%Not measuredOnly GLM 5.1 measured
Vibe Code Bench (Vals AI)31.5%Not measuredOnly GLM 5.1 measured
Code migration (Vals AI)25.8%Not measuredOnly GLM 5.1 measured
ProgramBench (Vals AI)0.0%Not measuredOnly GLM 5.1 measured
Terminal-Bench 2.1 (Vals AI)56.9%Not measuredOnly GLM 5.1 measured
LiveCodeBench (Artificial Analysis run)Not measured85.9%Only o4 Mini measured
SciCode44.8%Not measuredOnly GLM 5.1 measured
Terminal-Bench Hard (Artificial Analysis run)43.2%15.2%GLM 5.1
GSO-BenchNot measured3.6%Only o4 Mini measured
WeirdML57.1%52.6%GLM 5.1
ALE-Bench887.1Not measuredOnly GLM 5.1 measured
LMArena Text: coding14851368GLM 5.1
LMArena Text: software and IT14841367GLM 5.1
LMArena WebDev: React1505Not measuredOnly GLM 5.1 measured
LMArena WebDev: HTML1508Not measuredOnly GLM 5.1 measured
SciCodeNot measured10.8%Only o4 Mini measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
AA Intelligence Index26.116.7GLM 5.1
Epoch Capabilities Index149.8145.5GLM 5.1
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
AA Agentic Index23.9Not measuredOnly GLM 5.1 measured
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 apps1180Not 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 slides1188Not measuredOnly GLM 5.1 measured
Design Arena: spreadsheets1315Not measuredOnly GLM 5.1 measured
Finance Agent (Vals AI)44.8%Not measuredOnly GLM 5.1 measured
Legal Research Bench (Vals AI)27.9%Not measuredOnly GLM 5.1 measured
τ²-Bench Telecom97.7%55.6%GLM 5.1
APEX-Agents40.9%Not measuredOnly GLM 5.1 measured
METR time horizonsNot measured63.9%Only o4 Mini measured
Vending-Bench 2$5,634Not measuredOnly GLM 5.1 measured
Berkeley Function Calling Leaderboard (BFCL)Not measured53.2%Only o4 Mini measured
Neither model has a result on the other 24 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index81
Reasoning benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
GPQA Diamond84.5%74.5%GLM 5.1
MMMU Pro (Vals AI)Not measured79.7%Only o4 Mini measured
GPQA Diamond (Artificial Analysis run)86.8%78.4%GLM 5.1
Humanity's Last Exam (Artificial Analysis run)30.1%16.5%GLM 5.1
GPQA Diamond (Epoch AI run)89.9%79.6%GLM 5.1
ARC-AGINot measured58.7%Only o4 Mini measured
ARC-AGI-2Not measured6.1%Only o4 Mini measured
SimpleBench55.1%38.7%GLM 5.1
Chess puzzles20.0%22.0%o4 Mini
Mystery game puzzlesNot measured5.0%Only o4 Mini measured
VPCTNot measured57.5%Only o4 Mini measured
LMArena Text: hard prompts14731351GLM 5.1
LMArena Text: expert14781343GLM 5.1
LMArena Text: hard prompts in English14821366GLM 5.1
LMArena Vision: diagramsNot measured1197Only o4 Mini measured
LMArena Vision: homeworkNot measured1234Only o4 Mini measured
Kagi LLM BenchmarkNot measured67.6%Only o4 Mini measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index50
Math benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
AIME91.9%83.7%GLM 5.1
MATH 500 (Vals AI)Not measured94.2%Only o4 Mini measured
MGSM (Vals AI)Not measured93.4%Only o4 Mini measured
AA Math IndexNot measured90.7Only o4 Mini measured
AIME 2025 (Artificial Analysis run)Not measured90.7%Only o4 Mini measured
OTIS Mock AIME93.3%81.7%GLM 5.1
FrontierMath, tiers 1 to 336.8%36.1%GLM 5.1
FrontierMath, tier 4Not measured4.9%Only o4 Mini measured
ProofBench22.2%Not measuredOnly GLM 5.1 measured
MATH level 5Not measured97.8%Only o4 Mini measured
LMArena Text: math14731389GLM 5.1
LMArena Text: mathematical work14701379GLM 5.1
Neither model has a result on the other 1 board here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index91
Knowledge benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
MMLU Pro86.9%80.6%GLM 5.1
LegalBench (Vals AI)84.4%79.2%GLM 5.1
CaseLaw (Vals AI)51.5%Not measuredOnly GLM 5.1 measured
CorpFin (Vals AI)64.5%59.0%GLM 5.1
TaxEval (Vals AI)71.2%74.8%o4 Mini
MortgageTax (Vals AI)Not measured64.8%Only o4 Mini measured
MedQA (Vals AI)Not measured96.0%Only o4 Mini measured
MedCode (Vals AI)41.6%33.8%GLM 5.1
MMLU Pro (Artificial Analysis run)Not measured83.2%Only o4 Mini measured
SimpleQA Verified34.0%19.6%GLM 5.1
GeoBenchNot measured64.0%Only o4 Mini measured
LMArena Text: science14781354GLM 5.1
LMArena Text: medicine and healthcare14741361GLM 5.1
LMArena Text: legal and government14651350GLM 5.1
LMArena Text: business and finance14521325GLM 5.1
FACTS Benchmark SuiteNot measured28.1%Only o4 Mini measured
Neither model has a result on the other 2 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index60
Web design benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
Design Arena: websites1290985GLM 5.1
Design Arena: UI components1292983GLM 5.1
Design Arena: game dev12651003GLM 5.1
Design Arena: data viz1366990GLM 5.1
Design Arena: 3D1336854GLM 5.1
Design Arena: all code categories1268976GLM 5.1
Design Arena: SVG1218Not 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 index200
General benchmarks for GLM 5.1 and o4 Mini
BenchmarkGLM 5.1o4 MiniLeader
Public Benefits Bench (Vals AI)61.8%Not measuredOnly GLM 5.1 measured
SAGE (Vals AI)Not measured41.1%Only o4 Mini measured
MedScribe (Vals AI)72.3%69.1%GLM 5.1
IFBench76.3%68.7%GLM 5.1
Long context reasoning (AA-LCR)73.7%61.0%GLM 5.1
DTBenchNot measured77.6%Only o4 Mini measured
LMCANot measured26.5%Only o4 Mini measured
Fiction.LiveBenchNot measured77.8%Only o4 Mini measured
Creative writing (Lech Mazur)Not measured75.0%Only o4 Mini measured
ExploitBench18.1%Not measuredOnly GLM 5.1 measured
LMArena Text14631353GLM 5.1
LMArena Text: instruction following14531320GLM 5.1
LMArena Text: creative writing14531294GLM 5.1
LMArena VisionNot measured1194Only o4 Mini measured
LMArena Text: English14761367GLM 5.1
LMArena Text: non-English14481337GLM 5.1
LMArena Text: Chinese15151354GLM 5.1
LMArena Text: German14671336GLM 5.1
LMArena Text: Japanese14351308GLM 5.1
LMArena Text: Korean14241312GLM 5.1
LMArena Text: French14701364GLM 5.1
LMArena Text: Spanish14681346GLM 5.1
LMArena Text: Russian14541334GLM 5.1
LMArena Text: Polish14491358GLM 5.1
LMArena Text: multi-turn14731350GLM 5.1
LMArena Text: longer queries14671315GLM 5.1
LMArena Text: writing and language14541316GLM 5.1
LMArena Text: entertainment and media14421308GLM 5.1
LMArena Vision: EnglishNot measured1200Only o4 Mini measured
LMArena Vision: ChineseNot measured1218Only o4 Mini measured
LMArena Vision: reading textNot measured1197Only o4 Mini measured
LMArena Vision: humorNot measured1199Only o4 Mini measured
LMArena Vision: captioningNot measured1204Only o4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only o4 Mini measured
LMArena Vision: creative writingNot measured1166Only o4 Mini measured
Neither model has a result on the other 11 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 o4 Mini
BenchmarkGLM 5.1o4 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
o4 Mini$0.0033Fits in one request

o4 Mini costs less

Repository review

50K input + 3K output tokens

GLM 5.1$0.083Fits in one request
o4 Mini$0.068Fits in one request

o4 Mini costs less

Agent loop

200K input + 10K output tokens

GLM 5.1$0.324Exceeds the context window
o4 Mini$0.264Exceeds the context window

o4 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 o4 Mini
SpecificationZ.ai GLM 5.1OpenAI o4 Mini
MakerZ.aiOpenAI
WeightsOpen weightsNo public weights listed
ReleasedApril 7, 2026April 16, 2025
Context window205K200K
Input $/Mtok$1.40$1.10
Output $/Mtok$4.40$4.40
Coding index49.2Not benchmarked
Independent measurements behind it30
Cost per solved task$0.60Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GLM 5.1 better than o4 Mini for coding?

Only GLM 5.1 has a coding score, 49.2 on the Vibe Coding Index; o4 Mini has none, so the two cannot be ranked on coding. Pick o4 Mini for work measured by LiveCodeBench (Vals AI) or Chess puzzles, where it leads.

Which is cheaper, GLM 5.1 or o4 Mini?

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens; o4 Mini costs $1.10 and $4.40. Cost per solved task is known for GLM 5.1 only.

Which has the bigger context window, GLM 5.1 or o4 Mini?

GLM 5.1, with 205K tokens against 200K.

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

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

Compare next