softwareestimator.com

Z.ai API pricing

Prices synced November 22, 2026 from OpenRouter

Z.ai's API costs $0.0699–$1.68 per million input tokens and $0.50–$5.28 per million output tokens across its 6 current models (November 2026). The cheapest is GLM 5.3 Flash at $0.15/$0.50; the most expensive is GLM 5.3 Prime at $1.68/$5.28. On the newest, GLM 5.3 FlashX Legal, a month of daily AI coding comes to roughly $3–$69.

Current models

Model Input /1M Output /1M Cache read Context Coding month* Released
GLM 5.3 FlashX Legal $0.37 $1.25 $0.075 1M $3–$69 Nov 2026
GLM 5.3 Prime $1.68 $5.28 $0.336 1M $12–$304 Sep 2026
GLM 5.3 FlashX $0.37 $1.25 $0.075 1M $3–$69 Sep 2026
GLM 5.3 Flash $0.15 $0.50 $0.03 1M $1–$28 Aug 2026
GLM 5.3 $0.0699 $1.40 $0.0689 1M $2–$46 Aug 2026
GLM 5.2 $0.62 $2.42 $0.14 1M $5–$125 Jun 2026

Batch prices

Model Batch input Batch output vs standard
GLM 5.3 Flash $0.023 $0.068 86% off
GLM 5.3 $0.28 $1.25 11% off
GLM 5.2 $0.322 $0.989 59% off

Older models

Released over six months ago or scheduled for retirement. Still callable, priced as listed.

Model Input /1M Output /1M Cache read Context Coding month* Released
GLM 5.1 $1.40 $4.40 $0.26 205k $10–$252 Apr 2026
GLM 5V Turbo $1.20 $4 $0.24 203k $9–$223 Apr 2026
GLM 5 Turbo $1.20 $4 $0.24 203k $9–$223 Mar 2026
GLM 5 $1 $3.20 $0.20 205k $7–$182 Feb 2026
GLM 4.7 Flash $0.0605 $0.40 — 200k $1–$20 Jan 2026
GLM 4.7 $0.60 $2.20 $0.11 205k $4–$115 Dec 2025
GLM 4.6V $0.30 $0.90 $0.055 131k $2–$53 Dec 2025
GLM 4.6 $0.50 $2 $0.10 205k $4–$101 Sep 2025
GLM 4.5V $0.60 $1.80 $0.11 66k $4–$106 Aug 2025
GLM 4.5 $0.60 $2.20 $0.11 131k $4–$115 Jul 2025
GLM 4.5 Air $0.13 $0.85 $0.025 131k $1–$34 Jul 2025

Frequently asked questions

How much does the Z.ai API cost?

Z.ai's API costs $0.0699–$1.68 per million input tokens and $0.50–$5.28 per million output tokens across its 6 current models (November 2026). The cheapest is GLM 5.3 Flash at $0.15/$0.50; the most expensive is GLM 5.3 Prime at $1.68/$5.28. On the newest, GLM 5.3 FlashX Legal, a month of daily AI coding comes to roughly $3–$69.

Does Z.ai offer cheaper batch pricing?

Yes. 3 of 6 current Z.ai models have a batch tier, typically around half the normal price, for jobs that don't need an instant reply.

Does Z.ai discount cached input?

6 of 6 current models list a cache-read price. In agentic coding most input is re-read context, so the cache price matters more than the headline input price.

Other providers

Coding-month ranges assume 20M–200M tokens of agentic use; see the methodology. Prices are OpenRouter list prices from openrouter.ai/models, which normally match Z.ai's own. To price a whole build, run the estimator.