GLM API pricing

GLM API cost per request, December 2026: a chat turn and a long document

Input, cached and output prices for every GLM model, Z.ai's list price next to ours, and what a chat turn and a long-document request cost on GLM 5.3, 5.2 and 5.3 Flash.

·UplinkSwitch·All posts
Bar chart: Z.ai output price per million tokens, the developer's list price next to ours
Rendered from the catalog on October 23, 2026.

How a GLM API request is billed

Z.ai bills GLM API calls per token, at three rates per million tokens: input, cached input and output. At list, GLM output costs three to three and a half times input. A request costs its tokens times the rates of the model it named; there is no seat or plan price.

GLM per-token rates

10 GLM models. Each row shows our price and Z.ai's list price.

ModelInputCachedOutputList inputList cachedList output
GLM 5.3$0.3276$0.068$1.0296$1.092$0.2028$3.432
GLM 5.4$0.42$0.078$1.32$1.40$0.26$4.40
GLM 5.3 Flash$0.09$0.0112$0.15$0.15$0.03$0.50
GLM 5.3 FlashX$0.0479$0.045$0.1596$0.075input rate$0.25
GLM-5.3 Flash Cybersecurity$0.525$0.2625$1.75nonenonenone
GLM 5.2$0.24$0.068$0.60$0.60$0.15$2.00
GLM 5.1$0.3824$0.325$1.2017$0.966$0.1794$3.036
GLM 5$0.3824$0.0765$1.2235nonenonenone
GLM-4.6 Derestricted v5$1.40input rate$5.25nonenonenone
GLM 4.5$1.92$0.352$7.04nonenonenone

USD per million tokens. Ours from the live catalog; list is the price on Z.ai's pricing page, the read date on each model page.

The lowest price here is GLM 5.3 Flash: $0.09 in and $0.15 out.

GLM API cost per request, worked

A chat turn of 2,000 input and 500 output tokens, and a long-document request of 50,000 input and 2,000 output. Both sizes are assumptions; nothing is counted at the cached rate.

ModelChat turn, listChat turn, hereLong document, listLong document, here
GLM 5.3$0.0039$0.0012$0.0615$0.0184
GLM 5.2$0.0022$0.0008$0.034$0.0132
GLM 5.3 Flash$0.0006$0.0003$0.0085$0.0048

Input tokens times the input rate plus output tokens times the output rate, per million.

GLM 5.3: $0.3276 in and $1.0296 out here, against $1.092 and $3.432 at list, 70% under on input and 70% on output.

GLM 5.2: $0.24 in and $0.60 out here, against $0.60 and $2.00 at list, 60% under on input and 70% on output.

GLM 5.3 Flash: $0.09 in and $0.15 out here, against $0.15 and $0.50 at list, 40% under on input and 70% on output.

GLM API cost per month, worked

Two monthly workloads on the same models: 1,000 chat turns a day and 100 long documents a day, each for 30 days. Every request is the size above, so a month of chat is 60 million input and 15 million output tokens, and a month of documents is 150 million input and 6 million output. The volumes are assumptions; nothing is counted at the cached rate.

ModelChat month, listChat month, hereDocument month, listDocument month, here
GLM 5.3$117.00$35.10$184.39$55.32
GLM 5.2$66.00$23.40$102.00$39.60
GLM 5.3 Flash$16.50$7.65$25.50$14.40

USD for 30 days: the per-request cost above times 30,000 chat turns or 3,000 documents.

GLM 5.3: $90.42 a month here for both workloads, against $301.39 at list, $210.97 less.

GLM 5.2: $63.00 a month here for both workloads, against $168.00 at list, $105.00 less.

GLM 5.3 Flash: $22.05 a month here for both workloads, against $42.00 at list, $19.95 less.

Cost scales with volume, so 10,000 chat turns a day is ten times the chat column.

What cached input does to the cost

When a request repeats a prefix the API has seen, such as a long system prompt or a document, the response reports those tokens as cached and they bill at the cached rate in the first table. A model with no cached rate bills them at its input rate.

GLM price by version

Each GLM model next to the version before it, per million tokens here. The last column is the change in Z.ai's list price where both versions have one.

ModelBefore itInputOutputList change
GLM 5.3GLM 5.2$0.24 → $0.3276$0.60 → $1.0296+82% in, +72% out
GLM 5.4GLM 5.3$0.3276 → $0.42$1.0296 → $1.32+28% in, +28% out
GLM 5.2GLM 5.1$0.3824 → $0.24$1.2017 → $0.60-38% in, -34% out
GLM 5.1GLM 5$0.3824 → $0.3824$1.2235 → $1.2017none
GLM 5GLM 4.5$1.92 → $0.3824$7.04 → $1.2235none

USD per million tokens, ours from the live catalog. "Before it" is the closest earlier version in the catalog.

GLM 5.3 costs $0.3276 in and $1.0296 out here; GLM 5.2 costs $0.24 and $0.60. At Z.ai's list the move is $0.60 to $1.092 on input and $2.00 to $3.432 on output.

