GLM API Pricing

GLM API pricing is listed here for every GLM model, per million input and output tokens. The table is rebuilt from a public model list several times a day, so the figures follow the provider’s list prices. Enter your own request volume to turn the per-token rates into a monthly cost.

Prices read from OpenRouter's public model list on December 4, 2026.

This is an estimate, not a quote. Taxes, credits, discounts and custom contracts are not included, and the provider's own pricing page always takes precedence.

Models listed today: 18. For the example workload below, the cheapest is GLM 4.7 Flash at $0.0605 per million input tokens and $0.40 per million output tokens. The most expensive is GLM 5.3 Prime, at $1.68 in and $5.28 out. The newest entry is GLM 5.4.

GLM API pricing per million tokens

Cheapest for this workloadGLM 4.7 Flash$25.08per month for this workload
Most expensiveGLM 5.3 Prime$463.20per month for this workload
ModelInput / 1MOutput / 1MCached input / 1MContextMonthly cost
GLM 5.4z-ai/glm-5.4$1.40$4.40$0.261.05M$386.00
GLM 5.3 FlashX Legalz-ai/glm-5.3-flashx-legal$0.37$1.25$0.0751.05M$105.50
GLM 5.3 Primez-ai/glm-5.3-prime$1.68$5.28$0.3361M$463.20
GLM 5.3 FlashXz-ai/glm-5.3-flashx$0.37$1.25$0.0751.05M$105.50
GLM 5.3 Flashz-ai/glm-5.3-flash$0.15$0.50$0.031.05M$42.50
GLM 5.3z-ai/glm-5.3$0.0697$1.40$0.06891.05M$66.46
GLM 5.2z-ai/glm-5.2$0.007$5.80$0.0061.05M$233.05
GLM 5.1z-ai/glm-5.1$1.40$4.40$0.26205K$386.00
GLM 5V Turboz-ai/glm-5v-turbo$1.20$4.00$0.24203K$340.00
GLM 5 Turboz-ai/glm-5-turbo$1.20$4.00$0.24203K$340.00
GLM 5z-ai/glm-5$1.00$3.20$0.20205K$278.00
GLM 4.7 Flashz-ai/glm-4.7-flash$0.0605$0.40-131K$25.08
GLM 4.7z-ai/glm-4.7$0.40$1.75$0.08203K$130.00
GLM 4.6Vz-ai/glm-4.6v$0.30$0.90$0.05131K$81.00
GLM 4.6z-ai/glm-4.6$0.50$2.00$0.10203K$155.00
GLM 4.5Vz-ai/glm-4.5v$0.60$1.80$0.1166K$162.00
GLM 4.5z-ai/glm-4.5$0.60$2.20$0.11131K$178.00
GLM 4.5 Airz-ai/glm-4.5-air$0.20$1.10$0.03131K$74.00

GLM API pricing is shown in US dollars per million tokens, newest model first. The monthly cost uses the three fields above the table.

Similar prices from other providers

These models from other providers cost about the same as GLM 5.4 for the workload above. The list shows one model per provider, the closest in price.

ModelInput / 1MOutput / 1MContextMonthly cost
Qwen4 Maxqwen/qwen4-max$1.425$4.2751M$384.75
Kimi K3.1 Promoonshotai/kimi-k3.1-pro$0.253$8.801.05M$389.95
Muse Spark Openmeta/muse-spark-open$1.25$4.251.05M$357.50
GPT-6.1 Terra Proopenai/gpt-6.1-terra-pro$1.00$5.001.05M$350.00
Claude Haiku 4.5anthropic/claude-haiku-4.5$1.00$5.00200K$350.00
Gemini 3.8 Flashgoogle/gemini-3.8-flash$0.825$4.1251.05M$288.75

Compare all models in the LLM cost calculatorCount tokens in your text

How to read GLM API pricing

Every row in the table is one GLM model. The first two price columns show what a million input tokens and a million output tokens cost in US dollars. Input tokens are what you send, such as the prompt, the instructions and any documents. Output tokens are what the model writes back, and they usually cost several times more.

The cached input column shows the reduced rate for a prompt prefix the provider has already seen, where one is published. Context is the largest number of tokens a single request can hold. Finally, the last column shows the monthly cost for the usage you typed above the table, so you can compare GLM API pricing across models at a glance.

Who checks GLM API pricing

Developers check GLM API pricing before they pick a model for a new feature. Product owners use the monthly column to see whether a feature still pays for itself at ten times the traffic. Agencies use it to put a running cost into a proposal, while finance teams use it to check an invoice. Because the table updates by itself, it also shows when a new GLM model has been listed.

