# Zhipu: GLM 4.6

Zhipu AI's GLM-4.6 succeeds GLM-4.5 as an open-weight, MIT-licensed text model for coding, agents and writing. It can use tools while reasoning and is tuned for coding inside agent tools, writing and role-play.

- **Model id:** `opencheap/glm-4.6`
- **Price per 1M tokens:** $0.044 input / $0.18 output
- **Cached input:** $0.0081 per 1M tokens
- **Context:** 198K tokens, 131K max output

## Providers

8 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.044 | $0.0081 | $0.18 | 0.75 s | 113 tok/s | 100 % (success rate) | 198K | 16K |
| Qubax · quantization unknown | $0.052 | $0.0096 | $0.21 | 1.82 s | 110 tok/s | 100 % (success rate) | 198K | 16K |
| AiHubMix · quantization unknown | $0.27 | $0.055 | $1.10 | — | — | 0 % (success rate) | 200K | 131K |
| DeepInfra · Route 1 · fp4 | $0.42 | $0.084 | $1.68 | 1.28 s | 44 tok/s | 100 % | 202K | 131K |
| DeepInfra · Route 2 · fp4 | $0.53 | $0.10 | $2.10 | 0.67 s | 40 tok/s | 100 % | 202K | 131K |
| Hugging Face · venice · fp4 | $0.43 | $0.43* | $1.75 | 0.59 s | 78 tok/s | 100 % (success rate) | 198K | — |
| Venice · fp4 | $0.45 | $0.084 | $1.84 | 1.41 s | 54 tok/s | 100 % | 198K | 16K |
| NanoGPT · quantization unknown | $0.55 | $0.11 | $2.20 | 1.66 s | 64 tok/s | 100 % (success rate) | 200K | 65K |
| Z.AI · fp4 | $0.63 | $0.12 | $2.31 | 1.15 s | 55 tok/s | 99.9 % | 202K | 131K |

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

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`
- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **DeepInfra · Route 1 · fp4:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **DeepInfra · Route 2 · fp4:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Hugging Face · venice:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Venice:** `temperature`, `top_p`, `top_k`, `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`
- **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-4.6#price-history).

## API

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

## About GLM 4.6

GLM 4.6 costs from $0.044 per 1M input tokens and $0.18 per 1M output tokens on OpenCheap, with cached input at $0.0081 per 1M tokens. Its list price is $0.50 per 1M input tokens and $2.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 91 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00062, and 1,000 such requests about $0.62. Prices as of 2026-12-04 11:48 UTC.

8 providers serve GLM 4.6 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 198K tokens (198,000), room for roughly 150,000 words of English in one request.

GLM 4.6 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 GLM 4.6 API cost per 1M tokens?

GLM 4.6 costs from $0.044 per 1M input tokens and $0.18 per 1M output tokens on OpenCheap, with cached input at $0.0081 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one GLM 4.6 request cost?

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

### Is GLM 4.6 cheaper on OpenCheap than its list price?

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

### Which providers serve GLM 4.6?

8 providers serve GLM 4.6 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 GLM 4.6?

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

### How do I call the GLM 4.6 API?

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

## More from Zhipu

- [GLM 4.6 Thinking](https://opencheap.si/models/glm-4.6:thinking) (`glm-4.6:thinking`): $0.55 / $2.20 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.5](https://opencheap.si/models/glm-4.5) (`glm-4.5`): $0.15 / $0.55 per 1M · 131K context
- [GLM 4.5 Air](https://opencheap.si/models/glm-4.5-air) (`glm-4.5-air`): $0.098 / $0.60 per 1M · 131K context

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

## Similar models

- [Mistral Large 3](https://opencheap.si/models/mistral-large-3): Mistral · 256K context · $0.065 / $0.19 per 1M · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-mistral-large-3)
- [DeepSeek V3.2](https://opencheap.si/models/deepseek-v3.2): DeepSeek · 163K context · $0.22 / $0.34 per 1M · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-deepseek-v3.2)
- [lfm3-1.7b](https://opencheap.si/models/lfm3-1.7b): Other labs · 262K context · $0.08 / $0.20 per 1M · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-lfm3-1.7b)
- [DiffusionGemma](https://opencheap.si/models/diffusiongemma): Google · 262K context · $0.05 / $0.15 per 1M, 15 % cheaper · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-diffusiongemma)
- [deepseek-ai/DeepSeek-V3.1](https://opencheap.si/models/deepseek-v3.1): DeepSeek · 163K context · $0.065 / $0.24 per 1M · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-deepseek-v3.1)
- [Ternary Bonsai2 9B](https://opencheap.si/models/ternary-bonsai-2-9b): PrismML · 262K context · $0.08 / $0.13 per 1M, 20 % cheaper · [Compare with GLM 4.6](https://opencheap.si/compare/glm-4.6-vs-ternary-bonsai-2-9b)

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

---

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