GLM 5.2 costs $0.24 in and $0.60 out here; GLM 5.1 costs $0.3824 and $1.2017. At Z.ai's list the move is $0.966 to $0.60 on input and $3.036 to $2.00 on output.

A long cached session on GLM, worked

Coding tools and agents send the whole conversation again on every turn, so most of each prompt is a repeat the API has cached. Take a turn of 40,000 cached tokens, 4,000 new input tokens and 1,000 output tokens, 200 times a day. The sizes are assumptions.

ModelTurn, listTurn, here200 turns, hereTurn, nothing cached
GLM 5.3$0.0159$0.0051$1.012$0.0154
GLM 5.2$0.0104$0.0043$0.856$0.0112
GLM 5.3 Flash$0.0023$0.001$0.1916$0.0041

Cached tokens at the cached rate, or the input rate on a model without one; the last column bills every prompt token at the input rate. Cache writes are not counted.

On GLM 5.3 the cached tokens are 88% of the turn's tokens and 53% of its cost here. Without the cache the same turn costs $0.0154.

Is it the real GLM? The daily check

Once a UTC day every model here gets the same fixed test prompt. The input token count it reports is set by the developer's tokenizer, so a swapped model or added instructions shows up as a changed count. Every result is public on the daily check. The latest for each GLM model:

ModelLatest result
GLM 5.3Steady since Oct 24
GLM 5.4Steady since Dec 3
GLM 5.3 FlashSteady since Nov 28
GLM 5.3 FlashXSteady since Nov 25
GLM-5.3 Flash CybersecuritySteady since Oct 23
GLM 5.2Steady since Oct 23
GLM 5.1Steady since Nov 21
GLM 5Steady since Nov 21
GLM-4.6 Derestricted v5Steady since Nov 16
GLM 4.5Steady since Nov 20

From the public check results when this page was built.

Switching from Z.ai's API

  1. Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
  2. Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
  3. Send glm-5.3 as the model. The same key calls every other model in the catalog.

The request body stays as it is. Streams pass through unchanged, in each format's own events, and tools go out in OpenAI's tools schema with calls streaming back as tool events.

A failed request is not charged, and an answer the model refuses is not billed. Each paid top-up locks your rates for 30 days, and billing takes the lowest live rate, so inside that window a price can only go down. Every non-streamed answer carries a signed receipt of which model answered and what was billed; check one with the receipt verifier.

Calling it

Point the SDK at our base URL with your key. Every GLM id in the table works with the same two values.

openai.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.uplinkswitch.com/v1",
    api_key="sk-uplink-live-...",
)

completion = client.chat.completions.create(
    model="glm-5.3",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)

More in the SDK guide.

Questions

Is there a subscription? No. Credit is prepaid from $10, and each top-up locks your prices for 30 days.

Which GLM model should I use? GLM 5.3 for most work; here it costs less than GLM 5.1 on input and output. GLM 5.3 Flash for high-volume chat, tagging and agent subtasks, at cents per million tokens. Run the same prompt on both and compare.

Where is the full price list? On the GLM API pricing page, and every other model on the Models page. To see what your own usage would cost, re-price an export on the savings page.

How much does a GLM 5.3 coding-agent turn cost? A turn of 40,000 cached, 4,000 new input and 1,000 output tokens costs $0.0051 here and $0.0159 at Z.ai's list price. 200 of them a day is $1.012 here.

Is GLM cheaper here than on Z.ai's API? 6 of the 6 GLM models with a Z.ai list price are under it here on both input and output. GLM 5.3 is 70% under on input and 70% on output.

Does cached input cost less on GLM? Yes, on the models with a cached rate. GLM 5.3 bills cached input at $0.068 per million tokens here, against $0.3276 for new input.

What happens if a GLM request fails? It is not charged. An answer the model refuses is not billed either, judged by the format's own refusal signal, never by the answer's wording.

Which GLM model has the largest context window? GLM 5.3 FlashX, at 1,048,576 tokens. GLM 5.3 takes 1,000,000; GLM 5.2 takes 1,000,000; GLM 5.3 Flash takes 1,000,000.

What is the newest GLM model? GLM 5.3 Flash, released August 26, 2026. It costs $0.09 in and $0.15 out per million tokens here.

Can GLM 5.3 read images? No, GLM 5.3 takes text input. GLM 5.3 Flash and GLM-5.3 Flash Cybersecurity take images.

Do GLM prices here change? They follow the live catalog, and this page rebuilds from it at most every five minutes. A paid top-up locks your rates for 30 days, and billing takes the lowest live rate, so inside that window a GLM price can only go down.

How many GLM models can I call with one key? 10: GLM 5.3, GLM 5.4, GLM 5.3 Flash, GLM 5.3 FlashX, GLM-5.3 Flash Cybersecurity, GLM 5.2, GLM 5.1, GLM 5, GLM-4.6 Derestricted v5 and GLM 4.5. The same key calls every other model in the catalog too.

Join on Telegram
Help