GLM 4.7 API pricing
As of October 21, 2026, Z.ai GLM 4.7 costs $0.54 per million input tokens and $1.98 per million output tokens through OpenRouter, with cached input at $0.099 per million.
- Input, per million tokens$0.54
- Output, per million tokens$1.98
- Cached input, per million$0.099
- Context window205K tokens
- Max output131K tokens
- Output speedNot measured
What a request costs
Three fixed token mixes at the list price, without cache or batch discounts. For a whole month, use the calculator.
| Workload | Tokens | One request | 1,000 requests | Fits the context window |
|---|---|---|---|---|
| Chat turn | 1K input + 500 output tokens | $0.0015 | $1.53 | Yes |
| Repository review | 50K input + 3K output tokens | $0.033 | $32.94 | Yes |
| Agent loop | 200K input + 10K output tokens | $0.128 | $127.80 | No, it would need splitting |
| Solved coding task | One SWE-bench Verified attempt, divided by the share that succeed | $0.29 | $290.00 |
Price history
We have recorded 1 price change since we started reading the price daily on October 15, 2026.
- October 15, 2026 First recorded: $0.60 input, $2.20 output
- October 17, 2026 $2.20 to $1.98 output, $0.60 to $0.54 input
Cheaper models as good as GLM 4.7
Models within two points of GLM 4.7 or above it on the Artificial Analysis Intelligence Index, with a lower output price. Cheapest first.
- Ling 3.0 Flash VL$0.18 Overall 24.6 against 22.2 · 91% cheaper output
- DeepSeek V4 Flash 0423$0.182 Overall 24.4 against 22.2 · 91% cheaper output
- Solar Mini 4$0.20 Overall 24.1 against 22.2 · 90% cheaper output
- Ling 3.1 Flash$0.225 Overall 41.1 against 22.2 · 89% cheaper output
- MiMo-V2.5$0.238 Overall 21.8 against 22.2 · 88% cheaper output
GLM 4.7 pricing questions
- How much does GLM 4.7 cost per million tokens?
- $0.54 per million input tokens and $1.98 per million output tokens, as listed on OpenRouter on October 21, 2026.
- Does GLM 4.7 support prompt caching?
- Yes. OpenRouter lists cached input at $0.099 per million tokens, against $0.54 for uncached input.
- Is there a cheaper model as good as GLM 4.7?
- Ling 3.0 Flash VL scores 24.6 on the Artificial Analysis Intelligence Index, within two points of GLM 4.7 or above it, and costs $0.18 per million output tokens.
- Has the price of GLM 4.7 changed?
- Yes, 1 time since October 15, 2026; the dates are listed on this page.