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.
| Spec | Phi 4 | GLM 4.5 |
|---|---|---|
| Provider | Microsoft | Z.ai |
| Input / 1M tokens | $0.07 | $0.60 |
| Output / 1M tokens | $0.14 | $2.20 |
| Context window | 16K | 131K |
| Parameters | — | 355B |
| Open weights | — | Yes |
| Released | — | Aug 2025 |
| GPQA Diamond score | 56.1 | — |
| Epoch Capabilities Index score | 130 | — |
| LMArena (Chatbot Arena) Elo score | 1217 | 1430 |
| 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.