GLM-5.1 vs GLM-5.2
Compare GLM-5.1 from Z.ai (Zhipu) and GLM-5.2 from Z.ai (Zhipu) on price, context length and features. Use both through one Yunshu Router API key.
glm-5.1glm-5.2| Model |
Change model
|
Change model
|
|---|---|---|
| Good for | Coding agents · Hard reasoning | Coding agents · Hard reasoning · Long context |
| Overview | ||
| Model ID | glm-5.1 | glm-5.2 |
| Availability | Available | Available |
| Context length | 31K tokens | 128K tokens |
| Reasoning | Can be switched off | Can be switched off |
| Reads | text | text |
| Writes | text | text |
| Tool calling | Yes | Yes |
| Price per 1M tokens | ||
| Input | $0.6438 | $0.8584 |
| Output | $2.5753 | $3.0045 |
| Cached input | $0.1395 | $0.2146 |
Analysis
GLM-5.1 vs GLM-5.2: side-by-side summary
GLM-5.1 and GLM-5.2 are both available through the Yunshu Router API, so switching between them is a change of model ID, not a new integration.
GLM-5.1, from Z.ai (Zhipu), has a 31K-token context window and is priced at $0.6438 per 1M input tokens and $2.5753 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).
GLM-5.2, from Z.ai (Zhipu), has a 128K-token context window and is priced at $0.8584 per 1M input tokens and $3.0045 per 1M output tokens on Yunshu Router (prices as of 2026-11-21).
| Attribute | GLM-5.1 | GLM-5.2 |
|---|---|---|
| Context window | 31K tokens | 128K tokens |
| Price | $0.6438 / M input, $2.5753 / M output | $0.8584 / M input, $3.0045 / M output |
| Provided by | Z.ai (Zhipu) | Z.ai (Zhipu) |
| Model page | GLM-5.1 details, setup and pricing | GLM-5.2 details, setup and pricing |
USD per 1M tokens, prices as of 2026-11-21. Input types are what each model's maker lists. "Highlight best" marks the lowest price and the largest context among the models shown, in green.