GLM API pricing for every Z.ai model, newest first

By TechCompare · Updated · How we check

A 60,000 token prompt with a 3,000 token answer and half the input cached costs $0.0171 on GLM 5.3 FlashX Legal, the newest GLM. GLM 5.3 Flash, the lowest cost model Z.ai sells itself, runs it for $0.0069.

Every GLM model and its API price

Newest first. Prices are per 1M tokens. One request is 60K tokens in and 3K out, with 50% of the input cached.

ModelInputOutputCachedContextOne requestListed
GLM 5.3 FlashX LegalZ.AI$0.37$1.25$0.0751.05M$0.0171Nov 2, 2026
GLM 5.3 PrimeCheapest host: Alibaba$2.80$8.80$0.561M$0.1272Sep 23, 2026
GLM 5.3 FlashXZ.AI$0.37$1.25$0.0751.05M$0.0171Sep 18, 2026
GLM 5.3 FlashZ.AI$0.15$0.50$0.031.05M$0.0069Aug 26, 2026
GLM 5.3Z.AI$1.40$4.40$0.261.05M$0.063Aug 18, 2026
GLM 5.2Z.AI$1.40$4.40$0.261.05M$0.063Jun 16, 2026
GLM 5.1Z.AILeaves Nov 20, 2026$1.40$4.40$0.26205K$0.063Apr 7, 2026
GLM 5V TurboZ.AI$1.20$4$0.24203K$0.0552Apr 1, 2026
GLM 5 TurboZ.AI$1.20$4$0.24203K$0.0552Mar 15, 2026
GLM 5Z.AI$1$3.20$0.20205K$0.0456Feb 11, 2026
GLM 4.7 FlashCheapest host: Novita$0.07$0.40$0.01200K$0.0036Jan 19, 2026
GLM 4.7Z.AI$0.60$2.20$0.11205K$0.0279Dec 22, 2025

Listed is the day OpenRouter added the model. Prices checked Nov 14, 2026.

GLM comes from Z.ai, the international name of Zhipu AI in Beijing. This page lists all 17 GLM models OpenRouter carries, newest first, at Z.ai's own price where Z.ai sells the model and the host that charges least where it doesn't.

The 5.3 generation comes in several builds. GLM 5.3 is the large reasoning model, at $1.40 input and $4.40 output per million tokens. GLM 5.3 Flash is natively multimodal, at $0.15 and $0.50. GLM 5.3 FlashX is the high speed build of Flash, up to 200 tokens a second, at $0.37 and $1.25. And GLM 5.3 FlashX Legal adds training on legal text on top of FlashX.

Newest
GLM 5.3 FlashX Legal
$0.37 in, $1.25 out per 1M
Lowest cost per request
GLM 5.3 Flash
$0.0069 for the request in the table
Largest context
GLM 5.3 FlashX Legal
1.05M tokens

Calculator

Cost Comparison

Based on 60,000 input tokens (50% cached), 3,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

Loading model prices

How to read the GLM prices

GLM 5.3 Prime is the high speed build of GLM 5.3, with 1.5 to 2 times the throughput. Z.ai doesn't sell it on its own API, so the row shows Alibaba, at $2.80 input and $8.80 output per million. GLM 5.3 FlashX Legal costs no more per output token than GLM 5.3 FlashX, at $1.25 per million, so the legal training is free on output. Test it on your own documents all the same.

A cached token on GLM 5.3 FlashX Legal costs $0.075 per million, 80% off the normal input rate. No batch price is listed for GLM 5.3 right now.

Zhipu publishes open weights for many GLM models, so you can also run them yourself or buy them from other hosts. GLM 5.3 FlashX Legal reads up to 1.05M tokens, the largest window in the family.

Z.ai also sells the GLM Coding Plan, a monthly subscription for coding tools with Lite, Pro and Max tiers. It gives you a pool of prompts that resets every five hours, not a token bill, so it isn't priced here.

Verdict

For general work, start with GLM 5.3 and run GLM 5.3 Flash, the lowest cost model Z.ai sells for the example request, on the same prompts. Use it wherever it passes your checks. Keep GLM 5.3 FlashX Legal for contracts and other legal text, and reach for FlashX or Prime only where users wait on the answer.

If most of your use is a coding tool, compare the Coding Plan with your token bill before you pick.

More LLM pricing scenarios

Frequently asked questions

How much does the GLM API cost?
GLM 5.3 costs $1.40 input and $4.40 output per million tokens. GLM 5.3 Flash is $0.15 and $0.50, and GLM 5.3 FlashX is $0.37 and $1.25. The table lists every GLM model, older ones included.
Is Z.ai the same as Zhipu AI?
Yes. Z.ai is the name Zhipu AI uses outside China, for its international API and chat app. The GLM models and their names are the same.
What's the difference between GLM 5.3 Flash and FlashX?
GLM 5.3 FlashX is the high speed build of GLM 5.3 Flash, at up to 200 tokens a second. You pay more per output token for that speed: $1.25 per million against $0.50.
What is GLM 5.3 FlashX Legal?
FlashX with extra training on legal text, like contracts and case law. It lists $0.37 input and $1.25 output per million. Test it against plain FlashX on your own documents before you switch.
What is the GLM Coding Plan?
A monthly subscription for coding tools, with Lite, Pro and Max tiers. Each tier gives you a pool of prompts that resets every five hours, not a token bill. It doesn't appear in the table because it isn't priced per token.
Which GLM model has the largest context window?
GLM 5.3 FlashX Legal, the newest, has the largest window at 1.05M tokens. A full window is a big bill, so trim what you send.
Where do these prices come from?
From OpenRouter's model list, which we check on a regular schedule. A row shows Z.ai's own rate where Z.ai sells the model, and the host that charges least where it doesn't.