Skip to content
CostPerPrompt

GLM 5.2 API Pricing

Z.ai (GLM) · context window 1M · prices updated 2026-10-30

Input per 1M tokens
$0.006
Output per 1M tokens
$7.00
Cached input per 1M
$0.005
17% cheaper than fresh input

Where GLM 5.2 sits on price

At $7.00 per million output tokens, GLM 5.2 is a premium tier model — 3.2× the median output price of $2.20, which puts it cheaper than 28% and pricier than 72% of the models we track. It sits 17th cheapest of the 18 Z.ai (GLM) models we track. Output costs 1166.7× more than input here, so anything that makes the model write less — tighter instructions, structured output, lower max_tokens — moves the bill more than trimming the prompt.

Output tokens per $1
142,857
One full context fill
$0.0063
Cheaper than
28% of tracked models

Cached input is 17% cheaper. On an input-heavy workload you need roughly a 100% cache-hit rate to take 25% off the input line — reachable for chatbots and agents that resend the same system prompt and history.

What real workloads cost on GLM 5.2

These three workloads are the ones teams actually run on a premium-priced model — a $7.00/1M model is not bought for the same job as one ten times the price.

Workload Per request Per month
Support chatbot — 500 conversations/day (5K in / 1.4K out) Conversation history re-sent each turn — the classic prompt-caching win. $0.0098 $147
Coding agent — 300 sessions/day (60K in / 12K out) Multi-step loops re-read the same files; caching matters more than raw price. $0.0844 $759
Long-context analysis — 200 runs/day (250K in / 4K out) Only possible on large-context models; input cost is nearly the whole bill. $0.0295 $177

Model your exact traffic in the API cost calculator — it preloads GLM 5.2 with caching and batch options.

GLM 5.2 price history

Z.ai (GLM) last raised GLM 5.2's output price on Oct 29, 2026, from $0.014/$7.00 to $0.006/$7.00 per 1M in/out. That is one of 37 repricings in the 89 days we have tracked it — worth knowing before you hard-code today's rate into a budget.

Date Input /1M Output /1M Output change
Aug 2, 2026 (tracking began) $0.2842 $0.8932 —
Aug 3, 2026 $0.6146 $1.93 +116%
Aug 4, 2026 $0.76 $2.42 +25%
Aug 6, 2026 $0.56 $1.76 -27%
Aug 7, 2026 $0.6734 $2.12 +20%
Aug 8, 2026 $0.252 $0.792 -63%
Aug 9, 2026 $0.07 $0.22 -72%
Aug 10, 2026 $0.76 $2.42 +1000%
Aug 12, 2026 $0.5 $3.15 +30%
Aug 14, 2026 $1.19 $3.74 +19%
Aug 15, 2026 $0.49 $1.54 -59%
Aug 16, 2026 $0.308 $0.968 -37%
Aug 17, 2026 $1.19 $3.74 +286%
Aug 21, 2026 $0.966 $3.04 -19%
Aug 25, 2026 $1.19 $3.74 +23%
Sep 2, 2026 $0.966 $3.04 -19%
Sep 12, 2026 $0.6 $2.00 -34%
Sep 14, 2026 $0.6832 $2.15 +7%
Sep 15, 2026 $1.40 $4.40 +105%
Sep 18, 2026 $0.5625 $1.80 -59%
Sep 19, 2026 $0.5544 $1.74 -3%
Sep 20, 2026 $0.6496 $2.04 +17%
Sep 29, 2026 $0.1949 $4.40 +116%
Sep 30, 2026 $0.41 $3.99 -9%
Oct 4, 2026 $0.38 $3.49 -13%
Oct 5, 2026 $0.0192 $16.00 +358%
Oct 6, 2026 $0.152 $12.00 -25%
Oct 7, 2026 $0.171 $7.20 -40%
Oct 8, 2026 $0.03 $10.00 +39%
Oct 9, 2026 $0.06 $4.20 -58%
Oct 10, 2026 $0.06 $7.00 +67%
Oct 14, 2026 $0.05 $7.00 0%
Oct 15, 2026 $0.02 $7.00 0%
Oct 16, 2026 $0.037 $9.00 +29%
Oct 17, 2026 $0.62 $2.42 -73%
Oct 21, 2026 $0.0341 $7.00 +189%
Oct 28, 2026 $0.014 $7.00 0%
Oct 29, 2026 $0.006 $7.00 0%

Change-points from our daily price snapshots (tracking since Aug 2, 2026; intraday moves between snapshots are not captured).

GLM 5.2 vs GPT-5.2 (batch)

The closest-priced alternative from another vendor is GPT-5.2 (batch) (OpenAI) — priced within a rounding error on output, with $0.869 more per million input tokens. When two models land this close on price, the decision is quality on your own workload, not the price sheet: run 50 real requests through both and compare.

See GPT-5.2 (batch) pricing →

Cheaper alternatives

More Z.ai (GLM) models

Frequently asked questions

› How much does the GLM 5.2 API cost?

GLM 5.2 costs $0.006 per million input tokens and $7.00 per million output tokens, with cached input at $0.005 per million (17% cheaper). That works out to roughly 142,857 output tokens per dollar.

› What does the support chatbot workload cost on GLM 5.2?

Support chatbot — 500 conversations/day (5K in / 1.4K out) costs about $0.0098 per request and $147 per month on GLM 5.2. Conversation history re-sent each turn — the classic prompt-caching win.

› What does it cost to fill GLM 5.2's 1M context window?

Sending 1M of input in a single request costs $0.0063 at $0.006 per million tokens — before any output. With prompt caching that same fill drops to about $0.0052 on repeat requests. This is why large context windows are cheap to advertise and expensive to actually use.

› Is GLM 5.2 worth the price?

GLM 5.2 sits in the middle of the market (17 of 18 by price within Z.ai (GLM)). The honest test is a routing experiment: send the same 200 real requests to this model and to a tier below, and compare failure rate against the price gap — most teams find a majority of traffic never needed the pricier model.