GLM 5.1
by Z.ai · z-ai/glm-5.1 · #207 cheapest of 325 paid models
Prices updated Jul 22, 2026, 1:31 AM UTC · refreshed hourly
GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol
Pricing
Input
$0.966
per 1M tokens
Output
$3.04
per 1M tokens
Blended (3:1)
$1.48
3 input : 1 output
Cache read
$0.179
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for GLM 5.1 with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $1.48 | $0.1016 | — |
| 50% | $1.19 | $0.0622 | −39% |
| 90% | $0.953 | $0.0308 | −70% |
*Example: 100K sticky context + 2K new input + 1K output. Batch discount is an approximate 50% off list rates (available for OpenAI / Anthropic / Google — not flagged for this creator). Confirm on the vendor’s pricing page.
What a request costs
| Workload | Input tokens | Output tokens | Cost / request | Cost / 1K requests |
|---|---|---|---|---|
| Short chat message | 500 | 300 | $0.001394 | $1.39 |
| Document summary | 8,000 | 1,000 | $0.0108 | $10.76 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0351 | $35.05 |
| Long-context analysis | 150,000 | 5,000 | $0.1601 | $160.08 |
Performance
Intelligence Index
40.2
AA composite quality
Coding Index
55.8
Math Index
—
Agentic Index
29.9
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,302 |
| Web apps | 1,228 |
| Full-stack | 1,225 |
| Mobile apps | 1,225 |
| Android native | 1,233 |
| UI components | 1,321 |
| Data viz | 1,366 |
| SVG | 1,267 |
| 3D | 1,336 |
| Game dev | 1,328 |
| Agentic game dev | 1,182 |
| Godot game dev | 1,112 |
| HTML slides | 1,200 |
| PPTX slides | 1,241 |
| Python→PPTX slides | 1,258 |
| Agentic slides | 1,245 |
| Agentic HTML slides | 1,205 |
| Agentic slides (HTML) | 1,204 |
| Agentic slides (Python PPTX) | 1,240 |
| Code categories | 1,311 |
| ASCII art | 1,182 |
Specs
Context window
205K
tokens
Max output
128K
tokens
Input modalities
text
Tokenizer
Other