Z.ai: GLM 4.7 Flash API pricing
$0.0605 per 1M input tokens and $0.40 per 1M output tokens on OpenRouter. Context window: 200,000 tokens.
What it costs in practice
| Workload | Cost |
|---|---|
| Chatbot: 10,000 messages (1,500 in / 400 out tokens each) | $2.51 |
| RAG: 1,000 queries (8,000 in / 600 out each) | $0.724 |
| Summarize 100 long documents (50,000 in / 1,000 out each) | $0.343 |
Cross-check against the provider's list price
LiteLLM's price map lists zai/glm-4.7-flash (zai) at free in / free 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 Flash 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 |
|---|---|---|---|
| Google: Gemma 4 26B A4B | $0.09 | $0.30 | 256K |
| OpenAI: GPT-5 Nano | $0.05 | $0.40 | 391K |
| OpenAI: gpt-oss-safeguard-20b | $0.075 | $0.30 | 128K |
| OpenAI: GPT-4o-mini (batch) | $0.075 | $0.30 | 125K |
| Qwen: Qwen3 32B | $0.08 | $0.28 | 128K |
| Meta: Muse Spark 1.3 Contributor | $0.10 | $0.20 | 1M |
| Meta: Muse Spark 1.2 Contributor | $0.10 | $0.20 | 1M |
| ByteDance: UI-TARS 7B | $0.10 | $0.20 | 125K |
Source: OpenRouter listing via the public models API · LiteLLM price map (MIT). Prices checked Nov 17, 2026. Model ID z-ai/glm-4.7-flash, listed Jan 19, 2026. Report an error.