For coding agents, GLM 5.2 costs 1.9x as much as DeepSeek V4 Pro per request ($0.057 vs $0.030 on our measured traffic), because GLM 5.2 lists at $1.40 input, $0.26 cached input and $4.40 output per million tokens against $1.32, $0.044 and $3.96 for DeepSeek V4 Pro.
Run any of these models 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 | DeepSeek V4 Pro | GLM 5.2 |
|---|---|---|
| Prompt under 100K tokens50% of requests, 87% of input cached | $0.014 | $0.026 |
| Prompt of 100K to 272K39% of requests, 88% of input cached | $0.036 | $0.070 |
| Prompt over 272K tokens11% of requests, 86% of input cached | $0.084 | $0.16 |
| Average request | $0.030 | $0.057 |
| 100 requests | $3.04 | $5.72 |
| Median session16 requests; a session ends after 10 idle minutes | $0.41 | $0.71 |
| A month of regular usemedian of 20 users active on 5+ days | $42.42 | $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 | DeepSeek V4 Pro | GLM 5.2 |
|---|---|---|
| Intelligence Index10 evaluations, 0 to 100 | 36 | 34 |
| Terminal-Bench 4.0agentic coding in a terminal | 14.1% | 1.0% |
| Output speedmedian | 99 tokens/s | 83 tokens/s |
| Time to first answer tokenincludes thinking time | 22 s | 27 s |
Source: Artificial Analysis (artificialanalysis.ai). Measured variants: DeepSeek V4 Pro 0813 (Max), speed on DeepSeek; GLM-5.2 (Max), speed on Z AI. Fetched October 13, 2026. Artificial Analysis runs Terminal-Bench 4.0 in its own setup, so its scores differ from the tbench.ai leaderboard.
87% of agent input is read from cache, and GLM 5.2 charges $0.26 per million for it against $0.044. GLM 5.2 is superseded: GLM 5.3 costs $0.057 per request. DeepSeek figures use its peak-hour rates; the rest of the time it costs half, $1.52 per 100 requests.
Pick a winner in each dimension. You can change your vote any time.
Correctness and depth of what it produces
Tool calls, instruction-following, and multi-step tasks
Tokens per second and time-to-first-token
How much capability you get per dollar
Consistent results: fewer refusals, loops and format breaks
Setting it up? DeepSeek V4 Pro: model ID, providers and agent config · GLM 5.2: model ID, providers and agent config
The agent matters as much as the model. Compare AI agents →
Every model on this page runs on Standard Compute