GLM 4.7

Z.ai (Zhipu)z-ai/glm-4.7Providers: 7
Inputi$0.60per 1M tokens
Outputi$2.20per 1M tokens
Contexti200K204,800 tokens
ReleasedDec 22, 2025Max output: 128K

Where it stands

Quality in independent tests against price, next to 135 other models. Up means more capable, left means cheaper.

100110120130140150160170$0.01$0.03$0.1$0.3$1$3$10$30$100Overall indexPrice per million tokens, log scale (3 parts input to 1 part output)↖ Cheaper and smarterGLM 4.7
Scores: Epoch AI (CC BY 4.0). Prices: OpenRouter. View as a table

About this model

GLM 4.7 is an AI model from Z.ai (Zhipu), made available through the API on December 22, 2025. It can read up to 204,800 tokens in one request, roughly 384 pages of text, and write up to 131,072 tokens in a single answer.

Through the API it costs $0.60 per million input tokens and $2.20 per million output tokens. Its pricing sits in the middle of the market.

It supports extended reasoning: it can "think" step by step before answering, which helps on maths, code and complex questions. It can call tools and functions, so developers can connect it to search, databases or other software. Its weights are openly published (zai-org/GLM-4.7), so it can also be downloaded and run on your own hardware.

Quality scores

Rankings →
143.5Overall index · #81 of 136
  • GPQA DiamondVery hard multiple-choice questions in biology, physics and chemistry, written by PhD experts. Random guessing scores 25%.83.3%#59 of 116
  • AIME mathCompetition-level math problems in the style of the American Invitational Mathematics Examination. Share solved.83.3%#62 of 112
  • SimpleQA VerifiedShort factual questions. Measures how often the model gets facts right instead of making something up.32.2%#51 of 69

Benchmark data: Epoch AI, licensed CC BY 4.0

Where to use it

Companies that serve this model through an API: 7. Prices per million tokens, cheapest first.

ProviderInputiOutputiContextiUptime (24 h)i
DeepInfraCheapestfp4
$0.40$1.75198K90.2%
Venicefp4
$0.40$1.93198K88.8%
AtlasCloudfp8
$0.52$1.85198K86.9%
Novitafp8
$0.54$1.98200K99.5%
Google
$0.60$2.20200K100.0%
Z.AIOfficialfp4
$0.60$2.20198K99.7%
Mancer 2fp4
$0.70$2.50128K83.0%

Availability and prices come from OpenRouter’s public API and are refreshed daily. Uptime is the share of successful requests over the last 24 hours. Some providers run a compressed version of open models (fp8, int4), which is cheaper but can be slightly less accurate.

Use it in your code

Call GLM 4.7 through OpenRouter’s OpenAI-compatible API: create a key on openrouter.ai, then run one of these examples.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-4.7", "messages": [{"role": "user", "content": "Hello! What can you do?"}]}'

The same code works with every model on this site: only the model ID changes. Many labs also offer their own API and SDK.

What it costs in practice

  • 1,000 chat replies
    ≈ 500 tokens in, 300 out each
    $0.96
  • Summarise a 100-page document
    ≈ 50,000 tokens in, 1,000 out
    $0.032
  • An app with 10,000 requests a day for a month
    ≈ 1,000 tokens in, 400 out each
    $444

Cost calculator →

Similar-priced alternatives

ModelInputiOutputiContexti
$0.60$2.40256KCompare with ⇄
$0.60$61MCompare with ⇄
Kimi K2.6Moonshot AI
$0.65$3.41256KCompare with ⇄
Qwen3.5 397B A17BAlibaba Qwen
$0.55$3.50256KCompare with ⇄
$0.66$1.981MCompare with ⇄
Aion 3.5 MiniAion Labs
$0.70$1.40256KCompare with ⇄

News about Z.ai (Zhipu)

See all →

Frequently asked questions

How much does GLM 4.7 cost?
GLM 4.7 costs $0.60 per million input tokens and $2.20 per million output tokens through the API. For example, 1,000 chat replies of about 500 tokens in and 300 out cost around $0.96.
What is the context window of GLM 4.7?
GLM 4.7 can read up to 204,800 tokens in one request, about 384 pages of text. It can write up to 131,072 tokens in a single answer.
Is GLM 4.7 open source?
Yes. Its weights are published (zai-org/GLM-4.7), so you can download it and run it on your own hardware, or use it through one of 7 API providers.
Who makes GLM 4.7?
GLM 4.7 is made by Z.ai (Zhipu). It became available through the API on December 22, 2025.
How good is GLM 4.7?
GLM 4.7 has an overall index of 143.5 in Epoch AI’s independent tests, ranking #81 of 136 models we track.
Can GLM 4.7 read images?
No. GLM 4.7 only accepts text as input.
What are the alternatives to GLM 4.7?
Models with a similar price from other companies include Nemotron 3 Ultra, Palmyra X5 and Kimi K2.6. You can compare them side by side on this page.