GLM 5
z-ai/glm-5
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows.
Key facts
- Input price
- $1.00 / 1M tokens
- Output price
- $3.20 / 1M tokens
- Context window
- 205K tokens
- Max output
- 131K tokens
- Accepts
- Text
- Returns
- Text
Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $2.60 (1M input tokens × $1.00 + 0.5M output tokens × $3.20). Estimate your own usage.
Prices are the provider’s own per-token rates with zero markup, from our price list as of Oct 18, 2026. If a call has extra provider charges (images, audio, web search, cached prompts), you pay the reported cost.
Call it from your code
curl https://api.tokenctr.com/v1/chat/completions \
-H "Authorization: Bearer $TOKENCENTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "z-ai/glm-5", "messages": [{"role": "user", "content": "Hello!"}]}'Works with any OpenAI-compatible SDK: set the base URL to https://api.tokenctr.com/v1. Quickstart
Benchmarks
Artificial Analysis
- Intelligence index
- 27.9
Design Arena
| Category | Rank | Elo | Win rate |
|---|---|---|---|
| Agents: HTML slides | 18 | 1147 | 45.1% |
| Agents: Godot game dev | 21 | 1144 | 46.7% |
| Agents: Android native | 24 | 1161 | 55.2% |
| Agents: Full-stack | 27 | 1123 | 51.7% |
| Agents: Mobile apps | 32 | 1133 | 51.6% |
| Models: SVG | 37 | 1166 | 54.4% |
| Models: Game dev | 39 | 1237 | 57.4% |
| Models: 3D | 40 | 1229 | 56.3% |
| Models: Code | 41 | 1248 | 55.5% |
| Models: Websites | 42 | 1249 | 55% |
| Models: ASCII art | 44 | 1149 | 47.9% |
| Models: Data visualization | 44 | 1230 | 53% |
| Models: UI components | 48 | 1230 | 53.6% |
Source: Artificial Analysis indexes and Design Arena results as published in OpenRouter’s model data, fetched Oct 15, 2026. Higher is better. Not measured by TokenCenter. See all rankings.