Skip to content
CostPerPrompt

GLM 5.1 API Pricing

Z.ai (GLM) · context window 205K · prices updated 2026-09-15

Input per 1M tokens
$0.966
Output per 1M tokens
$3.04
Cached input per 1M
$0.1794
81% cheaper than fresh input

Where GLM 5.1 sits on price

At $3.04 per million output tokens, GLM 5.1 is a mid tier model — 1.5× the median output price of $2.08, which puts it cheaper than 41% and pricier than 59% of the models we track. It sits 13th cheapest of the 17 Z.ai (GLM) models we track. Output costs 3.1× input, the usual spread — trim both, starting with the answer length.

Output tokens per $1
329,381
One full context fill
$0.1978
Cheaper than
41% of tracked models

Cached input is 81% cheaper. On an input-heavy workload you need roughly a 31% 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.1

These three workloads are the ones teams actually run on a mid-priced model — a $3.04/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.0091 $136
Document pipeline — 10K docs/day (3K in / 500 out) Batch-friendly: no user waiting, so a ~50% batch discount usually applies. $0.0044 $1325
Small app — 1K requests/day (500 in / 150 out) The baseline most side projects actually run at. $0.0009 $28.15

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

GLM 5.1 price history

Z.ai (GLM) last cut GLM 5.1's output price on Aug 30, 2026 (-23% per output token), from $1.26/$3.96 to $0.966/$3.04 per 1M in/out. That is one of 5 repricings in the 44 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.966 $3.04
Aug 6, 2026 $0.952 $2.99 -1%
Aug 10, 2026 $1.40 $4.40 +47%
Aug 15, 2026 $0.966 $3.04 -31%
Aug 25, 2026 $1.26 $3.96 +30%
Aug 30, 2026 $0.966 $3.04 -23%

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

GLM 5.1 vs Gemini 3 Flash Preview

The closest-priced alternative from another vendor is Gemini 3 Flash Preview (Google) — priced within a rounding error on output, with $0.466 less 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 Gemini 3 Flash Preview pricing →

Cheaper alternatives

More Z.ai (GLM) models

Frequently asked questions

How much does the GLM 5.1 API cost?

GLM 5.1 costs $0.966 per million input tokens and $3.04 per million output tokens, with cached input at $0.1794 per million (81% cheaper). That works out to roughly 329,381 output tokens per dollar.

What does the support chatbot workload cost on GLM 5.1?

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

What does it cost to fill GLM 5.1's 205K context window?

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

Is GLM 5.1 worth the price?

GLM 5.1 sits in the middle of the market (13 of 17 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.