GLM-5.4
Z.AI's flagship coding and agent model, the first built on its Loop Transformer architecture.
- Context
- 1M tokens
- Max output
- 131K
- Released
Hosted API price
List price via Z.AI · per 1M tokens
- Input
- $1.40 /1M
- Output
- $4.40 /1M
- Cheapest
- $0.98 / $3.08 via Verda
- Hosted by
-
2 providers
Hosted API pricing
How we price
Order
Providers are listed cheapest input rate first, then by output rate, a tie going to the creator's own listing. A provider that lists the model without a published rate sits at the end.
Prices
Base-tier, on-demand rates in USD per 1M tokens, converted at ECB reference rates where a provider publishes in another currency. Cached-input and batch rates show only where a provider publishes them. "Cheapest" marks the one provider with the lowest input and output pair; a tie wears no badge.
Cost
Input rate times the input tokens plus output rate times the output tokens, at the monthly volume set above the table. Cached-input, batch, long-context and reasoning-token billing are not modelled.
Transparency and funding
- Affiliates: Affiliate links are marked. We may earn a commission if you click them, but commissions never affect the order.
Every provider serving GLM-5.4, cheapest input first. Set your monthly volume to see what each would bill.
| Provider | Input /1M | Output /1M | Cached input /1M | Cost at 10M in + 2M out | Link |
|---|---|---|---|---|---|
|
|
$0.98 | $3.08 | $0.18 | $15.96 | Visit website |
|
|
$1.40 | $4.40 | $0.26 | $22.80 | Visit website |
Heads up: Base-tier, on-demand rates per 1M tokens; cached, batch and long-context tiers excluded. A provider may serve a shorter context or a quantized build than the creator's release. Verify before provisioning. More on how we price.
Similarly priced models
The models nearest GLM-5.4 by blended rate, each at its own cheapest provider.
| Model | Blended /1M | Input /1M | Output /1M | Context | Cutoff | vs GLM-5.4 |
|---|---|---|---|---|---|---|
|
|
$1.11 | $0.83 | $2.50 | 1M | −16% | |
|
|
$1.17 | $1.00 | $2.00 | 256K | −12% | |
|
|
$1.24 | $0.83 | $3.30 | 205K | −7% | |
|
|
$1.25 | $0.75 | $3.75 | 1M | Mar 2026 | −6% |
|
|
$1.25 | $0.75 | $3.75 | 1M | Mar 2026 | −6% |
|
|
$1.33 | $0.98 | $3.08 | 1M | ||
|
|
$1.37 | $1.00 | $3.20 | 200K | +3% | |
|
|
$1.38 | $0.75 | $4.50 | 400K | Aug 2025 | +3% |
|
|
$1.38 | $0.90 | $3.75 | 262K | +3% | |
|
|
$1.46 | $1.25 | $2.50 | 1M | +10% | |
|
|
$1.46 | $1.25 | $2.50 | 1M | +10% |
USD per 1M tokens at each model's cheapest listed provider. Blended is the cost of 10M input plus 2M output tokens, spread over the 12M.
Capabilities
What GLM-5.4 accepts and can do, as published by Z.AI.
- Text Accepts and generates natural-language text.
- Image Accepts images as input alongside text.
- Video Accepts video as input.
- Reasoning Thinks before it answers, always on or as a switchable mode.
- Function calling Connect to external tools, APIs, and systems.
- Structured output Return responses in structured formats like JSON.
Common questions
What is GLM-5.4 good for?
Software engineering and long agent tasks, plus work Z.AI now reaches through code: editing video, building games, and 3D and CAD modeling.
When is GLM-5.4 not a good fit?
Z.AI has not published its weights, so it runs only through hosted APIs. It sits at the top of Z.AI's price range, and Z.AI says it can get caught in overly long thinking loops.
What is the cheapest way to run GLM-5.4?
The cheapest hosted rate is $0.98 / $3.08 per 1M tokens via Verda; the creator's list price is $1.40 / $4.40.
How does GLM-5.4 compare with GLM-5.3?
Z.AI says GLM-5.4 runs a block of GLM-5 base layers twice, so it reasons more deeply without adding parameters and spends fewer tokens on thinking, and that better coding and vision carry it into video, games and 3D modeling. Same price and 1M-token context. GLM-5.4 came out 4 months later, takes image and video input, which GLM-5.3 does not and keeps its weights closed, where GLM-5.3 publishes them under GLM-5.3 License.
Can I self-host GLM-5.4?
No. Z.AI does not publish the weights; GLM-5.4 is available only through hosted APIs.
More from Z.AI
-
GLM-5
Open weights
200K context
From $1.00 / $3.20 /1M in / out at the cheapest provider -
GLM-5.1
Open weights
205K context
From $0.83 / $3.30 /1M in / out at the cheapest provider -
GLM-5-Turbo
205K context
From $1.20 / $4.00 /1M in / out at the cheapest provider -
GLM-5V-Turbo
205K context
From $1.20 / $4.00 /1M in / out at the cheapest provider -
GLM-5.2
Open weights
1M context
From $0.56 / $1.80 /1M in / out at the cheapest provider -
GLM-4.7
Open weights
205K context
From $0.40 / $1.75 /1M in / out at the cheapest provider -
GLM-5.3
Open weights
1M context
From $0.079 / $3.00 /1M in / out at the cheapest provider -
GLM-5.3-Flash
Open weights
1M context
From $0.045 / $0.45 /1M in / out at the cheapest provider