# Zhipu: GLM 5.1 Thinking TEE

Zhipu AI's GLM-5.1 follows GLM-5 as an open-weight, MIT-licensed text model for agentic coding and long-horizon work. It is built to plan, execute and refine one task over long sessions, and has a thinking mode.

- **Model id:** `opencheap/glm-5.1-thinking`
- **Price per 1M tokens:** $0.90 input / $2.90 output
- **Cached input:** $0.09 per 1M tokens
- **Context:** 202K tokens, 65K max output

## Providers

1 provider. Prices are per 1M tokens. As of 2026-12-04 12:06 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.90 | $0.09 | $2.90 | 202K | 65K |

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)

- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `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.1-thinking#price-history).

## API

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

## About GLM 5.1 Thinking TEE

GLM 5.1 Thinking TEE costs from $0.90 per 1M input tokens and $2.90 per 1M output tokens on OpenCheap, with cached input at $0.09 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.012, and 1,000 such requests about $11.90. Prices as of 2026-12-04 12:01 UTC.

One provider serves GLM 5.1 Thinking TEE 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 202K tokens (202,752), room for roughly 150,000 words of English in one request.

GLM 5.1 Thinking TEE 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.1 Thinking TEE API cost per 1M tokens?

GLM 5.1 Thinking TEE costs from $0.90 per 1M input tokens and $2.90 per 1M output tokens on OpenCheap, with cached input at $0.09 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one GLM 5.1 Thinking TEE request cost?

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

### Which providers serve GLM 5.1 Thinking TEE?

One provider serves GLM 5.1 Thinking TEE on OpenCheap today. 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.1 Thinking TEE?

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

### How do I call the GLM 5.1 Thinking TEE API?

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

## More from Zhipu

- [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.32 / $0.32 per 1M · 1M context
- [GLM 5.1](https://opencheap.si/models/glm-5.1) (`glm-5.1`): $0.14 / $0.45 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

- [deepseek-r1](https://opencheap.si/models/deepseek-r1): DeepSeek · 163K context · $0.74 / $2.52 per 1M, 14 % cheaper · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-deepseek-r1)
- [deepseek-r1-turbo](https://opencheap.si/models/deepseek-r1-turbo): DeepSeek · 40K context · $1.05 / $3.15 per 1M · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-deepseek-r1-turbo)
- [thinkingmachines/Inkling](https://opencheap.si/models/inkling): Thinking Machines · 1M context · $1.00 / $4.05 per 1M · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-inkling)
- [ERNIE 5.0 Thinking Preview](https://opencheap.si/models/ernie-5.0-thinking-preview): Baidu · 183K context · $0.82 / $3.29 per 1M · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-ernie-5.0-thinking-preview)
- [Mai Thinking 1](https://opencheap.si/models/mai-thinking-1): Microsoft · 256K context · $2.00 / $8.00 per 1M · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-mai-thinking-1)
- [ERNIE 5.0 Thinking Exp](https://opencheap.si/models/ernie-5.0-thinking-exp): Baidu · 119K context · $0.82 / $3.29 per 1M · [Compare with GLM 5.1 Thinking TEE](https://opencheap.si/compare/glm-5.1-thinking-vs-ernie-5.0-thinking-exp)

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

---

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