Across 3 comparable benchmarks, Phi-4-mini-instruct (3.8B) has better reported results on 2 and worse on 1.
Moderate evidence3 of 3 shared results countedHow we compare
GLM4 is no longer available through its official API. API prices for this version are not shown.
Price basis: Listed rates vs standard rates. The price section below shows the applicable periods.
| Fact | GLM4 | Phi-4-mini-instruct (3.8B) |
|---|---|---|
| Context window | 128K tokens | 128K tokens |
| Input / 1M | — | $0.075 |
| Output / 1M | — | $0.300 |
| Blended (4:1) | — | $0.120 |
| Status | Retired | Available |
| Released | January 16, 2024 | February 27, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 2 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Phi-4-mini-instruct (3.8B) ahead on 1 of 1 counted
Phi-4-mini-instruct (3.8B) ahead on 1 of 1 counted
No shared comparable results for Abstract reasoning, Science & health, Computer & tool use, Research & search, Long context, Multimodal, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show GLM4 relative to Phi-4-mini-instruct (3.8B). Reading the results
| Benchmark | GLM4 | Phi-4-mini-instruct (3.8B) | Gap |
|---|---|---|---|
| HumanEvalCode Generation & Editing · Accuracy | 72.0Historical | 74.4≠Normal · no tools | −2.4 pts#48 vs #42 of 100 |
| GSM8KMathematics · Accuracy | 87.6Historical | 88.6≠Normal · no tools | −1.0 pts#19 vs #17 of 67 |
| MMLUKnowledge Exams · Accuracy | 81.5Historical | 67.3≠Normal · no tools | +14.2 pts#43 vs #72 of 114 |
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix · 5% steps
Blended price = effective input rate at 90% cache hits × 80% + output rate × 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
GLM4: Listed text rates; pricing tier not confirmed.
Phi-4-mini-instruct (3.8B): Standard pricing. Azure AI Foundry (Phi-4-mini (128K)) verified 2026-11-14
| Price / 1M tokens | GLM4 | Phi-4-mini-instruct (3.8B) | Ratio |
|---|---|---|---|
| Input | — | $0.075 | — |
| Output | — | $0.30 | — |
| Cached input | — | — | — |
| Cache write | — | — | — |
| Blended | — | $0.12 | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
| Attribute | GLM4 | Phi-4-mini-instruct (3.8B) |
|---|---|---|
| Availability | Retired | Available |
| Provider | Zhipu AI | Microsoft |
| Model type | Foundation model | Chat model |
| First release | January 16, 2024 | February 27, 2025 |
| Context window | 128K tokens | 128K tokens |
| Total parameters | — | 3.8B |
| Architecture | Undisclosed | Dense |
| Documented capabilities | Multilingual | Multilingual |
| Input modalities | Text | Text |
| Output modalities | Text | Text |
| Weights | Closed / API only | Open weights |
| Licence | — | MIT License |
| Commercial use | Proprietary | Commercial use allowed |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on GLM4 vs Phi-4-mini-instruct (3.8B).
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.