Requesty
Back
AI Models · DEC '26

Z.ai GLM API pricing: GLM-5.4, 5.3 and Flash

Compare Z.ai GLM API prices, Coding Plan credits and coding benchmark results for GLM-5.4, GLM-5.3 and Flash before choosing a model for your workload.

BYDaniel Van den BergheDATEREAD6m
AI ModelsModel ComparisonsCost Optimization
Sections (6)▾
  1. 01GLM API prices by model
  2. 02What would an API workload cost?
  3. 03How much does GLM-5.4 cost?
  4. 04What is GLM-5.4 built for?
  5. 05What did GLM-5.3 cost per solved task?
  6. 06Which GLM model should you choose?

At Z.ai's November 2026 rates, GLM-5.3 costs $1.40 per million input tokens and $4.40 per million output tokens. GLM-5.3-Flash costs $0.15 per million input tokens and $0.50 per million output tokens, and GLM-5.4 has the same API rates as GLM-5.3. Every GLM Coding Plan includes GLM-5.4 from $18 per month. BeatAPI lists GLM-5.4 reseller rates of $0.56 per million input tokens and $1.76 per million output tokens.

GLM API prices by model

These are Z.ai's November 2026 API prices per million tokens. Input tokens are the text or other content you send to a model; output tokens are the content it generates.

ModelInput per million tokensCached input per million tokensOutput per million tokens
GLM-5.4$1.40$0.26$4.40
GLM-5.2$1.40$0.26$4.40
GLM-5.3$1.40$0.26$4.40
GLM-5.3-Flash$0.15$0.03$0.50
GLM-5.3-FlashX$0.37$0.075$1.25

Z.ai also lists GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash as free older-generation options.

Source: Z.ai pricing.

Caching can lower the cost of repeated input, so your cache hit share changes the bill. For a comparison with another provider, see our DeepSeek API pricing guide.

GLM-5.3 and GLM-5.2 differ in another way despite their identical prices: GLM-5.3 always uses thinking, while GLM-5.2 can switch it off. FlashX uses the same Flash weights on a faster serving tier, with a listed speed of up to 200 tokens per second.

What would an API workload cost?

Take a workload with one million input tokens and 250,000 output tokens. The tokens are spread across many requests, each within the model's limits. None of the input is cached, and each model uses the same number of tokens.

At Z.ai's November 2026 rates, the calculation is:

ModelInput costOutput costTotal
GLM-5.4, GLM-5.3 or GLM-5.2$1.40$1.10$2.50
GLM-5.3-Flash$0.15$0.125$0.275
GLM-5.3-FlashX$0.37$0.3125$0.6825

For GLM-5.4 and GLM-5.3, 0.25 million output tokens at $4.40 per million cost $1.10. Add the $1.40 input cost and the total is $2.50.

On this token mix, GLM-5.3 costs about nine times as much as Flash. Models can generate different amounts of output for the same task, and this calculation says nothing about whether the task was solved.

How much does GLM-5.4 cost?

On the pay-as-you-go API, GLM-5.4 costs the same as GLM-5.3: $1.40 per million input tokens and $4.40 per million output tokens. It has a 1M-token context window and a 128K output limit, according to Z.ai's model guide. Every GLM Coding Plan also includes GLM-5.4, and the plan can only be used in supported coding tools.

Plans start at $18 per month for Lite. These were the credit allowances listed in November 2026:

PlanCredits per five hoursCredits per week
Lite2,00010,000
Pro12,00060,000
Max28,000140,000

Source: Z.ai's Coding Plan overview.

Credits make the plan harder to compare with an API bill. GLM-5.4's credit multipliers are 4.6 for input, 1.1 for cached input and 16 for output. GLM-5.3's multipliers are 6.9, 1.7 and 24, respectively.

Off-peak usage costs half as many credits. Peak hours are Monday to Friday, 14:00 to 18:00 Singapore time.

Z.ai's Coding Plan overview calculates credits by multiplying each token count by its multiplier, adding the results and dividing by 10,000. For the same one million input and 250,000 output tokens, with no cache hits, GLM-5.4 uses:

  • Peak: (1,000,000 x 4.6 + 250,000 x 16) / 10,000 = 860 credits.
  • Off-peak: 860 / 2 = 430 credits.

