Skip to content

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

GLM 4.7

$0.60 in
$2.20 out
205K context

GLM 5.2

$0.62 in
$2.42 out
1.05M context

Side by side

0.00 the better figure in a row
GLM 4.7 and GLM 5.2 specifications side by side
SpecificationGLM 4.7GLM 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.

Check the provider's pageToken counts are estimates, and the two models count tokens differently.
Cost of the same task on GLM 4.7 and GLM 5.2
TaskGLM 4.7GLM 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
GLM 4.7 details

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
GLM 5.2 details

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.

Comparison questions

Is GLM 4.7 cheaper than GLM 5.2?

Yes, GLM 4.7 is the cheaper of the two. GLM 4.7 costs $0.60 per 1M input tokens and $2.20 per 1M output tokens; GLM 5.2 costs $0.62 and $2.42 as checked on 22 Nov 2026.

Which has the larger context window, GLM 4.7 or GLM 5.2?

GLM 5.2, at 1,048,576 tokens against 204,800 for GLM 4.7.

Which is better for coding, GLM 4.7 or GLM 5.2?

This page does not rank models on quality, and it does not repeat either maker's claims. The table shows what each accepts, supports and costs; the reliable test is your own task: give both the same piece of code and compare the answers.

Can I use both GLM 4.7 and GLM 5.2?

Neither is offered in the Upend chat today. Both are listed in the catalog through OpenRouter, with the figures shown here.

Find the model for your task.

Every comparison is computed from the live catalog.

Sign in to Upend

Use an account you already have, or get a one-time code by email.

Use a password instead

For accounts that already have a password. Forgotten it? An emailed code signs you in just the same.