GLM 5
by Z.ai · z-ai/glm-5 · #204 cheapest of 325 paid models
Prices updated Jul 22, 2026, 1:44 AM UTC · refreshed hourly
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...
Compare vs:Claude Sonnet 5Claude Opus 4.6Claude Haiku 4.5GPT-5.6 Sol
Pricing
Input
$0.95
per 1M tokens
Output
$2.55
per 1M tokens
Blended (3:1)
$1.35
3 input : 1 output
Cache read
$0.20
per 1M cached tokens
Cache write
—
per 1M tokens
Cache & batch economics
Effective prices for GLM 5 with prompt caching.
| Cache hit rate | Effective blended $/1M | Example request* | vs no cache |
|---|---|---|---|
| 0% | $1.35 | $0.0994 | — |
| 50% | $1.07 | $0.062 | −38% |
| 90% | $0.844 | $0.0319 | −68% |
*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.00124 | $1.24 |
| Document summary | 8,000 | 1,000 | $0.0101 | $10.15 |
| Codebase question (RAG) | 30,000 | 2,000 | $0.0336 | $33.60 |
| Long-context analysis | 150,000 | 5,000 | $0.1552 | $155.25 |
Performance
Intelligence Index
—
AA composite quality
Coding Index
—
Math Index
—
Agentic Index
—
Output speed
—
median
Time to first token
—
median
Time to first answer
—
after reasoning tokens
Design Arena Elo
| Category | Elo |
|---|---|
| Website | 1,275 |
| Full-stack | 1,181 |
| Mobile apps | 1,214 |
| Android native | 1,224 |
| UI components | 1,273 |
| Data viz | 1,264 |
| SVG | 1,214 |
| 3D | 1,288 |
| Game dev | 1,292 |
| Godot game dev | 1,183 |
| HTML slides | 1,176 |
| Code categories | 1,279 |
| ASCII art | 1,190 |
Specs
Context window
205K
tokens
Max output
131K
tokens
Input modalities
text
Tokenizer
Other