On the pay-as-you-go API, the same workload costs $2.50: $1.40 for input plus $1.10 for output.

On the $18 Lite plan, count four weeks in a month, with 10 peak workloads each week and no other plan usage. Run two workloads during each weekday's peak period: they use 1,720 of the 2,000 credits allowed per five hours. The 10 workloads use 8,600 of the 10,000 weekly credits.

That works out to 40 workloads for $18, or $0.45 per workload, compared with $2.50 each on the API. For intermittent use or calls outside the plan's supported tools, the pay-as-you-go API can be a better fit.

What is GLM-5.4 built for?

Z.ai's model guide describes GLM-5.4 using code for video editing, game building and 3D modeling. Z.ai notes that the model can get caught in long thinking loops, so set an output limit and test it on your own tasks before moving production traffic.

What did GLM-5.3 cost per solved task?

In Requesty's coding benchmark, GLM-5.3 solved 67.4% of 129 tasks at $1.46 per task and $2.16 per solved task, while GLM-5.3-Flash solved 63.6% at $0.24 per task and $0.38 per solved task. On the extreme tasks, GLM-5.3 solved one of 18 and GLM-5.3-Flash solved none.

ModelTasks solvedCost per solved task
GLM-5.367.4%$2.16
GLM-5.3-Flash63.6%$0.38
GPT-6.1 Terra82.9%$0.19
DeepSeek V4.1 Flash76.7%$0.41

The two GLM models were close on solve rate, but Flash cost much less per solve in this test. GPT-6.1 Terra and DeepSeek V4.1 Flash both solved more tasks than either GLM model. The benchmark used prices from the cheapest Requesty provider for each model, so its costs should be read separately from the direct Z.ai prices above. Our comparison of 25 AI coding models has the wider results.

Cache use also changes what teams pay. In Requesty's Rankings, covering production traffic from September 28 to November 30, 2026, GLM-5.3 had a blended cost of $0.41 per million tokens and a 93.9% cache hit rate. GLM-5.3-Flash had a blended cost of $0.08 per million tokens and an 88.5% cache hit rate. Those figures include cache discounts and reflect the workloads in that traffic.

Which GLM model should you choose?

Verdict

Start with GLM-5.3-Flash for coding tasks where its lower cost is attractive: it solved 63.6% of tasks in our benchmark at $0.38 per solve. Try GLM-5.3 when Flash fails your tasks, especially on the hardest tasks, where Flash solved none of 18 extreme tasks in our benchmark. Pick GLM-5.2 if you need to switch thinking off. For app-building work in Z.ai's supported coding tools, GLM-5.4 scored higher than GLM-5.3 on KingBench 4; choose a Coding Plan allowance that fits your usage.

Before committing, run the same set of tasks through the models you are considering. Record the cost per completed task and the time each run takes, then compare those results with the relevant API bill or plan fee.

For API workloads, Requesty's gateway provides one OpenAI-compatible API for models across providers. We charge 5% on top of model costs, so include that fee when comparing a Requesty bill with the direct Z.ai examples above.

FAQ

How much does the GLM-5.3 API cost?+

In November 2026, Z.ai charged $1.40 per million input tokens and $4.40 per million output tokens for GLM-5.3. Cached input cost $0.26 per million tokens.

How much does GLM-5.2 cost?+

In November 2026, Z.ai charged $1.40 per million input tokens, $0.26 per million cached input tokens and $4.40 per million output tokens for GLM-5.2. Those are the same rates as GLM-5.3.

How can you pay for GLM-5.4?+

In November 2026, Z.ai charged $1.40 per million input tokens, $0.26 per million cached input tokens and $4.40 per million output tokens for GLM-5.4 on its API. Every GLM Coding Plan also includes GLM-5.4, starting at $18 per month.

How much does GLM-5.3-Flash cost?+

In November 2026, Z.ai charged $0.15 per million input tokens, $0.03 per million cached input tokens and $0.50 per million output tokens for GLM-5.3-Flash.

How did GLM-5.3 do on Requesty's coding benchmark?+

GLM-5.3 solved 67.4% of 129 backend tasks at $2.16 per solved task. GLM-5.3-Flash solved 63.6% at $0.38 per solved task.

Requesty Gateway

Start building with Requesty

One line of code. 600+ models. Full control.