Z.ai: GLM 4.7 API pricing
$0.40 per 1M input tokens and $1.75 per 1M output tokens on OpenRouter. Context window: 204,800 tokens.
What it costs in practice
| Workload | Cost |
|---|---|
| Chatbot: 10,000 messages (1,500 in / 400 out tokens each) | $13.00 |
| RAG: 1,000 queries (8,000 in / 600 out each) | $4.25 |
| Summarize 100 long documents (50,000 in / 1,000 out each) | $2.17 |
Cross-check against the provider's list price
LiteLLM's price map lists zai/glm-4.7 (zai) at $0.60 in / $2.20 out per 1M tokens. Differs from OpenRouter OpenRouter routes to several hosts and may list a different provider's price than the model maker's own API.
Price history
No price change recorded since we started tracking on Nov 17, 2026. We check every 6 hours and log every change.
Run it yourself instead
The open weights are on Hugging Face. See the VRAM GLM 4.7 needs and which GPUs fit it →
Cheaper alternatives with similar context
Text models with at least 125K context and a lower blended price (75% input, 25% output). Price only, not a quality ranking.
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| Qwen: Qwen3.6 Plus | $0.325 | $1.95 | 977K |
| Meta: Llama 3.1 70B Instruct | $0.72 | $0.72 | 128K |
| Qwen: Qwen3.5-122B-A10B | $0.26 | $2.08 | 256K |
| Meta: Llama 3.3 70B Instruct | $0.71 | $0.71 | 128K |
| OpenAI: GPT-4.1 Mini | $0.40 | $1.60 | 1023K |
| ByteDance Seed: Seed-2.0-Lite | $0.25 | $2.00 | 256K |
| OpenAI: GPT-5.1-Codex-Mini | $0.25 | $2.00 | 391K |
| OpenAI: GPT-5 Mini | $0.25 | $2.00 | 391K |
Source: OpenRouter listing via the public models API · LiteLLM price map (MIT). Prices checked Nov 17, 2026. Model ID z-ai/glm-4.7, listed Dec 22, 2025. Report an error.