GLM 5.1
z-ai/glm-5.1
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks.
Key facts
- Input price
- $0.966 / 1M tokens
- Output price
- $3.04 / 1M tokens
- Context window
- 205K tokens
- Max output
- 128K tokens
- Accepts
- Text
- Returns
- Text
Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $2.48 (1M input tokens × $0.966 + 0.5M output tokens × $3.04). 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.1", "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
- 26.1
- Coding index
- 55.8
- Agentic index
- 23.9
Design Arena
| Category | Rank | Elo | Win rate |
|---|---|---|---|
| Agents: Agentic slides | 2 | 1245 | 54.4% |
| Models: Data visualization | 3 | 1366 | 67% |
| Agents: Agentic slides (python-pptx) | 3 | 1240 | 53.3% |
| Agents: PPTX slides | 3 | 1241 | 53.5% |
| Agents: Agentic HTML slides | 5 | 1205 | 52% |
| Agents: Agentic slides (HTML) | 5 | 1204 | 51.8% |
| Agents: Slides (python-pptx) | 6 | 1258 | 54.2% |
| Models: 3D | 11 | 1336 | 62.6% |
| Agents: HTML slides | 14 | 1170 | 48.8% |
| Agents: Android native | 15 | 1194 | 52% |
| Agents: Agentic game dev | 17 | 1165 | 49.8% |
| Models: Websites | 18 | 1290 | 55.1% |
| Models: SVG | 19 | 1217 | 55.5% |
| Models: UI components | 22 | 1292 | 54.9% |
| Agents: Full-stack | 23 | 1167 | 53.2% |
| Agents: Mobile apps | 24 | 1158 | 50.6% |
| Agents: Web apps | 26 | 1168 | 50.7% |
| Models: Code | 29 | 1270 | 53.1% |
| Models: Game dev | 30 | 1266 | 55.2% |
| Agents: Godot game dev | 34 | 1053 | 37.8% |
| Models: ASCII art | 45 | 1146 | 44.9% |
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.