LLMCost
z-ai

Z.ai: GLM 4.7 API Pricing

Z.ai: GLM 4.7 costs $0.540 per 1M input tokens and $1.98 per 1M output tokens (cache reads: $0.099). Context window: 205K. Prices verified 2026-10-21 · source

🔔 Price alerts coming soon

Alternatives to consider

💰 Save money
inclusionAI: Ling 3.0 Flash
$0.021 in / $0.063 out
Quality score: 20.1

97% cheaper with nearly identical quality (20.1 vs 22.2)

⬆️ Upgrade smart
DeepSeek: DeepSeek V4 Pro 0813
$0.660 in / $1.98 out
Quality score: 53

+30.8 quality points for 10% more

🏠 Same provider
Z.ai: GLM 5.3 Flash (batch)
$0.050 in / $0.180 out
Quality score: 41.8

Cheapest z-ai model — 91% less per month

Price history
2026-08-23 → 2026-10-21 · 59 daily snapshots
inputoutputinput +35% over windowoutput +13.1%

Rebuilt daily from our snapshot archive — the chart appears once a model has 5+ snapshots of history.

Community adoption
84K
HF downloads
2K
Likes

High adoption means battle-tested weights, more fine-tunes/quants, and faster bug fixes. View on HuggingFace →

Pricing behavior
4 price changes in the last 59 daily snapshots
Changes roughly every 22 days
Last move (2026-10-17): input -10%
Net input drift: +35% since 2026-08-23

From our own daily snapshot archive — independent of provider announcements.

Intelligence & capability
via Artificial Analysis
22.2
Intelligence index · top 49% of 288 scored
45.3
Coding index
$0.9
Blended $/1M (3:1 in:out)

Intelligence measures reasoning/knowledge/coding benchmarks. A high score with a low blended price = value pick; check the value chart to see where this model lands.

Input / 1M tokens
$0.540
Output / 1M tokens
$1.98
Context window
205K
Max output
131K

Token economics

Token typePricevs base input
Standard input$0.540—
Cache read$0.099−82%
Output$1.98—

Prompt caching stores repeated context server-side: reads cost far less, but writes carry a one-time premium.

Reasoning behavior
Mode: On by default (toggleable)

Higher effort = deeper thinking = more reasoning tokens billed as output.

What would Z.ai: GLM 4.7 cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$12.24
Coding agent5,0008,000 / 2,000$41.40
RAG pipeline30,0004,000 / 500$94.50
Doc summarizer2,00020,000 / 1,000$25.56

Estimates use list prices without prompt caching. Caching can cut input cost by up to 90% on repeated context.

About Z.ai: GLM 4.7

GLM-4.7 is Z.ai’s latest flagship model, featuring upgrades in two key areas: enhanced programming capabilities and more stable multi-step reasoning/execution. It demonstrates significant improvements in executing complex agent tasks while...

Compare Z.ai: GLM 4.7 with

Popular head-to-heads — see all on the comparisons index.

Frequently asked questions

How much does Z.ai: GLM 4.7 cost?

Z.ai: GLM 4.7 costs $0.540 per 1M input tokens and $1.98 per 1M output tokens; cached input tokens cost $0.099 per 1M. Verified 2026-10-21 — provider source.

What is the context window?

205K tokens, with up to 131K output tokens per response. That's roughly 256 pages of text in a single request.

Does it support prompt caching?

Yes — cached input is $0.099/1M, about 82% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.

What's a cheaper alternative?

ScaleDown: Summarize saves about 97% on a typical workload with comparable quality.

Official resources