GLM 5.4
$1.40 per 1M input tokens and $4.40 per 1M output tokens · 1.05M context · vision, tools, reasoning, JSON, open weights.
Prices checked Dec 3, 2026 · tracked by LLM Cost Index since Dec 3, 2026
What GLM 5.4 costs per month
Estimated monthly bill for typical workloads, using the cached-input price for repeated context. Try your own numbers in the cost calculator.
| Workload | Per month |
|---|---|
| Customer chatbot 1,000 conversations a day, 8 turns each | $627 |
| Document Q&A (RAG) 500 questions a day over retrieved documents | $149 |
| Coding / tool-using agent 200 tasks a day, long tool-heavy contexts | $302 |
| Content generation 30 long articles a day | $13.68 |
| Classification / extraction 100,000 short items a day | $1,458 |
Price history
We started tracking GLM 5.4 on Dec 3, 2026; the chart appears as soon as there is a second data point. See all recent price changes.
Where to run GLM 5.4: 7 providers
PrimeIntellect is the cheapest at $1.20 input / $4.00 output per 1M tokens. Uptime is the average over the last 30 days as reported by OpenRouter; see provider reliability.
| Provider | Input / 1M | Output / 1M | Context | Uptime | Notes |
|---|---|---|---|---|---|
| PrimeIntellect | $1.20 | $4.00 | 1.05M | 99.9% | — |
| BaseTen | $1.40 | $4.40 | 1.05M | 100% | fp8 |
| Crusoe | $1.40 | $4.40 | 1.05M | 99.9% | fp8 |
| Friendli | $1.40 | $4.40 | 1.05M | 99.1% | — |
| Inferact vLLM | $1.40 | $4.40 | 1.05M | 100% | mxfp8 |
| Modal | $1.40 | $4.40 | 1.05M | 99.1% | — |
| Z.AI | $1.40 | $4.40 | 1.05M | 88% | fp8 |
Cheaper alternatives to GLM 5.4
Models with the same tool calling, image input, structured output for at least 20% less (3:1 input/output mix), most capable first.
| Model | Input / 1M | Output / 1M | Context | Capabilities |
|---|---|---|---|---|
| Claude Haiku 5.5 Anthropic | $0.10 | $0.50 | 1M | visiontoolsreasoningJSON |
| Muse Ember Meta | $0.10 | $0.50 | 1.05M | visionaudiotoolsreasoningJSON |
| Hy4 Tencent | $0.417 | $1.25 | 1.05M | visiontoolsreasoningJSONopen weights |
| DeepSeek V4.1 Flash 1017 DeepSeek | $0.02 | $0.20 | 1.05M | visiontoolsreasoningJSONopen weights |
| Inkling 2 Small Thinkingmachines | $0.15 | $0.50 | 1.05M | visiontoolsreasoningJSONopen weights |
How to pay less for GLM 5.4
For a customer chatbot (1,000 conversations a day, 8 turns each) that costs $874 a month at list price without caching:
| Option | Per month | You save |
|---|---|---|
| Move to Claude Haiku 5.5 (similar capabilities) | $58.56 | $815 (93%) |
| Use prompt caching (60% of input cached) | $627 | $246 (28%) |
| Route to PrimeIntellect | $768 | $106 (12%) |
Other workloads: cut-your-bill tool for GLM 5.4.
Specifications
| Model ID | z-ai/glm-5.4 |
| Input | text, image, video |
| Output | text |
| Tool calling | Yes |
| Structured output | Yes |
| Reasoning mode | Yes |
| Open weights | Yes — zai-org/GLM-5.4 |
| Released | Dec 2, 2026 |
FAQ
- How much does GLM 5.4 cost?
- $1.40 per million input tokens and $4.40 per million output tokens; cached input costs $0.26 per million. Prices as of Dec 3, 2026.
- What is the context window of GLM 5.4?
- 1.05M tokens, with up to 944K output tokens per response.
- Does GLM 5.4 support images, tools and structured output?
- Images as input: yes. Tool calling: yes. Structured (JSON) output: yes. Reasoning mode: yes.
- What are cheaper alternatives to GLM 5.4?
- Models with the same key capabilities for at least 20% less include Claude Haiku 5.5 ($0.10 / $0.50), Muse Ember ($0.10 / $0.50), Hy4 ($0.417 / $1.25).
More from Z.ai: all Z.ai models · how we collect prices