GLM API pricing: what 11 models cost a coding agent
Every GLM model in the catalog that has been ranked in an agent category, priced three ways — list, cache read, and what the two come to at the token mix an agent actually sends. Recomputed from the source catalog on 2026-11-30.
List price is not the bill. A coding agent re-reads its context every step, so about 95.6% of the tokens it sends are cache reads — and how deep GLM discounts a cache read decides the bill more than the number printed in the row. That discount is a vendor policy, not a per-model one, and no published rate card puts it next to the other vendors’.
What GLM charges per million tokens
11 GLM models that have been ranked in an agent category of the Design Arena, read from OpenRouter’s public catalog on 2026-11-30. Three prices per row: what the row lists, what a cache read costs, and what the two come to at the token mix a coding agent actually sends.
GLM does not have one cache-read rate — it has 7. Across 11 rows the discount runs from 18.6% to 98.6% of that row’s own input price. So a cheaper list price here can still be the dearer call once an agent starts caching, and no single discount figure describes this vendor. Repriced at a coding agent’s mix, GLM’s list input price overstates what an agent pays by a median 4.1× (range 0.3×–4.4×).
2 rows are marked batch — the batch entries the catalog lists separately. They are kept apart on purpose: folding them in would read as if a normal call cost half of what it does.
| $ / 1M at agent mix | $ in / 1M | $ cache read / 1M | $ out / 1M | Model | Context | Long-context step | Best agents rank |
|---|---|---|---|---|---|---|---|
| $0.0097 | $0.023 | $0.009 | $0.068 | GLM 5.3 Flash batch |
1M | — | #16 pdf |
| $0.0257 | $0.007 | $0.006 | $6.80 | GLM 5.2 | 1M | — | #9 agenticgamedev |
| $0.0304 | $0.0356 | $0.03 | $0.0815 | GLM 5.3 Flash | 1M | — | #16 pdf |
| $0.0728 | $0.0699 | $0.0689 | $1.40 | GLM 5.3 | 1M | — | #2 htmlslides |
| $0.0734 | $0.28 | $0.061 | $1.249 | GLM 5.3 batch |
1M | — | #2 htmlslides |
| $0.0979 | $0.40 | $0.08 | $1.75 | GLM 4.7 | 204K | — | #33 godotgamedev |
| $0.1218 | $0.50 | $0.10 | $2.00 | GLM 4.6 | 202K | — | #15 godotgamedev |
| $0.2413 | $1.00 | $0.20 | $3.20 | GLM 5 | 204K | — | #18 godotgamedev |
| $0.29 | $1.20 | $0.24 | $4.00 | GLM 5 Turbo | 202K | — | #38 pdf |
| $0.29 | $1.20 | $0.24 | $4.00 | GLM 5V Turbo | 202K | — | #5 agenticslides |
| $0.3184 | $1.40 | $0.26 | $4.40 | GLM 5.1 | 204K | — | #2 agenticslides |
Cheapest GLM row an agent can call normally is GLM 5.2 at $0.0257 per million; the dearest is $0.3184, 12× more. Both numbers exclude the batch rows above. Both are computed, not quoted — the arithmetic and the weights are in the JSON.
GLM against the other vendors, on the same arithmetic
Same catalog, same day, same token mix. The column that decides an agent’s bill is not the list price — it is how deep that vendor discounts a cache read, because about 95.6% of what an agent sends is a cache read.
| Vendor | Rows | Cache read, % of its own input | List price overstates the agent bill by | Cheapest non-batch row at agent mix |
|---|---|---|---|---|
| xiaomi | 1 | 0.8% | 18.4× | $0.0237 |
| tencent | 1 | 5% | 10.3× | $0.0407 |
| DeepSeek | 3 | 2–22.8% | 7.6× | $0.0107 |
| Claude | 26 | 2.5–10% | 6.6× | $0.0151 |
| Gemini | 20 | 5–10% | 6.6× | $0.0769 |
| OpenAI | 11 | 5–10.4% | 6.5× | $0.2042 |
| Llama | 7 | 5–13.3% | 6.0× | $0.0539 |
| reflection | 1 | 13.3% | 5.6× | $0.0534 |
| upstage | 2 | 10–20% | 5.4× | $0.0074 |
| nvidia | 2 | 13.3–20% | 4.9× | $0.0265 |
| thinkingmachines | 1 | 17% | 4.7× | $0.215 |
| Grok | 8 | 15–25% | 4.2× | $0.2494 |
| Qwen | 4 | 20% | 4.1× | $0.0779 |
| MiniMax | 3 | 20% | 4.1× | $0.0731 |
| GLM | 11 | 18.6–98.6% | 4.1× | $0.0257 |
| stepfun | 1 | 20% | 4.0× | $0.0497 |
| Kimi | 7 | 10–94.8% | 3.3× | $0.1479 |
The spread in that fourth column is the whole point: Claude at 6.6× against Kimi at 3.3×, across 26 and 7 rows. Two rows with the same list price, one from each, are not the same price to an agent — and no published rate card puts those two numbers next to each other.
All models, every vendor, one table · Put your own token counts in · JSON · CSV
What was written about GLM while these were measured
22 figures in these field notes come from a sentence that names GLM. These are quoted from the write-up, dated the day it went out — unlike the table above, they are not recomputed, so read each one as of its own date.
- $0.87 per million output tokens — “If you think in dollars, another data point puts DeepSeek V4 at $0.87 per million output tokens, against GLM-5.2 at $4.4 and Kimi K3 at $15, while a third puts V4-Flash at $0.028 per million tokens, which is an order of magnitude off the previous figures.” (2026-11-24) →
- $0.87 per million tokens — “In dollar terms the same source group puts DeepSeek V4 output at $0.87 per million tokens against GLM-5.2 at $4.4 and Kimi K3 at $15, which is the other half of why the cheap tier is where I start.” (2026-11-24) →
- 20 million tokens — “Compare GLM-4-Flash: new users get 20 million tokens, permanently valid, 128K context, 30 concurrent.” (2026-11-23) →
- 21 minutes — “Narrow tasks with a clear scoring rule can also go to the cheap side, which is illustrated by the fact that MiniMax M2.5 scored 28 out of 30 on a bug-hunt task, 3.5 points above GLM-5, and finished in 21 minutes — half of GLM-5’s time.” (2026-11-19) →
- 20 million tokens — “Zhipu’s signup offer is 20 million tokens, and GLM-4-Flash is 20 million tokens permanently free with a 128K context and 30 concurrent connections.” (2026-11-19) →
- $4.4 — “Zhipu’s GLM-5.2 is $4.4.” (2026-11-19) →
- 100K tokens — “GLM 5.3 Flash uses a flat token price for inputs above 100K tokens, which avoids the long-context cost jump that Haiku carries.” (2026-11-17) →
- 644 seconds — “First-token latency in that same comparison: Step 5 Preview 0.9s, DeepSeek V4.1 Flash 1.1s, GLM-5.3 1.9s, and Opus 5.5 at max reasoning strength a staggering 644 seconds.” (2026-11-16) →
- 100K tokens — “If your prompts routinely exceed 100K tokens, take GLM 5.3 Flash for the flat pricing and skip the long-context cliff entirely.” (2026-11-16) →
- 100K tokens — “GLM 5.3 Flash uses flat per-token pricing above 100K tokens, avoiding the long-context premium that Haiku applies.” (2026-11-13) →
- $3 per month — “The Reddit forecast was $3-5 a month for three light agents, and GLM-4-Flash’s 20M free tokens don’t expire, while DeepSeek’s sign-up grant of 10M tokens (2026-05-02 article) was valid for only 30 days.” (2026-11-10) →
- 1.1 seconds — “DeepSeek V4.1 Flash starts answering in 1.1 seconds and GLM-5.3 in 1.9 seconds, while Claude Opus 5.5 at its max reasoning setting took as long as 644 seconds during peak hours.” (2026-11-07) →
- $0.87 — “That’s expensive next to its Chinese peers, since DeepSeek V4 charges $0.87 and GLM-5.2 charges $4.40.” (2026-11-07) →
- $0.68 — “GLM-5.3 completes an intelligent task at an average cost of $0.68, well below the $2.75 Claude Fable 5 needs for a comparable workload.” (2026-11-07) →
- $15 per million output tokens — “Kimi K3 charges $15 per million output tokens, DeepSeek V4 at $0.87, and GLM-5.2 at $4.40—far below Anthropic Fable 5’s $50.” (2026-11-02) →
- 90% — “The real power shows up in daily use: you can send complex logic to GLM, which performs at about 90% of GPT-level quality, while offloading routine tasks to cheaper models like DeepSeek V4 Flash.” (2026-09-30) →
- 70% — “Subtitle: How switching to DeepSeek and GLM saved me 70% and gave me back control” (2026-09-30) →
- $1 per million tokens — “Even at the high end, models like GLM 5.2 and DeepSeek V4 Pro hover around $1 per million tokens.” (2026-09-30) →
- 90% — “GLM provides an experience benchmarked at 90% of GPT capabilities for daily tasks, while DeepSeek offers a highly competitive pay-as-you-go pricing structure.” (2026-09-25) →
- 80% — “A local proxy called OpenCodex redirects Codex requests to Chinese models such as DeepSeek and Zhipu GLM, which sidesteps the five-hour quota window and reportedly cuts cost by more than 80% — 10 yuan of DeepSeek credit lasting several days, with measured latency in the 100–200ms range and model switching that doesn’t break conversation context.” (2026-09-16) →
- 45.2% — “GLM-5.1 does the same: sort by input and you take GMICloud, and pay 45.2% over Chutes.” (2026-08-24) →
- 10.00% — “Now the other side. z-ai’s GLM-5.1 is served by seventeen hosts, cache read ratios running 10.00% to 50.42%.” (2026-08-24) →
- 63 Billion Tokens in One Month, Spent Writing Google Ads for Amazon Sellers · reply box · telegra.ph
- Bypass Codex Rate Limits: The Local Proxy Path to 70% Cost Savings · reply box · telegra.ph
- Chinese Models Are Not 2x Cheaper Once Your Agent Starts Caching · reply box · telegra.ph
- I Ran DeepSeek V4-Pro and GLM-4-Flash in the Same Coding Agent. One Took 24 Minutes and Deployed Without Asking. · reply box · telegra.ph
- Running DeepSeek V4-Pro Inside Claude Code: A Cost-and-Failure Checklist for Cheap Chinese Coding Models · reply box · telegra.ph
- Stop Hitting the 5-Hour Limit: Routing Your IDE’s AI Requests to Local Models · reply box · telegra.ph
- The “10x Cheaper” Trap: How to Read AI Coding Costs · reply box · telegra.ph
- The Listed Price Is a Lie: What DeepSeek’s Peak/Off-Peak Pricing, Rate-Limit Windows, and “Permanent” Credits Actually Cost Per Task · reply box · telegra.ph
- The Same Model Costs 2x More at 10am — Three Pricing Cliffs That Blow Up Your Coding Agent’s Bill · reply box · telegra.ph
- The Sticker Price Said 9x Cheaper. My Bill at Peak Hour Didn’t Move. · reply box · telegra.ph
- This Open-Source Code Review Tool Beats Claude — With 1/9 the Tokens · reply box · telegra.ph
- What DeepSeek V4.1 Flash Really Costs Per Month: A Five-Step Checklist · reply box · telegra.ph
- Your LLM Bill Is 2x the Sticker Price: Peak-Hour Pricing and the 272K Token Cliff · reply box · telegra.ph
A GLM price that looks wrong? Say which row — the form already knows it is about GLM; you only have to say what the number is now. Every figure here is computed from a published catalog, so a wrong one is a bug, not an opinion.
Did this answer it? A star on the repository is the whole ask — the data is CC BY and does not require starring.