Models / GLM pricing
GLM API pricing
10 GLM models from Z.ai on one key, per million tokens. Input 36% to 70% under Z.ai's list price, output 36% to 70%. Lowest price: GLM 5.3 Flash, $0.09 in and $0.15 out.
Prices · per million tokens, USD, next to Z.ai's list price
| Model | Input | Cached input | Output | Under list |
|---|---|---|---|---|
| GLM 5.3 APIglm-5.3 | $0.3276list $1.092 | $0.068list $0.2028 | $1.0296list $3.432 | 70% in · 70% out |
| GLM 5.4 APIglm-5.4 | $0.42list $1.40 | $0.078list $0.26 | $1.32list $4.40 | 70% in · 70% out |
| GLM 5.3 Flash APIglm-5.3-flash | $0.09list $0.15 | $0.0112list $0.03 | $0.15list $0.50 | 40% in · 70% out |
| GLM 5.3 FlashX APIglm-5.3-flashx | $0.0479list $0.075 | $0.045 | $0.1596list $0.25 | 36% in · 36% out |
| GLM-5.3 Flash Cybersecurity APIglm-5.3-flash-cybersecurity | $0.525 | $0.2625 | $1.75 | no list price |
| GLM 5.2 APIglm-5.2 | $0.24list $0.60 | $0.068list $0.15 | $0.60list $2.00 | 60% in · 70% out |
| GLM 5.1 APIglm-5.1 | $0.3824list $0.966 | $0.325list $0.1794 | $1.2017list $3.036 | 60% in · 60% out |
| GLM 5 APIglm-5 | $0.3824 | $0.0765 | $1.2235 | no list price |
| GLM-4.6 Derestricted v5 APIglm-4.6-derestricted-v5 | $1.40 | input rate | $5.25 | no list price |
| GLM 4.5 APIglm-4.5 | $1.92 | $0.352 | $7.04 | no list price |
What each model accepts
| Input | API | Pricing | |||||
|---|---|---|---|---|---|---|---|
| Text | Image | Audio | Video | OpenAI format | Anthropic format | Cached input | |
| GLM 5.3 | Supported | Not supported | Not supported | Not supported | Supported | Not supported | Supported |
| GLM 5.4 | Not listed | Not listed | Not listed | Not listed | Supported | Not supported | Supported |
| GLM 5.3 Flash | Supported | Supported | Not supported | Supported | Supported | Not supported | Supported |
| GLM 5.3 FlashX | Not listed | Not listed | Not listed | Not listed | Supported | Not supported | Supported |
| GLM-5.3 Flash Cybersecurity | Supported | Supported | Not supported | Not supported | Supported | Not supported | Supported |
| GLM 5.2 | Supported | Not supported | Not supported | Not supported | Supported | Not supported | Supported |
| GLM 5.1 | Supported | Not supported | Not supported | Not supported | Supported | Not supported | Supported |
| GLM 5 | Not listed | Not listed | Not listed | Not listed | Supported | Not supported | Supported |
| GLM-4.6 Derestricted v5 | Supported | Not supported | Not supported | Not supported | Supported | Not supported | Not supported |
| GLM 4.5 | Not listed | Not listed | Not listed | Not listed | Supported | Not supported | Supported |
How GLM API pricing works · per million tokens, billed per request
GLM API pricing is per million tokens, with input and output billed separately. On GLM 5.3 input is $0.3276 and output $1.0296 per million here, so one output token costs 3.1 times one input token. Z.ai's list price for the same model is $1.092 and $3.432.
9 of the 10 GLM models have a cached input rate. A cache read on GLM 5.3 costs $0.068 per million, 21% of its input rate, so a system prompt or document that repeats across requests bills at the cached rate after the first one. A model with no cached rate bills cached tokens at its input rate.
Every request bills from prepaid credit, from $10, with no subscription. Each paid top-up locks your rates for 30 days, and inside that window a price can only go down. A non-streamed response carries the request's cost and its saving against list in its headers, x-uplink-charge and x-uplink-saved.
Price your own token counts on every GLM model with the LLM cost calculator.
GLM API cost per request · three request shapes at live prices
A request costs its tokens times the rate. The table prices three shapes on every GLM model at today's rates, with Z.ai's list price under each figure where one is published.
| Model | Chat turn2,000 in, 500 out | Long document30,000 in, 1,000 out | Agent turn40,000 in, 30,000 of them cached, 1,500 out |
|---|---|---|---|
| GLM 5.3 | $0.0012list $0.0039 | $0.0109list $0.0362 | $0.0069list $0.0222 |
| GLM 5.4 | $0.0015list $0.005 | $0.0139list $0.0464 | $0.0085list $0.0284 |
| GLM 5.3 Flash | $0.0003list $0.0006 | $0.0029list $0.005 | $0.0015list $0.0032 |
| GLM 5.3 FlashX | $0.0002list $0.0003 | $0.0016list $0.0025 | $0.0021list $0.0034 |
| GLM-5.3 Flash Cybersecurity | $0.0019 | $0.0175 | $0.0158 |
| GLM 5.2 | $0.0008list $0.0022 | $0.0078list $0.02 | $0.0053list $0.0135 |
| GLM 5.1 | $0.0014list $0.0035 | $0.0127list $0.032 | $0.0154list $0.0196 |
| GLM 5 | $0.0014 | $0.0127 | $0.008 |
| GLM-4.6 Derestricted v5 | $0.0054 | $0.0473 | $0.0639 |
| GLM 4.5 | $0.0074 | $0.0646 | $0.0403 |
Worked through on GLM 5.3: a chat turn is 2,000 × $0.3276 / 1,000,000 + 500 × $1.0296 / 1,000,000 = $0.0012. A thousand such turns come to $1.17.
GLM API cost per request: Z.ai's API next to one price here · one request of 2,000 input and 500 output tokens
| Model | Z.ai list | Here | Request at Z.ai | Request here |
|---|---|---|---|---|
| GLM 5.3glm-5.3 | $1.092 / $3.432 | $0.3276 / $1.0296 | $0.0039 | $0.0012 |
| GLM 5.4glm-5.4 | $1.40 / $4.40 | $0.42 / $1.32 | $0.005 | $0.0015 |
| GLM 5.3 Flashglm-5.3-flash | $0.15 / $0.50 | $0.09 / $0.15 | $0.0006 | $0.0003 |
| GLM 5.3 FlashXglm-5.3-flashx | $0.075 / $0.25 | $0.0479 / $0.1596 | $0.0003 | $0.0002 |
| GLM 5.2glm-5.2 | $0.60 / $2.00 | $0.24 / $0.60 | $0.0022 | $0.0008 |
| GLM 5.1glm-5.1 | $0.966 / $3.036 | $0.3824 / $1.2017 | $0.0035 | $0.0014 |
USD per million tokens as input / output, then one request at each rate. Ours from the live catalog; Z.ai's from its pricing page, the read date on each model page.
One key calls every GLM model above and, on the same base URL, the GLM-5.3 uncensored and abliterated builds on the uncensored LLM API page.
Which GLM model to choose on price · lowest to highest, per 1,000 chat turns
By the chat turn above, GLM 5.3 FlashX costs the least at $0.1756 per 1,000 turns and GLM 4.5 the most at $7.36, 42 times as much. The context window and output limit are Z.ai's published figures for each model.
| Model | 1,000 chat turns | Context window | Max output |
|---|---|---|---|
| GLM 5.3 FlashXglm-5.3-flashx | $0.1756 | 1,049K | not published |
| GLM 5.3 Flashglm-5.3-flash | $0.255 | 1M | 131,072 |
| GLM 5.2glm-5.2 | $0.78 | 1M | 131,072 |
| GLM 5.3glm-5.3 | $1.17 | 1M | 131,072 |
| GLM 5.1glm-5.1 | $1.3655 | 200K | 131,072 |
| GLM 5glm-5 | $1.3765 | 198K | not published |
| GLM 5.4glm-5.4 | $1.50 | 1M | not published |
| GLM-5.3 Flash Cybersecurityglm-5.3-flash-cybersecurity | $1.925 | 1,049K | 32,768 |
| GLM-4.6 Derestricted v5glm-4.6-derestricted-v5 | $5.425 | 131K | not published |
| GLM 4.5glm-4.5 | $7.36 | 128K | not published |
GLM vs other model families · the lead model of each, per 1,000 chat turns
The lead model of each family on the same key, priced on the same chat turn. GLM 5.3 comes to $1.17 per 1,000 turns; GPT-6.1 Sol, the lead GPT model, to $2.70.
| Family | Lead model | Input | Output | 1,000 chat turns |
|---|---|---|---|---|
| Claude API pricing | Claude Fable 5.2 | $4.00 | $20.00 | $18.00 |
| GPT API pricing | GPT-6.1 Sol | $0.60 | $3.00 | $2.70 |
| Gemini API pricing | Gemini 4 Argon | $1.20 | $3.00 | $3.90 |
| Grok API pricing | Grok 4.6 | $0.60 | $1.80 | $2.10 |
| DeepSeek API pricing | DeepSeek V4 Pro 0813 | $0.792 | $1.188 | $2.178 |
| Kimi API pricing | Kimi K3 | $0.90 | $4.50 | $4.05 |
| GLM | GLM 5.3 | $0.3276 | $1.0296 | $1.17 |
| Qwen API pricing | Qwen3.7 Max | $0.6471 | $1.9412 | $2.2647 |
| MiniMax API pricing | MiniMax M3 | $0.09 | $0.36 | $0.36 |
| MiMo API pricing | MiMo V2.6 Flash | $0.084 | $0.12 | $0.228 |
Call them · same base URL and key for every model
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)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'glm-5.3',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);