# Zhipu: GLM 5.4

- **Model id:** `opencheap/glm-5.4`
- **Price per 1M tokens:** $1.26 input / $3.96 output
- **Cached input:** $0 per 1M tokens
- **Context:** 1M tokens, 131K max output

## Providers

1 provider. Prices are per 1M tokens. As of 2026-11-24 00:01 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| Qubax | $1.26 | $0 | $3.96 | 1M | 131K |

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/glm-5.4#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/glm-5.4`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/glm-5.4", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/glm-5.4",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/glm-5.4",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About GLM 5.4

GLM 5.4 costs from $1.26 per 1M input tokens and $3.96 per 1M output tokens on OpenCheap, with cached input at $0 per 1M tokens. It has no public list price to compare with. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.017, and 1,000 such requests about $16.56. Prices as of 2026-11-23 23:56 UTC.

One provider serves GLM 5.4 on OpenCheap today. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 1M tokens (1,000,000), room for roughly 750,000 words of English in one request.

GLM 5.4 is one of [55 Zhipu models](https://opencheap.si/models/lab/zhipu) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## More from Zhipu

- [GLM 5.3](https://opencheap.si/models/glm-5.3) (`glm-5.3`): $0.13 / $0.045 per 1M · 1M context
- [GLM 5.3 Flash](https://opencheap.si/models/glm-5.3-flash) (`glm-5.3-flash`): $0.036 / $0.082 per 1M · 1M context
- [GLM 5.2](https://opencheap.si/models/glm-5.2) (`glm-5.2`): $0.042 / $0.13 per 1M · 1M context
- [GLM 5.1](https://opencheap.si/models/glm-5.1) (`glm-5.1`): $0.055 / $0.22 per 1M · 204K context
- [GLM 4.7](https://opencheap.si/models/glm-4.7) (`glm-4.7`): $0.15 / $0.62 per 1M · 204K context
- [GLM 4.6](https://opencheap.si/models/glm-4.6) (`glm-4.6`): $0.16 / $0.65 per 1M · 204K context
- [zai-org/AutoGLM-Phone-9B-Multilingual](https://opencheap.si/models/autoglm-phone-9b-multilingual) (`autoglm-phone-9b-multilingual`): $0.035 / $0.14 per 1M · 65K context
- [GLM 5.1 E2EE](https://opencheap.si/models/e2ee-glm-5.1) (`e2ee-glm-5.1`): $0.66 / $2.49 per 1M · 200K context

[All 55 Zhipu models](https://opencheap.si/models/lab/zhipu)

## Similar models

- [Kimi K3.1 Pro](https://opencheap.si/models/kimi-k3.1-pro): Moonshot · 1M context · $1.68 / $2.52 per 1M, 30 % cheaper · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-kimi-k3.1-pro)
- [Qwen4 Max](https://opencheap.si/models/qwen4-max): Qwen · 1M context · $1.41 / $4.24 per 1M · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-qwen4-max)
- [Qwen3.7 Max](https://opencheap.si/models/qwen3.7-max): Qwen · 1M context · $1.48 / $4.42 per 1M · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-qwen3.7-max)
- [Muse Spark 1.1](https://opencheap.si/models/muse-spark-1.1): Meta · 1M context · $1.08 / $3.67 per 1M, 8 % cheaper · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-muse-spark-1.1)
- [Muse Spark Open](https://opencheap.si/models/muse-spark-open): Meta · 1M context · $1.00 / $3.40 per 1M, 15 % cheaper · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-muse-spark-open)
- [ERNIE Light DT 1.0 (Intl)](https://opencheap.si/models/ernie-light-dt-1.0-intl): Baidu · 1M context · $1.19 / $4.14 per 1M · [Compare with GLM 5.4](https://opencheap.si/compare/glm-5.4-vs-ernie-light-dt-1.0-intl)

[Compare GLM 5.4 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/glm-5.4 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
