GLM-5
GLM-5 is worth evaluating for coding, rag, and agents when its provider route and context window match the workload.
Use it for
- Teams evaluating coding, rag, and agents
- Workloads that can use a 200k context window
- Buyers comparing 4 tracked provider routes
Do not use it for
- Vision or document-understanding workloads
Cheapest of 7 routes · OpenRouter
About
Flagship open-weight foundation model from Zhipu AI with 744B parameters (40B active per token) in Mixture of Experts architecture. Trained on 28.5T tokens using DeepSeek Sparse Attention on Huawei Ascend hardware. Achieves state-of-the-art performance on coding and agentic benchmarks (SWE-bench Verified: 77.8%). Supports autonomous planning, multi-step tool use, and self-correction.
GLM-5 is an open-source model. The structured metadata tracks a 200k-token context window, reasoning, function calling, tool use, and structured outputs. This page tracks provider routes through Fireworks AI, OpenRouter, Together AI, and 4 more, with the cheapest tracked route listed at $0.6 input and $2.08 output per 1M tokens. Headline tracked benchmarks include SWE-bench Pro 55.1, SWE-bench Verified 77.8, and τ-bench 82.1.
Top use-case fit: coding, agents, and build tasks
Coding
Q/$ C3 relevant benchmarks in the decision map.
RAG
Included by capability and metadata signals in the decision map.
Agents
Q/$ C2 relevant benchmarks in the decision map.
Provider price ladder
Compare all 7Compare API pricing across 4 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Route |
|---|---|---|---|
| OpenRouter | $0.600 | $2.08 | Serverless |
| Fireworks AI | $1.00 | $3.20 | Serverless |
| GCP Vertex AI | $1.00 | $3.20 | Serverless |
| Novita AI | $1.00 | $3.20 | Serverless |
Available via routers & gateways(14)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
OpenRouter
HybridUnified hybrid gateway to 400+ models from 60+ providers via a single OpenAI-compatible API, with optional auto-routing that selects the best model per prompt.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, semantic caching, and guardrails; Apache 2.0 core is fully self-hostable with the complete feature set.
AIRouter
RouterCommercial LLM router that analyzes incoming requests and routes to the optimal model for cost/quality/latency via a drop-in OpenAI-compatible API, with a privacy-preserving embedding mode that avoids sending prompt content.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache 2.0 open-source core with a managed hosted tier for logging and analytics.
Kong AI Gateway
GatewayMulti-LLM AI gateway built on Kong Gateway 3.x, adding semantic routing, load balancing, guardrails, and MCP traffic analytics as plugins over Kong's existing API management platform.
Capabilities
Benchmark peer barsfor Coding
Benchmark scores(9)
| Benchmark | Score | Version | Evaluation | Source |
|---|---|---|---|---|
| SWE-bench Pro | 55.1 | —Observed 2026-03-01 | — | Source |
| SWE-bench Verified | 77.8 | SWE-bench VerifiedObserved 2026-04-24 | — | Source |
| τ-bench | 82.1 | τ-benchObserved 2026-04-24 | — | Source |
| SWE-rebench | 62.8 | pass@1 (best of 5 runs)Observed 2026-05-28 | — | Source |
| AIME 2025 | 92.7 | AIME 2026 (accuracy)Observed 2026-06-07 | — | Source |
| Google-Proof Q&A | 86.0 | GPQA Diamond (accuracy)Observed 2026-06-07 | — | Source |
| Humanity's Last Exam | 30.5 | HLE text-only (accuracy)Observed 2026-06-07 | — | Source |
| LiveCodeBench | 81.9 | LiveCodeBench v6 (accuracy)Observed 2026-06-07 | — | Source |
| MMLU PRO | 86.0 | From model card / Apex Agents listing (accuracy)Observed 2026-06-07 | — | Source |
Migration checks
No linked migration route is available for this model yet.
Rankings & picks(4)
Compare GLM-5 with other models
Comparison and alternatives
Browse all comparisons →Show all 44 popular comparisonssorted by 7-day search impressions
Frequently asked questions
What is the context window of GLM-5?
GLM-5 has a context window of 200k tokens.
What is the max output of GLM-5?
GLM-5 can generate up to 128,000 output tokens.
How much does GLM-5 cost?
GLM-5 pricing ranges from $0.6/1M to $1/1M input tokens depending on the provider.
When was GLM-5 released?
GLM-5 was released on 2026-02-11.
Which providers offer GLM-5?
GLM-5 is available from 7 providers: Fireworks AI, OpenRouter, Together AI, GCP Vertex AI, NVIDIA NIM, Vercel AI Gateway, Novita AI.
What benchmarks has GLM-5 been tested on?
GLM-5 has been evaluated on 9 benchmarks, including SWE-bench Pro, SWE-bench Verified, τ-bench, SWE-rebench, AIME 2025.
Cheapest of 7 routes · OpenRouter