GLM 5.2 costs about $0.057 per average coding-agent request on our measured traffic, at list prices of $1.40 per million input and $4.40 per million output tokens. It scores 34 on the Artificial Analysis Intelligence Index, 25th of the 48 models we track. Source: Artificial Analysis (artificialanalysis.ai)
A newer version is out. GLM 5.3 →
Run GLM 5.2 in your agent
Or let the router send each step to the cheapest model that can do it, on providers we vet for price, uptime and speed. Plans from $19 a month.
| Cost at list price | GLM 5.2 |
|---|---|
| Prompt under 100K tokens50% of requests, 87% of input cached | $0.026 |
| Prompt of 100K to 272K39% of requests, 88% of input cached | $0.070 |
| Prompt over 272K tokens11% of requests, 86% of input cached | $0.16 |
| Average request | $0.057 |
| 100 requests | $5.72 |
| Median session16 requests; a session ends after 10 idle minutes | $0.71 |
| A month of regular usemedian of 20 users active on 5+ days | $92.16 |
Each logged request priced at the vendor’s list rates for its own token counts, including cache reads and any higher rate for long prompts. Average output: 698 tokens per request.
| Artificial Analysis | Value | Rank |
|---|---|---|
| Intelligence Index10 evaluations, 0 to 100 | 34 | 25 of 48 |
| Terminal-Bench 4.0agentic coding in a terminal | 1.0% | 30 of 39 |
| Output speedmedian | 83 tokens/s | 27 of 44 |
| Time to first answer tokenincludes thinking time | 27 s | 16 of 44 |
Source: Artificial Analysis (artificialanalysis.ai). Measured variant: GLM-5.2 (Max), speed on Z AI. Fetched October 13, 2026. Rank is among the models on this site, older versions included. Artificial Analysis runs Terminal-Bench 4.0 in its own setup, so its scores differ from the tbench.ai leaderboard.
GLM 5.3 has replaced it and costs $0.057 per request on our traffic. It is weak on long agentic coding tasks (see Terminal-Bench 4.0 above), so a cheap request can turn into more steps and retries.

GLM 5.2 was Z.AI's open-weight flagship from June 16, 2026, with a 1M-token context, until GLM 5.3 replaced it in August. GLM 5.3 was post-trained on the GLM 5.2 base and scores far higher: Artificial Analysis gives GLM 5.2 34 on its Intelligence Index and 1.0% in its Terminal-Bench 4.0 run, against 45 and 41.9% for GLM 5.3. Both list at $1.40/$4.40 per million tokens, so they cost the same per request.
Sources: Artificial Analysis
Existing GLM 5.2 setups until they move to GLM 5.3.
Setting it up? GLM 5.2: model ID, providers and agent config →
The agent matters as much as the model. Which agent gets the most out of GLM 5.2? →
Every model on this page runs on Standard Compute