How GLM API pricing turns into a monthly bill

GLM API Pricing

The arithmetic is simple. First, multiply the requests per month by the input tokens in each request, and divide by one million. Then multiply the result by the input rate. After that, do the same for output tokens with the output rate, and add the two figures together.

For example, a support assistant might answer 100,000 questions a month, with 1,500 tokens going in and 400 coming out each time. That is 150 million input tokens and 40 million output tokens. The fields above the table do this sum for every model, so you do not need a spreadsheet.

However, real traffic is rarely that even. Long conversations resend earlier messages as input, so the input side grows with every turn. As a rule, measure a few real requests before you trust an estimate.

What makes GLM API pricing higher or lower

Output length matters most, because output tokens carry the higher rate. A model that writes 800 tokens where 200 would do costs far more than its input price suggests. Therefore the cheapest change is often a tighter instruction or a lower output limit.

Model choice comes next, and it changes GLM API pricing the most. Within one family the largest model can cost many times more than the smallest, while many everyday tasks run well on the smaller one. For that reason many teams send simple requests to a small model and pass only the hard ones to a large model.

In addition, prompt caching lowers the input cost when the same long prefix is sent again and again, for example a system prompt or a product catalogue. Batch processing is also cheaper with several providers, but it is slower and it is not shown in this table.

What the table does not include

GLM API pricing in this table means list prices for pay-as-you-go API usage. The figures do not include volume discounts, committed-spend contracts, batch discounts or free credits. They also leave out separate fees for tools such as web search, code execution or image input, because those are charged in other units.

Subscriptions are a different product. A monthly chat plan gives a person access to an app, while the API bills a program for every token. So GLM API pricing tells you what an application costs to run, not what a seat in the chat app costs.

Finally, the same model can be priced differently on a cloud marketplace than on the provider's own API. If you buy through a cloud account, check that platform's price list as well.

How current the GLM API pricing table is

Model prices change often, and new models appear every few weeks. For that reason nothing in this table is typed in by hand. The prices are read from OpenRouter's public model list each time this site is rebuilt, which happens several times a day.

The note above the table shows the date of the last successful read. If the list cannot be read, the page falls back to a saved copy and shows the older date instead. When that copy is more than 45 days old, a warning appears.

Even so, treat every figure as an estimate. The provider's own pricing page is the final word, so check it before you commit a budget. This site is independent and is not affiliated with any model provider.

Planning an AI feature?

We build AI integrations with cost controls, evaluation and human review, and we start with a scoped pilot.

Talk to us about AI integration

Frequently Asked Questions

What does GLM API pricing per million tokens mean?

Providers bill by the token, which is a piece of a word. A price per million tokens is the cost of sending or receiving one million of those pieces. In English, a million tokens is roughly 750,000 words.

Why is output more expensive than input in GLM API pricing?

Generating text takes more computing work than reading it, because the model produces one token at a time. As a result, most providers charge several times more for output than for input.

How often is this GLM API pricing table updated?

The table is rebuilt several times a day from a public model list. The note above it shows the date of the last read, and it tells you when a saved copy is being used instead.

Does GLM API pricing include a free tier?

No. GLM API pricing here covers paid list prices only. Some providers offer trial credits or free rate-limited access, but those offers change often and are not part of this table.

Is GLM API pricing the same as the chat subscription price?

No. A subscription is a fixed monthly fee for a person who uses the app. The API is billed per token to whoever runs the application, and the two are sold separately.

More questions about GLM API pricing

Which GLM model is the cheapest?

The summary above the table names the cheapest model for the example workload at the time of the last update. However, the cheapest model is not always the cheapest way to finish a task, because a weaker model may need more attempts.

What is a context window?

It is the largest number of tokens one request can hold, counting both your input and the answer. A larger window lets you send longer documents, but every token you send is still billed.

What is cached input?

Some providers store the start of a prompt they have already processed. When you send the same prefix again, those tokens are billed at a lower cached rate. The column shows a dash where no cached price is published.

Can I compare GLM with other providers?

Yes. The second table lists models from other providers with a similar price. In addition, the LLM cost calculator ranks more than 200 models for the same workload.

Are these prices official?

They are list prices collected by a third party from each provider. They are usually accurate, but mistakes and delays happen. Therefore, always confirm on the provider's own pricing page before you sign off a budget.

A PROJECT STARTS WITH A CONVERSATION

Tell us what
you have in mind.

Share the outcome you need, your existing systems and any constraints. You don't need a technical specification to start.

If the form does not work, email us directly at contact@mecanik.dev

Direct engineering support

Direct technical collaboration.
A clear scope and accountable delivery.