GLM-4.7
opencode The API that serves this model and sets the prices shown here. glm-4.7 The model identifier to send in API requests. LLM Generates text from a prompt, so it can be compared with other LLMs on price and capability. Large The most capable general-purpose tier of a model family. Retired Mar 15, 2026 This model has been retired and can no longer be relied on.Provider: zhipu · served via OpenCode
Knowledge cutoff: April 2025
Deprecated on OpenCode Zen; scheduled retirement announced.
Sticker prices & cost-per-token
List rates as published by OpenCode, before any volume or enterprise discounts.
$0.60
$2.20
204,800 tokens
131,072
tokens per response (includes reasoning tokens)
Open weights (permissive license)
MIT
$0.10
Get this data free
Want to stay updated on price changes on this model? Pull this data free (no API key required) here:
curl "https://coolhandlabs.com/api/v2/inference_apis?q%5Bmodel_eq%5D=glm-4.7&q%5Bsource_api_eq%5D=opencode"
Pricing History
| Effective | Price |
|---|---|
| Aug 12, 2026 – present | Input cost: $0.60 / 1M, Output cost: $2.20 / 1M, Cached input cost: $0.10 / 1M, Cache creation cost: $0.00 / 1M, 5-minute cache write cost: $0.00 / 1M, 1-hour cache write cost: $0.00 / 1M, Reasoning output cost: $0.00 / 1M, Cache storage cost: $0.00 / 1M/hr |
History
Last change detected October 5, 2026 (21 days ago) by an automated scan.
| Date | Changed by | What changed |
|---|---|---|
| Aug 12, 2026 | Unknown | Initial record created |
Source
https://opencode.ai/docs/zen/ (via https://models.dev/api.json)Comparable models
No comparable models identified yet.
Reliability
No reliability incidents recorded in the last 90 days.
Frequently asked questions
GLM-4.7 (zhipu via OpenCode) costs $0.60 per 1M input tokens and $2.20 per 1M output tokens, as last published by OpenCode.
GLM-4.7 has a context window of 204,800 tokens (the maximum combined input and output it can handle in a single request).
GLM-4.7 sits in the large size tier. Size tiers run from micro (small enough to run on a device) through small, medium and large to extra large (frontier flagships), and are assigned from the model's family, naming and limits rather than its price.
GLM-4.7 can generate up to 131,072 tokens in a single response. Reasoning (thinking) tokens count toward this limit.
GLM-4.7's training data runs through April 2025, so it may not know about later events. Coolhand records the cutoff at month precision, since providers often publish only the month.
GLM-4.7 accepts text as input and produces text as output, as recorded in the Coolhand catalog.
Yes — the weights of GLM-4.7 can be downloaded under the MIT license. Check the license terms for any limits on commercial use.
Yes — zhipu deprecated GLM-4.7 on March 15, 2026. Deprecated on OpenCode Zen; scheduled retirement announced.
zhipu retired GLM-4.7 on March 15, 2026.
Since GLM-4.7 is deprecated, zhipu customers are moving to GLM-5, GLM-5.1, and GLM-5.2.
Call GET https://coolhandlabs.com/api/v2/inference_apis?q[source_api_eq]=opencode&q[model_eq]=glm-4.7 — free, no API key required, and scoped to just this model since source_api and model together are unique. See https://coolhandlabs.com/docs for the full REST API reference.
Coolhand also tracks GLM-4.7 Free, GLM-5 Free, GLM-5, GLM-5.1, GLM-5.2, and GLM-4.5 from zhipu. Some may already be deprecated, so check each model's status alongside its current pricing.
| Model | Input cost | Output cost | Context window | Max output tokens | Status |
|---|---|---|---|---|---|
| GLM-4.7 Free via OpenCode | $0.00/1M $0.0000000000 | $0.00/1M $0.0000000000 | 204,800 | 131,072 |
Deprecated Aug 12, 2026
|
| GLM-5 Free via OpenCode | $0.00/1M $0.0000000000 | $0.00/1M $0.0000000000 | 204,800 | 131,072 |
Deprecated Aug 12, 2026
|
| GLM-5 via Bedrock | $1.00/1M $0.0000010000 | $3.20/1M $0.0000032000 | 202,752 | 131,072 | Active |
| GLM-5.1 via OpenCode | $1.40/1M $0.0000014000 | $4.40/1M $0.0000044000 | 204,800 | 131,072 | Active |
| GLM-5.2 via OpenCode | $1.40/1M $0.0000014000 | $4.40/1M $0.0000044000 | 1,000,000 | 131,072 | Active |
| GLM-4.5 via OpenRouter | $0.60/1M $0.0000006000 | $2.20/1M $0.0000022000 | 131,072 | 98,304 | Active |
Track LLM pricing and deprecations automatically.
Start free