Model comparison

GLM-5.1 vs Phi-4

GLM-5.1 is the stronger model overall, scoring 47.6 to 30.9 on the Noometry Index. Phi-4 costs 25× less per token, which makes it the better buy when GLM-5.1's lead doesn't matter for your workload.

Last verified . 21 shared benchmarks.

GLM-5.1 Z.ai (Zhipu)

47.6

Rank #51 Confirmed

Phi-4 Microsoft

30.9

Rank #269 Confirmed

Summary

  • They share 21 benchmarks with published results for both. GLM-5.1 scores higher in 9 categories and Phi-4 in 0 categories; 9 gaps are clear of the uncertainty.
  • The widest gap is in math, where GLM-5.1 leads 49.0 to 19.6.
  • The biggest single-benchmark swing is OTIS Mock AIME 2024-2025: 93.3% for GLM-5.1 and 13.8% for Phi-4.
  • Phi-4 is cheaper at $0.07 / $0.14 per million input/output tokens, against $1.40 / $4.40 for GLM-5.1.
  • GLM-5.1 accepts more context: 200K tokens versus 128K.

Side by side

GLM-5.1 and Phi-4 specifications
GLM-5.1Phi-4
ProviderZ.ai (Zhipu)Microsoft
Noometry Index47.630.9
Released2026-04-072024-12-11
WeightsOpenOpen
Context window200K128K
Max output131K4K
Input $ / M tokens$1.40$0.07
Output $ / M tokens$4.40$0.14
Results tracked4137

Sponsored placements are available on pages like this one. Advertise on Noometry

Category by category

Coding GLM-5.1 leads

GLM-5.1: 48.5 (#52), Phi-4: 33.8 (#237)

Coding benchmarks
BenchmarkGLM-5.1Phi-4
LMArena Coding14861231
SWE-bench Verified74.2%—
LMArena WebDev1509—
SciCode43.8%—
WeirdML57.1%—
BigCodeBench Instruct—45.5%
LiveBench Coding—30.7%
BigCodeBench Complete—55.4%
ALE-Bench887.1—

Agentic & Tool Use GLM-5.1 leads

GLM-5.1: 24.8 (#106), Phi-4: 22.6 (#120)

Agentic & Tool Use benchmarks
BenchmarkGLM-5.1Phi-4
APEX-Agents40.9%—
Berkeley Function Calling Leaderboard—28.8%
BALROG—11.6%
ExploitBench18.1%—
GBAEval0%—
Vending-Bench 25,634—

Reasoning GLM-5.1 leads

GLM-5.1: 38.2 (#57), Phi-4: 17.0 (#287)

Reasoning benchmarks
BenchmarkGLM-5.1Phi-4
Chess Puzzles19%1%
LMArena Hard Prompts14721220
Epoch Capabilities Index149.86130.43
SimpleBench55.1%—
NYT Connections (extended)77.7%—
CritPt4.6%—
Thematic Generalization69.8%—
LiveBench Reasoning—47.8%
LiveBench Data Analysis—45.2%
LiveBench—41.6%

Math GLM-5.1 leads

GLM-5.1: 49.0 (#48), Phi-4: 19.6 (#279)

Knowledge GLM-5.1 leads

GLM-5.1: 55.0 (#45), Phi-4: 32.5 (#204)

Knowledge benchmarks
BenchmarkGLM-5.1Phi-4
GPQA Diamond89.9%56.1%
LMArena Expert14771203
SimpleQA Verified34%—
Confabulations—29.4%
Vectara Hallucination Rate—3.7%
MMLU—84.8%

Multilingual GLM-5.1 leads

GLM-5.1: 55.2 (#34), Phi-4: 37.4 (#232)

Multilingual benchmarks
BenchmarkGLM-5.1Phi-4
LMArena Non-English14481197
LMArena Chinese15161211
LMArena French14781223
LMArena German14661222
LMArena Japanese14361158
LMArena Korean14231151
LMArena Russian14531209
LMArena Spanish14671234

Instruction Following GLM-5.1 leads

GLM-5.1: 76.5 (#41), Phi-4: 60.6 (#246)

Instruction Following benchmarks
BenchmarkGLM-5.1Phi-4
LMArena Instruction Following14511201
LiveBench Instruction Following—58.4%

Long Context GLM-5.1 leads

GLM-5.1: 44.9 (#51), Phi-4: 36.9 (#221)

Long Context benchmarks
BenchmarkGLM-5.1Phi-4
LMArena Longer Query14671217

Writing & Preference GLM-5.1 leads

GLM-5.1: 67.2 (#29), Phi-4: 40.7 (#239)

Writing & Preference benchmarks
BenchmarkGLM-5.1Phi-4
LMArena Text14621217
LMArena Creative Writing14541182
LMArena Multi-Turn14731206
Short-Story Creative Writing—62.6%
EQ-Bench Creative Writing1592—
LiveBench Language—25.6%

Frequently asked questions

Is GLM-5.1 better than Phi-4?

GLM-5.1 is the stronger model overall, scoring 47.6 to 30.9 on the Noometry Index. Phi-4 costs 25× less per token, which makes it the better buy when GLM-5.1's lead doesn't matter for your workload.

Which is cheaper, GLM-5.1 or Phi-4?

Phi-4 is cheaper. It lists at $0.07 per million input tokens and $0.14 per million output tokens; GLM-5.1 lists at $1.40 and $4.40.

Is GLM-5.1 or Phi-4 better for coding?

GLM-5.1 scores higher on coding benchmarks: 48.5 versus 33.8 in the Noometry coding category.

Which has the bigger context window?

GLM-5.1 does, with 200K tokens against 128K.

How many benchmarks do GLM-5.1 and Phi-4 share?

21 benchmarks have published results for both models. GLM-5.1 has 41 scored results on Noometry and Phi-4 has 37.

Related comparisons

Go deeper