LLMCost
z-ai

Z.ai: GLM 5.1 API Pricing

Z.ai: GLM 5.1 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens (cache reads: $0.260). Context window: 205K. Prices verified 2026-10-21 · source

🔔 Price alerts coming soon

Alternatives to consider

💰 Save money
DeepSeek: DeepSeek V4.1 Flash (batch)
$0.050 in / $0.150 out
Quality score: 24.7

97% cheaper with nearly identical quality (24.7 vs 26.1)

⬆️ Upgrade smart
OpenAI: GPT-5.6 Terra (batch)
$1.00 in / $6.00 out
Quality score: 42.1

+16 quality points for 5% more

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

Cheapest z-ai model — 96% less per month

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

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

Community adoption
578K
HF downloads
2K
Likes

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

Pricing behavior
20 price changes in the last 59 daily snapshots
Changes roughly every 6.3 days
Last move (2026-10-21): input +44.9%
Net input drift: +44.9% since 2026-08-23

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

Intelligence & capability
via Artificial Analysis
26.1
Intelligence index · top 38% of 288 scored
55.8
Coding index
23.9
Agentic index
$2.15
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
$1.40
Output / 1M tokens
$4.40
Context window
205K
Max output
131K

Token economics

Token typePricevs base input
Standard input$1.40—
Cache read$0.260−81%
Output$4.40—

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 5.1 cost you per month?

WorkloadRequests/moAvg tokens (in/out)Est. monthly cost
Light chatbot10,000800 / 400$28.80
Coding agent5,0008,000 / 2,000$100.00
RAG pipeline30,0004,000 / 500$234.00
Doc summarizer2,00020,000 / 1,000$64.80

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

About Z.ai: GLM 5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Compare Z.ai: GLM 5.1 with

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

Frequently asked questions

How much does Z.ai: GLM 5.1 cost?

Z.ai: GLM 5.1 costs $1.40 per 1M input tokens and $4.40 per 1M output tokens; cached input tokens cost $0.260 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.260/1M, about 81% cheaper than standard input. Agents and RAG workloads with repeated context benefit most.

What's a cheaper alternative?

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

Official resources