# Zhipu: GLM 5.2

GLM-5.2 is Zhipu AI's open-weight successor to GLM-5.1, a 753B-parameter text model released under MIT. It is aimed at long-horizon tasks such as project-scale software engineering and offers several thinking effort levels.

- **Model id:** `opencheap/glm-5.2`
- **Price per 1M tokens:** $0.07 input / $0.22 output
- **Cached input:** $0.007 per 1M tokens
- **Context:** 1M tokens, 131K max output

## Providers

26 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 |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Hugging Face · relace · fp4 | $0.0069 | $0.13 | $2.61 | 0.79 s | 129 tok/s | 100 % | 1M | — |
| Relace · fp4 | $0.0072 | $0.14 | $2.74 | 0.63 s | 118 tok/s | 100 % | 1M | 131K |
| Wafer · Route 1 · fp4 | $0.0073 | $0.0063 | $6.09 | 0.32 s | 151 tok/s | 100 % | 1M | 943K |
| Wafer · Route 2 · fp4 | $0.20 | $0.19 | $8.40 | 0.30 s | 151 tok/s | 100 % | 1M | 943K |
| InferHub · quantization unknown | $0.07 | $0.007 | $0.22 | 1.52 s | 52 tok/s | 100 % | 1M | 48K |
| Surplus · quantization unknown | $0.19 | $0.035 | $0.73 | — | — | — | 1M | 131K |
| Qubax · quantization unknown | $0.30 | $0.043 | $1.19 | 3.20 s | 58 tok/s | 100 % (success rate) | 1M | 131K |
| Engy · quantization unknown | $0.32 | $0.10 | $0.32 | 1.19 s | 113 tok/s | 100 % (success rate) | 229K | 32K |
| DeepInfra · Route 1 · fp4 | $0.47 | $0.088 | $1.51 | 2.49 s | 45 tok/s | 100 % | 1M | 163K |
| DeepInfra · Route 2 · fp4 | $0.59 | $0.11 | $1.89 | 1.09 s | 47 tok/s | 97.1 % | 1M | 163K |
| DeepInfra · Route 3 · fp4 | $0.89 | $0.17 | $2.83 | 1.49 s | 47 tok/s | 98.6 % | 1M | 163K |
| NanoGPT · quantization unknown | $0.53 | $0.10 | $1.79 | 1.51 s | 95 tok/s | 100 % (success rate) | 1M | 131K |
| StreamLake · fp8 | $0.64 | $0.12 | $2.02 | 2.33 s | 30 tok/s | 99.9 % | 1M | 128K |
| CoreWeave · fp4 | $0.65 | $0.15 | $2.54 | 0.58 s | 234 tok/s | 99.6 % | 1M | 943K |
| SiliconFlow · fp8 | $0.68 | $0.14 | $2.15 | 1.30 s | 68 tok/s | 99.5 % | 1M | 262K |
| DigitalOcean · quantization unknown | $0.73 | $0.11 | $2.31 | 0.73 s | 71 tok/s | 100 % | 1M | 262K |
| Featherless · quantization unknown | $0.88 | $0.16 | $2.77 | 1.72 s | 34 tok/s | 100 % | 262K | 32K |
| Alibaba · Route 1 · fp8 | $1.01 | $0.20 | $3.19 | 1.16 s | 51 tok/s | 100 % | 1M | 131K |
| Alibaba · Route 2 · fp8 | $2.43 | $0.49 | $7.62 | 0.90 s | 108 tok/s | 100 % | 1M | 131K |
| Alibaba · Route 3 · fp8 | $1.18 | $0.24 | $3.70 | — | — | Unavailable | 1M | 131K |
| AiHubMix · quantization unknown | $1.13 | $0.28 | $3.94 | 0.69 s | 54 tok/s | 100 % (success rate) | 1M | 131K |
| Sandbase · quantization unknown | $1.40 | $0.26 | $4.40 | 2.81 s | 55 tok/s | 100 % (success rate) | — | — |
| Baidu · fp8 | $1.47 | $0.27 | $4.62 | — | — | 100 % | 1M | 131K |
| BaseTen · Route 1 · fp8 | $1.47 | $0.15 | $4.62 | 0.38 s | 96 tok/s | 100 % | 1M | 262K |
| BaseTen · Route 2 · fp8 | $1.47 | $0.15 | $4.62 | 1.19 s | 93 tok/s | 99.8 % | 1M | 262K |
| BaseTen · Route 3 · fp8 | $2.21 | $0.22 | $6.93 | 0.28 s | 296 tok/s | 99.8 % | 1M | 262K |
| BaseTen · Route 4 · fp8 | $2.21 | $0.22 | $6.93 | 0.16 s | 408 tok/s | 99.8 % | 1M | 262K |
| Friendli · quantization unknown | $1.47 | $0.27 | $4.62 | 0.25 s | 109 tok/s | 99.9 % | 1M | 943K |
| Nebius · fp4 | $1.47 | $0.15 | $4.62 | 0.41 s | 158 tok/s | 99.6 % | 1M | 943K |
| Parasail · fp4 | $1.47 | $0.27 | $4.62 | 0.87 s | 76 tok/s | 99.6 % | 262K | 235K |
| Together · quantization unknown | $1.47 | $0.27 | $4.62 | 0.25 s | 185 tok/s | 100 % | 1M | 943K |
| Venice · fp8 | $1.47 | $0.27 | $4.62 | 1.81 s | 49 tok/s | 99.9 % | 1M | 131K |
| Z.AI · fp8 | $1.47 | $0.27 | $4.62 | 1.32 s | 53 tok/s | 100 % | 1M | 131K |
| TensorX · quantization unknown | $1.57 | $0.39 | $4.72 | 0.82 s | 246 tok/s | 100 % (success rate) | 1M | 64K |

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)

