GLM 4.7 vs GLM 5.2
GLM 4.7 (Z.ai) and GLM 5.2 (Z.ai) are listed at different prices. GLM 4.7 costs less: $0.60 per 1M input tokens and $2.20 per 1M output tokens, against $0.62 and $2.42 for GLM 5.2. GLM 5.2 has the larger context window, 1,048,576 tokens against 204,800 for GLM 4.7. Only GLM 5.2 supports a reasoning effort setting. Both accept text and produce text.
Z.ai: GLM 4.7 and Z.ai: GLM 5.2 both accept and produce text and support tools, structured outputs, response formats, and reasoning. GLM 4.7 has a 204,800-token context and 131,072-token output limit, while GLM 5.2 has a 1,048,576-token context and 943,718-token output limit.
Compared from catalog data checked
Side by side
0.00 the better figure in a row| Specification | GLM 4.7 | GLM 5.2 |
|---|---|---|
| Maker | Z.ai | Z.ai |
| Added to catalog | 22 Dec 2025 | 16 Jun 2026 |
| Input, per 1M tokens | $0.60 | $0.62 |
| Output, per 1M tokens | $2.20 | $2.42 |
| Cached input read, per 1M | $0.11 | $0.14 |
| Context windowTokens | 204,800 | 1,048,576 |
| Max outputTokens | 131,072 | 943,718 |
| Accepts | text | text |
| Produces | text | text |
| Tool calling | Yes | Yes |
| Structured outputs | Yes | Yes |
| Reasoning effort control | No | Yes |
List prices through OpenRouter, in US dollars. Each model's page has its variants, price history and sample outputs.
What the same task costs
List price for one request, from the token counts shown. The same four tasks are priced on every model page.
| Task | GLM 4.7 | GLM 5.2 |
|---|---|---|
| Answer a short question500 in / 300 out | $0.0010 | $0.0010 |
| Summarise a 50-page PDF25,000 in / 800 out | $0.017 | $0.017 |
| Review a 2,000-line source file30,000 in / 2,000 out | $0.022 | $0.023 |
| Read a 300-page contract set150,000 in / 1,500 out | $0.093 | $0.097 |
Which to choose
Choose GLM 4.7 if
- Input tokens cost less: $0.60 against $0.62 per 1M
- Output tokens cost less: $2.20 against $2.42 per 1M
- Cached input costs less: $0.11 against $0.14 per 1M
Choose GLM 5.2 if
- You need the larger context window: 1,048,576 tokens against 204,800
- You need longer answers in one response: 943,718 tokens against 131,072
- You want to set how much it reasons before it answers
Neither maker's quality claims are repeated here. The reliable test is your own task: ask both the same question and read the two answers.