Skip to content

Phi 4 vs GLM 4.5

Phi 4 is cheaper on output tokens, while GLM 4.5 offers a larger context window. Choose Phi 4 or GLM 4.5 based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecPhi 4GLM 4.5
ProviderMicrosoftZ.ai
Input / 1M tokens$0.07$0.60
Output / 1M tokens$0.14$2.20
Context window16K131K
Parameters—355B
Open weights—Yes
Released—Aug 2025
GPQA Diamond score56.1—
Epoch Capabilities Index score130—
LMArena (Chatbot Arena) Elo score12171430
SWE-bench Verified score—64.2

FAQ

Is Phi 4 or GLM 4.5 cheaper?

Phi 4 is cheaper on output tokens ($0.14 vs $2.20 per 1M).

Which has the larger context window, Phi 4 or GLM 4.5?

GLM 4.5 has the larger context window (131K tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.