AI model comparison
GLM 4.7 vs GLM 5.4
Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.
Change models
Catalog snapshot Dec 2, 2026Shared benchmarks unavailableRead the methodology
- GLM 4.7
- 202.75K
- GLM 5.4
- 1.05M
Context windows are listed here for the exact model IDs.
Quick answer and decision summary
Decision summary
Four facts to check against your workload
Listed token rates
Input GLM 4.7 lower ($0.40 vs $1.40) · Output GLM 4.7 lower ($1.75 vs $4.40)USD per million tokens. Actual charges depend on endpoint, tier, cache, and token mix.
Context window
GLM 5.4GLM 5.4 lists the larger context window (1,048,576 tokens vs 202,752 tokens).
Published benchmark result
No shared benchmark resultNo shared result is available for these exact model IDs. Run the same evaluation harness on your workload.
Input and output modalities
Compare listed capabilitiesGLM 4.7 lists text input and text output modalities. GLM 5.4 lists text, image, video input and text output modalities.
Benchmarks
Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.
A shared benchmark result is unavailable for these model IDs. See the individual records below for reported results.
View individual benchmark records
These model-level records can include other benchmark releases, test configurations, and vendor-reported results.
GLM 4.7
| Benchmark | Score | Configuration | Source model label | Evidence |
|---|---|---|---|---|
| MMLU-Pro | 84.3% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
| GPQA Diamond | 85.7% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
| Humanity's Last Exam | 24.8% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
| SWE-bench Verified | 73.8% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
| Terminal-Bench 2.0 | 33.4% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
| EvasionBench | 82.91% | Unavailable | zai-org/GLM-4.7 | Result source · Test method |
GLM 5.4
No additional benchmark results are available for this model ID.
Pricing and token cost
Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.
| USD per million tokens | GLM 4.7 | GLM 5.4 |
|---|---|---|
| Uncached input | $0.40 | $1.40 |
| Output | $1.75 | $4.40 |
| Cache read | $0.08 | $0.26 |
| Cache write | Unavailable | Unavailable |
Rates are a catalog snapshot. OpenRouter Models API
Estimate your workload
Set the workload
Estimated costs
Input $0.40 · output $1.75 per 1M tokens
Input $1.40 · output $4.40 per 1M tokens
GLM 4.7 $0.8375. GLM 5.4 $2.50. GLM 4.7 costs $1.6625 less for this token mix.
How the estimate works
Input tokens × input USD per million plus output tokens × output USD per million, divided by 1,000,000. Uses listed public catalog rates. Cached-input pricing and provider or plan fees are excluded. See your provider’s plan for actual charges.
Model specifications
Context, output limits, modalities, and supported API parameters from the catalog.
| Specification | GLM 4.7 | GLM 5.4 |
|---|---|---|
| Catalog status | Listed | Listed |
| Catalog model ID | z-ai/glm-4.7 | z-ai/glm-5.4 |
| Provider | Z.ai | Z.ai |
| Context window | 202,752 tokens | 1,048,576 tokens |
| Max output | 131,072 tokens | 943,718 tokens |
| Input modalities | Text | Text, Image, Video |
| Output modalities | Text | Text |
| Reasoning controls | Listed | Listed |
| Tool calling | Listed | Listed |
| Structured outputs | Listed | Listed |
| Serving endpoints | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses |
| Catalog listing date | Dec 22, 2025 | Dec 2, 2026 |
Use with Weave Router
Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.
GLM 4.7
Weave Router availability is unverified for this model ID.
GLM 5.4
Weave Router availability is unverified for this model ID.
Catalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026
Sources
Each benchmark links to its own result and test method when available.
- OpenRouter Models API · token rates and catalog specifications
- Weave Router catalog · verified Router model IDs
- GLM 4.7 catalog entry
- GLM 4.7 model repository
- GLM 5.4 catalog entry
- GLM 5.4 model repository
Frequently asked questions
Answers use the catalog snapshot and published evidence shown on this page.
How should I choose between GLM 4.7 and GLM 5.4?
There is no universal winner in these records. Compare the listed rates, context limits, modalities, and benchmark configurations against your own workload, then validate with the same evaluation harness.
Sources Catalog rates and model facts · Benchmark source index · Weave Router catalog · GLM 4.7 profile · GLM 5.4 profile
Is GLM 4.7 cheaper than GLM 5.4?
Input is lower for GLM 4.7 ($0.40 vs $1.40 per million tokens). Output is lower for GLM 4.7 ($1.75 vs $4.40 per million tokens). A workload cost depends on the input/output token mix and serving endpoint.
Sources Open catalog pricing
Which model has the larger context window, GLM 4.7 or GLM 5.4?
GLM 5.4 lists 1,048,576 tokens of context, compared with 202,752 tokens for GLM 4.7.
Sources Open catalog specifications
What do the shared published benchmark results show?
No shared published benchmark result is available for these exact model IDs.
Can I use both models through Weave Router?
Neither exact model ID is verified in the public Router catalog snapshot.
Sources Open public Router catalog