# Zhipu: GLM 4.7 Thinking

GLM-4.7 from Zhipu AI is an open-weight MoE text model under MIT for agentic coding, terminal work and tool use. Its thinking can run before each reply and tool call, carry over between turns, or be toggled per request.

- **Model id:** `opencheap/glm-4.7:thinking`
- **Price per 1M tokens:** $0.40 input / $1.93 output
- **Cached input:** $0.08 per 1M tokens
- **Context:** 200K tokens, 65K max output

## Providers

2 providers. Prices are per 1M tokens. As of 2026-12-04 12:05 UTC.

| Provider | Input price | Cache price | Output price | Context | Max output |
| --- | --- | --- | --- | --- | --- |
| NanoGPT · quantization unknown | $0.40 | $0.08 | $1.93 | 200K | 65K |

1 more provider through partner hosts · from $0.42 in · $2.03 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)

- **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-4.7:thinking#price-history).

## API

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

## About GLM 4.7 Thinking

GLM 4.7 Thinking costs from $0.40 per 1M input tokens and $1.93 per 1M output tokens on OpenCheap, with cached input at $0.08 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.0059, and 1,000 such requests about $5.93. Prices as of 2026-12-04 12:01 UTC.

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

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

GLM 4.7 Thinking costs from $0.40 per 1M input tokens and $1.93 per 1M output tokens on OpenCheap, with cached input at $0.08 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

### What does one GLM 4.7 Thinking request cost?

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

### Which providers serve GLM 4.7 Thinking?

2 providers serve GLM 4.7 Thinking 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.7 Thinking?

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

### How do I call the GLM 4.7 Thinking API?

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

## More from Zhipu

- [GLM 4.7](https://opencheap.si/models/glm-4.7) (`glm-4.7`): $0.032 / $0.14 per 1M · 202K 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.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.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

- [Kimi K2.6](https://opencheap.si/models/kimi-k2.6): Moonshot · 262K context · $0.32 / $1.57 per 1M, 19 % cheaper · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-kimi-k2.6)
- [Daisyrose 27B](https://opencheap.si/models/daisyrose-27b): Other labs · 262K context · $0.15 / $1.88 per 1M, 7 % cheaper · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-daisyrose-27b)
- [Qwen3.5 122B A10B](https://opencheap.si/models/qwen3.5-122b-a10b): Qwen · 262K context · $0.27 / $2.18 per 1M · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-qwen3.5-122b-a10b)
- [Clover 2](https://opencheap.si/models/clover-2): Other labs · 200K context · $0.75 / $1.50 per 1M, 15 % cheaper · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-clover-2)
- [Ornith 1.5 122B](https://opencheap.si/models/ornith-1.5-122b): Ornith · 262K context · $0.26 / $2.08 per 1M · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-ornith-1.5-122b)
- [Command A+](https://opencheap.si/models/command-a-plus): Cohere · 192K context · $0.32 / $1.57 per 1M, 19 % cheaper · [Compare with GLM 4.7 Thinking](https://opencheap.si/compare/glm-4.7%3Athinking-vs-command-a-plus)

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

---

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