# Zhipu: zai-org/GLM-4.7-Flash

GLM-4.7 Flash, the small model in Zhipu AI's GLM-4.7 family, is an open-weight MoE with 30B total and 3B active parameters. It is MIT-licensed and text-only, with thinking that can be kept across agent turns.

- **Model id:** `opencheap/glm-4.7-flash`
- **Price per 1M tokens:** $0.0048 input / $0.032 output
- **Cached input:** $0.00073 per 1M tokens
- **Context:** 198K tokens, 4K max output

## Providers

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

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Surplus · quantization unknown | $0.0048 | $0.00073 | $0.032 | 0.70 s | — | — | 198K | 4K |
| Qubax · quantization unknown | $0.016 | $0.0025 | $0.11 | 2.10 s | 307 tok/s | 100 % (success rate) | 198K | 4K |
| Hugging Face · cloudflare · quantization unknown | $0.06 | $0.06* | $0.40 | 0.40 s | 78 tok/s | 100 % (success rate) | 131K | — |
| NanoGPT · quantization unknown | $0.06 | $0.06 | $0.40 | 0.84 s | 27 tok/s | 100 % (success rate) | 200K | 128K |
| Cloudflare · quantization unknown | $0.064 | $0.064* | $0.42 | 0.45 s | 61 tok/s | 100 % | 131K | 117K |
| Greenference · quantization unknown | $0.085 | $0.017 | $0.49 | — | — | 0 % (success rate) | 202K | 16K |

\* 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`
- **Hugging Face · cloudflare:** `temperature`, `top_p`, `top_k`, `seed`, `logit_bias`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **NanoGPT:** `temperature`, `top_p`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Cloudflare:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `logit_bias`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `logprobs`, `top_logprobs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning`
- **Greenference:** `temperature`, `top_p`, `top_k`, `min_p`, `seed`, `repetition_penalty`, `frequency_penalty`, `presence_penalty`, `stop`, `response_format`, `tools`, `tool_choice`

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

## API

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

## About zai-org/GLM-4.7-Flash

zai-org/GLM-4.7-Flash costs from $0.0048 per 1M input tokens and $0.032 per 1M output tokens on OpenCheap, with cached input at $0.00073 per 1M tokens. Its list price is $0.06 per 1M input tokens and $0.40 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 92 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.00008, and 1,000 such requests about $0.08. Prices as of 2026-12-04 12:01 UTC.

6 providers serve zai-org/GLM-4.7-Flash 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.

zai-org/GLM-4.7-Flash 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-4.7-Flash API cost per 1M tokens?

zai-org/GLM-4.7-Flash costs from $0.0048 per 1M input tokens and $0.032 per 1M output tokens on OpenCheap, with cached input at $0.00073 per 1M tokens. Prices as of 2026-12-04 12:01 UTC.

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

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

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

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

### Which providers serve zai-org/GLM-4.7-Flash?

6 providers serve zai-org/GLM-4.7-Flash 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-4.7-Flash?

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

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

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

## More from Zhipu

- [GLM 4.7 Flash Thinking](https://opencheap.si/models/glm-4.7-flash:thinking) (`glm-4.7-flash:thinking`): $0.06 / $0.40 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.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

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

## Similar models

- [Gemma 4 26B A4B It](https://opencheap.si/models/gemma-4-26b-a4b): Google · 262K context · $0.01 / $0.03 per 1M · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-gemma-4-26b-a4b)
- [Qwen/Qwen3-32B](https://opencheap.si/models/qwen3-32b): Qwen · 131K context · $0.0096 / $0.032 per 1M · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-qwen3-32b)
- [meta-llama/Llama-3.3-70B-Instruct](https://opencheap.si/models/llama-3.3-70b): Meta · 131K context · $0.015 / $0.047 per 1M · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-llama-3.3-70b)
- [NVIDIA Nemotron 3 Nano 30B](https://opencheap.si/models/nemotron-3-nano-30b-a3b): NVIDIA · 262K context · $0.0072 / $0.029 per 1M, 7 % cheaper · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-nemotron-3-nano-30b-a3b)
- [google/gemma-3-27b-it](https://opencheap.si/models/gemma-3-27b): Google · 131K context · $0.02 / $0.05 per 1M · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-gemma-3-27b)
- [Ministral 14B 3.0](https://opencheap.si/models/ministral-3-14b): Mistral · 128K context · $0.024 / $0.024 per 1M · [Compare with zai-org/GLM-4.7-Flash](https://opencheap.si/compare/glm-4.7-flash-vs-ministral-3-14b)

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

---

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