StackPricing
All AI models

Z.ai · AI model API pricing

How much does GLM-4.7 cost?

The coding-plan workhorse — a popular Claude-Code-compatible alternative at roughly a tenth of Sonnet pricing.

Rate card

Input tokens$0.60 / 1M
Cached input$0.11 / 1M
Output tokens$2.2 / 1M
Context window

What that means per month

WorkloadTokens / monthCost / month
Prototype 1M in · 0.3M out $1.26/mo
Small app 10M in · 3M out $12.6/mo
Production app 50M in · 15M out $63/mo
High volume 200M in · 60M out $252/mo
Heavy platform 1B in · 300M out $1,260/mo
Price it at your exact usage Official pricing page

Standard on-demand rates from Z.ai's official pricing docs, last checked 2026-07-28. Monthly figures exclude caching and batch discounts. Confirm live pricing before committing.

Where GLM-4.7 sits on price

At the reference month of 10M input and 3M output tokens, GLM-4.7 costs $12.6, which makes it the 11th cheapest of the 30 models tracked here. That is 7.4× the price of Qwen-Flash, the cheapest model at this mix ($1.70). Among the 11 mid-tier models it ranks 4th, behind MiniMax M3 at $6.60.

Cache economics

Cached input on GLM-4.7 bills at $0.11 per 1M — 18% of its own input rate, against a 10% median across the models here that publish a cached-read price. 23 models discount cached reads more steeply than this. On the reference month, serving 80% of that input from cache takes the input side of the bill from $6 to $2.08, leaving output untouched at $6.60 — which is why a high reuse rate changes the ranking above rather than just shaving the total.

Cache reads only. Writes are billed separately by some providers and are excluded here — see the rate note above for Z.ai's terms. Try it at your own hit rate on the AI cost calculator.

Cheaper alternatives

At a reference workload of 10M input / 3M output tokens a month, these cost less than GLM-4.7 ($12.6/mo):

GLM-4.7 head-to-head