GPT-5.1 vs GLM-5 Code
OpenAI against Z.ai (GLM), costed on the same three workloads. GLM-5 Code is cheaper on all three workloads.
Run this comparison on your own numbers
Monthly bill, side by side
| Workload | GPT-5.1 | GLM-5 Code | Difference |
|---|---|---|---|
| Support chatbot 2,500 six-turn conversations a day |
$6,553 | $4,428 | $2,125 (+48%) |
| Document summarizer 1,000 single-shot summaries a day |
$698 | $559 | $138 (+25%) |
| Coding agent 200 twelve-turn sessions a day |
$4,185 | $3,190 | $995 (+31%) |
No prompt caching and no batch discount on either side, so the comparison is like for like. Both figures assume 30 days a month.
The rate cards
| GPT-5.1 | GLM-5 Code | |
|---|---|---|
| Input, per 1M tokens | $1.25 | $1.2 |
| Output, per 1M tokens | $10 | $5 |
| Cached input | $0.125 | $0.3 |
| Context window | 272K | 200K |
| Maximum output | 128K | 128K |
| Reasoning model | yes | yes |
| Vision | yes | no |
Beyond the price
- GPT-5.1 reads up to 272K tokens of context in one request; GLM-5 Code stops at 200K.
- Only GPT-5.1 accepts images as input.
- Cached input costs 90% less than fresh input on GPT-5.1 and 75% less on GLM-5 Code, which matters most for workloads that resend the same prompt.
Run this comparison on your own numbers
Full detail: GPT-5.1 pricing · GLM-5 Code pricing
More comparisons
Other head-to-heads that include GPT-5.1 or GLM-5 Code.
- GPT-5.1 vs Nova 2 Pro
- GPT-5.1 vs Grok 4.3
- GPT-5.1 vs GLM-5
- GLM-5 Code vs Nova 2 Pro
- GLM-5 Code vs DeepSeek V4 Pro
- GLM-5 Code vs GPT-5.4 Mini
Common questions
Which is cheaper, GPT-5.1 or GLM-5 Code?
GLM-5 Code is cheaper on all three workloads.
How much would GPT-5.1 and GLM-5 Code cost each month?
On PromptSpend's standard workloads, per month: support chatbot: GPT-5.1 $6,553, GLM-5 Code $4,428 (GLM-5 Code is cheaper by $2,125); document summarizer: GPT-5.1 $698, GLM-5 Code $559 (GLM-5 Code is cheaper by $138); coding agent: GPT-5.1 $4,185, GLM-5 Code $3,190 (GLM-5 Code is cheaper by $995). No prompt caching and no batch discount is assumed.
How do GPT-5.1 and GLM-5 Code differ apart from price?
GPT-5.1 reads up to 272K tokens of context in one request; GLM-5 Code stops at 200K. Only GPT-5.1 accepts images as input. Cached input costs 90% less than fresh input on GPT-5.1 and 75% less on GLM-5 Code, which matters most for workloads that resend the same prompt.