The Known Good Updated 25 Jul 2026
Microsoft: Phi 4 vs Z.ai: GLM 5.1 ·Microsoft vs Z.ai

Microsoft: Phi 4 vs Z.ai: GLM 5.1 — head-to-head comparison

Microsoft: Phi 4 profile Z.ai: GLM 5.1 profile All comparisons
Microsoft: Phi 4 — Microsoft
Quality
#50 of 61
33based on 3 of 6 evaluations
Known Good Index
Speed
#142 of 316
56.1
Output tokens per second
Price
#40 of 340
$0.09
Blended per 1M tokens
In $0.07 · Out $0.14
Cache hit price
unranked
per 1M tokens
Context
#334 of 345
16k
tokens (~25 pages)
Z.ai: GLM 5.1 — Z.ai
Quality
#12 of 61
88based on 3 of 6 evaluations
Known Good Index
Speed
#154 of 316
53.4
Output tokens per second
Price
#221 of 340
$1.48
Blended per 1M tokens
In $0.97 · Out $3.04
Cache hit price
#136 of 206
$0.18
per 1M tokens (−81%)
Context
#195 of 345
205k
tokens (~300 pages)
Summary

On the Known Good Index, Microsoft: Phi 4 scores 33 and Z.ai: GLM 5.1 scores 88 — a 55-point lead for Z.ai: GLM 5.1. They share 2 published evaluations, with Microsoft: Phi 4 ahead on 0 and Z.ai: GLM 5.1 ahead on 2.

Blended pricing is $0.09 per 1M tokens for Microsoft: Phi 4 and $1.48 for Z.ai: GLM 5.1 — Microsoft: Phi 4 is about 17.0× cheaper.

Throughput is 56 tokens per second for Microsoft: Phi 4 and 53 for Z.ai: GLM 5.1, with time to first token at 0.2s and 1.9s. Microsoft: Phi 4 accepts 16k tokens of context against 205k.

Microsoft: Phi 4 is open weights under Open weights (unrestricted); Z.ai: GLM 5.1 is proprietary. 19 tracked hosts serve one or both, and 1 serve both.

Generated from tracked data on 25 Jul 2026 · how these comparisons are computed →

At a glance
MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Known Good Index 33 based on 3 of 6 evaluations 88 based on 3 of 6 evaluations
Blended $/1M $0.09 $1.48
Output tok/s 56 53
Context window 16k 205k
Providers 1 19
Jump to section

Quality

Known Good Index and the capability indices, side by side

IndicesComponents
Index scores

Each index is min-max normalised across tracked models and scaled 0–100 from published evaluations. We do not run these evaluations.

MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Known Good Index 33 88
Mathematics Index 39 92
Science Index 53 89
Reasoning Index 47
Agentic Index 82
Openness Index 60 5
The Known Good

Quality Breakdown

Every evaluation both models report a published score for

Evaluations both models report

Bar = Microsoft: Phi 4 · marker = Z.ai: GLM 5.1 · scores ingested from Epoch AI (CC-BY 4.0)

GPQA Diamond56 / 85
MATH / AIME14 / 92

Right-hand figures read Microsoft: Phi 4 / Z.ai: GLM 5.1. Microsoft: Phi 4 leads on 0 of 2, Z.ai: GLM 5.1 on 2.

The Known Good

Arena Elo

Human preference rating from blind pairwise votes

Arena ratings

Elo from blind pairwise votes, ingested from Arena. Higher is better.

MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Text Arena 1,217 1,465
Text Arena (style controlled) 1,256 1,470
The Known Good

Price & Cost

Published API pricing by token type

Per token typeCache discount
Published pricing

USD per 1M tokens. Blended is a 3:1 input:output mix. Live from OpenRouter, cross-checked against models.dev. Lower is better.

MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Input $/1M $0.07 $0.97
Output $/1M $0.14 $3.04
Blended $/1M $0.09 $1.48
Cache read $/1M $0.179
The Known Good
We publish blended price rather than cost-per-task. Cost-per-task requires token counts from an evaluation suite we do not run. Blended price is computed from published rates and is fully reproducible — see the pricing methodology.

Context Window

Maximum input accepted and maximum output emitted

Context and output limits

Provider-declared limits, from metadata via models.dev and OpenRouter. Higher is better.

MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Context window 16k 205k
Max output tokens 16k 128k
The Known Good

Speed & Latency

Median throughput and time to first token across hosting providers

Output speedTime to first token
Throughput and latency

Medians across all tracked providers, derived from OpenRouter endpoint telemetry.

MetricMicrosoft: Phi 4Z.ai: GLM 5.1
Output tokens/s 56 53
Time to first token 0.2s 1.9s
The Known Good

Providers

Which hosts serve each model, and at what price and speed

19 hosts · 1 serve both
Full provider benchmarks →
Provider Microsoft: Phi 4 blendedMicrosoft: Phi 4 tok/s Z.ai: GLM 5.1 blendedZ.ai: GLM 5.1 tok/s
DeepInfra $0.09 70 $1.66 66
CoreWeave $2.15 120
Friendli $2.15 109
Crusoe $2.00 91
Fireworks $2.15 90
Venice $2.37 80
GMICloud $1.50 77
Parasail $2.15 71
SiliconFlow $1.83 62
Novita $2.13 52
Baidu · first party $1.50 51
Wafer $1.55 50
Chutes $1.50 48
AtlasCloud $1.94 42
Z.AI · first party $2.15 37
Nebius $2.15 26
StreamLake $1.48 25
DigitalOcean $1.81 21
Phala $1.96

Per-host pricing and telemetry from OpenRouter. A dash means that host does not serve that model.

The Known Good
Sources for this page
Pricing & providers — OpenRouter Metadata — models.dev Benchmarks — Epoch AI (CC-BY 4.0)Elo — Arena Full attribution →