# Zhipu: zai-org/GLM-5

Zhipu AI's GLM-5 is an open-weight mixture-of-experts model with 744B total and 40B active parameters, under MIT. It targets systems engineering and long-running agent tasks, uses DeepSeek Sparse Attention, and has a thinking mode.

- **Model id:** `opencheap/glm-5`
- **Price per 1M tokens:** $0.048 input / $0.13 output
- **Cached input:** $0.0095 per 1M tokens
- **Context:** 202K tokens, 131K max output

## Providers

10 providers. Prices are per 1M tokens. As of 2026-12-04 11:56 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Surplus · quantization unknown | $0.048 | $0.0095 | $0.13 | 1.17 s | 99 tok/s | 100 % (success rate) | 198K | 32K |
| Qubax · quantization unknown | $0.22 | $0.04 | $0.89 | 2.18 s | 70 tok/s | 100 % (success rate) | 198K | 32K |
| StreamLake · fp8 | $0.63 | $0.13 | $2.02 | 1.60 s | 79 tok/s | 100 % | 198K | 128K |
| Baidu · fp8 | $0.73 | $0.15 | $2.35 | 1.68 s | 46 tok/s | 99.9 % | 202K | 131K |
| NanoGPT · quantization unknown | $0.86 | $0.17 | $2.74 | 1.92 s | 67 tok/s | 100 % (success rate) | 200K | 128K |
| SiliconFlow · fp8 | $1.00 | $0.21 | $2.68 | 1.10 s | 64 tok/s | 100 % | 204K | 131K |
| Hugging Face · amazon-bedrock · quantization unknown | $1.00 | $1.00* | $3.20 | 0.55 s | 272 tok/s | 100 % (success rate) | 202K | — |
| Amazon Bedrock · quantization unknown | $1.05 | $1.05* | $3.36 | 0.89 s | 101 tok/s | 96.6 % | 202K | 131K |
| Z.AI · fp8 | $1.05 | $0.21 | $3.36 | 1.37 s | 62 tok/s | 100 % | 202K | 131K |

\* No cache discount from this provider: cached tokens cost the input price.

1 more provider through partner hosts · from $0.90 in · $2.87 out

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)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Surplus:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Qubax:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **StreamLake:** `temperature`, `top_p`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Baidu:** `temperature`, `top_p`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **SiliconFlow:** `temperature`, `top_p`, `top_k`, `frequency_penalty`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **Hugging Face · amazon-bedrock:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `tools`, `tool_choice`
- **Amazon Bedrock:** `temperature`, `top_p`, `seed`, `stop`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Z.AI:** `temperature`, `top_p`, `top_k`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)

## 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#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/glm-5`; 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", "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",
    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",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About zai-org/GLM-5

zai-org/GLM-5 costs from $0.048 per 1M input tokens and $0.13 per 1M output tokens on OpenCheap, with cached input at $0.0095 per 1M tokens. Its list price is $1.00 per 1M input tokens and $3.20 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 96 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.0006, and 1,000 such requests about $0.60. Prices as of 2026-12-04 11:48 UTC.

10 providers serve zai-org/GLM-5 on OpenCheap. 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 202K tokens (202,752), room for roughly 150,000 words of English in one request.

zai-org/GLM-5 is one of [53 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`.

## Pricing questions

### How much does the zai-org/GLM-5 API cost per 1M tokens?

zai-org/GLM-5 costs from $0.048 per 1M input tokens and $0.13 per 1M output tokens on OpenCheap, with cached input at $0.0095 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one zai-org/GLM-5 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.0006, and 1,000 such requests about $0.60. Every answer reports its own cost in usage.cost.

### Is zai-org/GLM-5 cheaper on OpenCheap than its list price?

Its list price is $1.00 per 1M input tokens and $3.20 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 96 % less here.

### Which providers serve zai-org/GLM-5?

10 providers serve zai-org/GLM-5 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of zai-org/GLM-5?

Its context window is 202K tokens (202,752), room for roughly 150,000 words of English in one request.

### How do I call the zai-org/GLM-5 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/glm-5. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Zhipu

- [GLM 5 Thinking](https://opencheap.si/models/glm-5:thinking) (`glm-5:thinking`): $0.86 / $2.74 per 1M · 200K context
- [GLM 5.3](https://opencheap.si/models/glm-5.3) (`glm-5.3`): $0.12 / $0.037 per 1M · 1M context
- [GLM 5.3 Flash](https://opencheap.si/models/glm-5.3-flash) (`glm-5.3-flash`): $0.0064 / $0.022 per 1M · 1M context
- [GLM 5.2](https://opencheap.si/models/glm-5.2) (`glm-5.2`): $0.07 / $0.22 per 1M · 1M context
- [GLM 5.1](https://opencheap.si/models/glm-5.1) (`glm-5.1`): $0.15 / $0.46 per 1M · 204K context
- [GLM 4.7](https://opencheap.si/models/glm-4.7) (`glm-4.7`): $0.032 / $0.14 per 1M · 202K context
- [GLM 4.6](https://opencheap.si/models/glm-4.6) (`glm-4.6`): $0.044 / $0.18 per 1M · 202K context
- [GLM 4.5](https://opencheap.si/models/glm-4.5) (`glm-4.5`): $0.15 / $0.55 per 1M · 131K context

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

## Similar models

- [Kimi K2.5](https://opencheap.si/models/kimi-k2.5): Moonshot · 262K context · $0.017 / $0.083 per 1M, 39 % cheaper · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-kimi-k2.5)
- [Ternary Bonsai2 9B](https://opencheap.si/models/ternary-bonsai-2-9b): PrismML · 262K context · $0.08 / $0.13 per 1M · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-ternary-bonsai-2-9b)
- [Xiaomi Mimo V2.6 Pro](https://opencheap.si/models/mimo-v2.6-pro): Xiaomi · 1M context · $0.054 / $0.11 per 1M, 13 % cheaper · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-mimo-v2.6-pro)
- [Phi 4 Multimodal Instruct](https://opencheap.si/models/phi-4-multimodal): Microsoft · 128K context · $0.07 / $0.11 per 1M, 7 % cheaper · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-phi-4-multimodal)
- [DiffusionGemma](https://opencheap.si/models/diffusiongemma): Google · 262K context · $0.05 / $0.15 per 1M · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-diffusiongemma)
- [Schematron V2 Turbo](https://opencheap.si/models/schematron-v2-turbo): Inference.net · 128K context · $0.03 / $0.15 per 1M · [Compare with zai-org/GLM-5](https://opencheap.si/compare/glm-5-vs-schematron-v2-turbo)

[Compare zai-org/GLM-5 with any model](https://opencheap.si/compare)

---

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