GLM-5
Newer version available: GLM-5.3
Cheapest of 7 routes · Fireworks AI
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.
Top use-case fit: coding, agents, and build tasks
Coding
Q/$ DAgents
Q/$ CProviders(7)
Compare all 7Compare API pricing across 7 tracked provider routes for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Cache | Route |
|---|---|---|---|---|
| Fireworks AI | $1.00 | $3.20 | - | Serverless |
| GCP Vertex AI | $1.00 | $3.20 | - | Serverless |
| Novita AI | $1.00 | $3.20 | - | Serverless |
| OpenRouter | $1.00 | $3.20 | read $0.200 | Serverless |
| Vercel AI Gateway | $1.00 | $3.20 | read $0.200 | Serverless |
| Z.ai | $1.00 | $3.20 | read $0.200 | Serverless |
| NVIDIA NIM | - | - | - | ServerlessPartial |
Deprecated provider routes(1)
| Provider | Status | Catalog ID |
|---|---|---|
| Together AI | DeprecatedRetired June 22, 2026 | zai-org/GLM-5 |
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 500+ models from 80+ providers via a single OpenAI-compatible API, with an optional Auto Router that selects a model per prompt from market spend data.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, caching, and guardrails; MIT-licensed open-source core is self-hostable. Now part of Palo Alto Networks as Prisma AIRS AI Gateway.
AIRouter
RouterCommercial LLM router (branded "AI Router" on its site) that picks the best model per request via a Decision API or an OpenAI-compatible Chat Completions endpoint, with a private selection mode that routes on anonymized patterns; sold as BYOK subscription plans priced by routed tokens.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache-2.0 open-source platform 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(11)
| Benchmark | Score | Version | Evaluation | Source |
|---|---|---|---|---|
| 55.1 | —Observed 2026-03-01 | — | ||
| 77.8 | SWE-bench VerifiedObserved 2026-04-24 | — | ||
| 82.1 | τ-benchObserved 2026-04-24 | — | ||
| 62.8 | pass@1 (best of 5 runs)Observed 2026-05-28 | — | ||
| 92.7 | AIME 2026 (accuracy)Observed 2026-06-07 | — | ||
| 86.0 | GPQA Diamond (accuracy)Observed 2026-06-07 | — | ||
| 30.5 | HLE text-only (accuracy)Observed 2026-06-07 | — | ||
| 81.9 | LiveCodeBench v6 (accuracy)Observed 2026-06-07 | — | ||
| 86.0 | From model card / Apex Agents listing (accuracy)Observed 2026-06-07 | — | ||
| 1457.0 | text_style_control overall 2026-10-22 (style control, default view)Observed 2026-10-26 | Configuration: GLM-5 Harness: LMArena blind pairwise human votes, Bradley-Terry Evaluator: LMArena Confidence: confirmed Notes: LMArena text style control leaderboard, overall category, published 2026-10-22 (HF lmarena-ai/leaderboard-dataset @9761a3ce, latest split). Board entry 'GLM-5': rank 65, Arena Score 1457.4 (95% CI 1453.2-1461.7), 29267 votes. Retrieved 2026-10-26. | Source Source: LMArena (lmarena.ai), CC BY 4.0 | |
| 1438.0 | text creative_writing 2026-10-22Observed 2026-10-22 | Configuration: GLM-5 Harness: LMArena blind pairwise human votes, Bradley-Terry Evaluator: LMArena Confidence: confirmed Notes: LMArena Text arena, Creative Writing category (no style control), board published 2026-10-22 (HF lmarena-ai/leaderboard-dataset @a467e6b9, text config, latest split). Board entry 'GLM-5' (category creative_writing in text/latest-00000-of-00001.parquet): rank 51 of 416, rating 1437.9 (95% CI 1429.0-1446.8), 4859 votes. Source: LMArena (CC BY 4.0). Retrieved 2026-10-27. | Source Source: LMArena (lmarena.ai), CC BY 4.0 |
Migration checks
No linked migration route is available for this model yet.
Rankings & picks(1)
Compare GLM-5 with other models
Comparison and alternatives
Browse all comparisons →Show all 44 popular comparisonssorted by 7-day search impressions
Cheapest of 7 routes · Fireworks AI