- **Hugging Face · relace:** `temperature`, `top_p`, `top_k`, `logit_bias`, `presence_penalty`, `stop`, `tools`, `tool_choice`
- **Relace:** `temperature`, `top_p`, `top_k`, `presence_penalty`, `stop`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Wafer · Route 1 · fp4:** `temperature`, `top_k`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Wafer · Route 2 · fp4:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **InferHub:** `seed`, `logit_bias`, `presence_penalty`, `tools`, `tool_choice` (temperature, stop not confirmed)
- **Surplus:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **Qubax:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **Engy:** `temperature`, `top_p`, `top_k`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **DeepInfra · Route 1 · fp4:** `top_k`, `min_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **DeepInfra · Route 2 · 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 3 · fp4:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **NanoGPT:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **StreamLake:** `temperature`, `top_p`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **CoreWeave:** `temperature`, `top_p`, `top_k`, `seed`, `repetition_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **SiliconFlow:** `temperature`, `top_p`, `top_k`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **DigitalOcean:** `temperature`, `top_p`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **Featherless:** `temperature`, `top_p`, `top_k`, `repetition_penalty`, `presence_penalty`, `stop`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Alibaba:** `temperature`, `top_p`, `top_k`, `seed`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **AiHubMix:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **Sandbase:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`
- **Baidu:** `temperature`, `top_p`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **BaseTen:** `temperature`, `top_p`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Friendli:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Nebius:** `temperature`, `top_p`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Parasail:** `temperature`, `top_p`, `top_k`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Together:** `temperature`, `top_p`, `top_k`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Venice:** `temperature`, `top_p`, `top_k`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Z.AI:** `temperature`, `top_p`, `top_k`, `response_format`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (stop not confirmed)
- **TensorX:** `temperature`, `top_p`, `top_k`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`

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

## API

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

## About GLM 5.2

GLM 5.2 costs from $0.07 per 1M input tokens and $0.22 per 1M output tokens on OpenCheap, with cached input at $0.007 per 1M tokens. Its list price is $0.007 per 1M input tokens and $5.80 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.00092, and 1,000 such requests about $0.92. Prices as of 2026-12-04 11:48 UTC.

26 providers serve GLM 5.2 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 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.

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

GLM 5.2 costs from $0.07 per 1M input tokens and $0.22 per 1M output tokens on OpenCheap, with cached input at $0.007 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one GLM 5.2 request cost?

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

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

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

### Which providers serve GLM 5.2?

26 providers serve GLM 5.2 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 5.2?

Its context window is 1M tokens (1,048,576), room for roughly 790,000 words of English in one request.

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

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

## More from Zhipu

- [GLM 5.2 Thinking](https://opencheap.si/models/glm-5.2:thinking) (`glm-5.2:thinking`): $0.53 / $1.79 per 1M · 1M 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.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
- [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

- [Llama 4 Maverick](https://opencheap.si/models/llama-4-maverick): Meta · 1M context · $0.20 / $0.20 per 1M · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-llama-4-maverick)
- [GPT 6 Luna](https://opencheap.si/models/gpt-6-luna): OpenAI · 1M context · $0.04 / $0.20 per 1M, 12 % cheaper · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-gpt-6-luna)
- [Xiaomi Mimo V2.6 Pro](https://opencheap.si/models/mimo-v2.6-pro): Xiaomi · 1M context · $0.054 / $0.11 per 1M, 49 % cheaper · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-mimo-v2.6-pro)
- [Laguna S 2.1](https://opencheap.si/models/laguna-s-2.1): Poolside · 1M context · $0.10 / $0.20 per 1M · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-laguna-s-2.1)
- [Nvidia Nemotron 3.5 Super VL](https://opencheap.si/models/nemotron-3.5-super-vl): NVIDIA · 1M context · $0.063 / $0.37 per 1M · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-nemotron-3.5-super-vl)
- [GPT 5.6 Luna](https://opencheap.si/models/gpt-5.6-luna): OpenAI · 1M context · $0.02 / $0.12 per 1M, 48 % cheaper · [Compare with GLM 5.2](https://opencheap.si/compare/glm-5.2-vs-gpt-5.6-luna)

### Comparisons

- [GLM 5.3 vs GLM 5.2](https://opencheap.si/compare/glm-5.3-vs-glm-5.2)

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

---

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