Griffin / Claude Code pricing / GLM Coding Plan
GLM Coding Plan: prices, credits and Claude Code setup
Short answer: Z.ai's GLM Coding Plan costs $18 a month for Lite, $72 for Pro and $160 for Max, less when paid quarterly or yearly.1 Each tier gives credits per five hours and per week, spent on GLM-5.3 and GLM-5.3-Flash in Claude Code and 20+ other tools; off-peak use costs half the credits.2 Lite's weekly credits buy about what $4 of GLM-5.3 costs on OpenRouter, so the plan pays off on Pro and Max, or off-peak.25
How much does the GLM Coding Plan cost?
The GLM Coding Plan costs $18 a month for Lite, $72 for Pro and $160 for Max at standard monthly prices, and Z.ai discounts quarterly and annual billing.1
| Tier | Monthly | Quarterly | Annual | Annual, per month |
|---|---|---|---|---|
| Lite | $18 | $48.60 | $172.80 | $14.40 |
| Pro | $72 | $194.40 | $691.20 | $57.60 |
| Max | $160 | $432 | $1,536 | $128 |
Plans moved to credits on July 30, 2026, and Z.ai began turning off auto-renew on legacy plans without weekly limits from April 30, 2026.31 Since October 16, 2026, Coding Plan API keys are separate from standard Z.ai API keys.2
How do GLM Coding Plan credits work?
GLM Coding Plan credits are a token allowance that refills every five hours and every week: Lite gets 2,000 credits per five hours and 10,000 per week, Pro 12,000 and 60,000, and Max 28,000 and 140,000.2 A request costs (input tokens × input rate + cached tokens × cache rate + output tokens × output rate) ÷ 10,000.2
| Model | Input | Cached input | Output | Credits per 1M cached tokens |
|---|---|---|---|---|
| GLM-5.3 | 6.9 | 1.7 | 24 | 170 |
| GLM-5.3-Flash | 2.3 | 0.56 | 8 | 56 |
Off-peak, every request costs half the credits; peak is 14:00–18:00 UTC+8 on weekdays, which is 1–5 a.m. US Eastern, so a US working day is off-peak.2 MCP calls to web search, the web reader and Zread cost 1.2 credits each.2
Is the GLM Coding Plan cheaper than paying per token?
The GLM Coding Plan is cheaper than paying per token only if you use most of your weekly credits: at OpenRouter's lowest GLM-5.3 price on November 21, 2026, a credit buys $0.0001 to $0.0006 of tokens.25 We converted each tier's weekly credits at that price for a cache-heavy agent session, where nearly every token is a cache read:
| Tier | Plan price per week | Credits per week | Same tokens on OpenRouter, peak | Off-peak |
|---|---|---|---|---|
| Lite | $4.14 | 10,000 | $4.05 | $8.11 |
| Pro | $16.56 | 60,000 | $24.32 | $48.64 |
| Max | $36.80 | 140,000 | $56.74 | $113.48 |
So Lite at peak only breaks even, while Pro and Max give 1.5x their price in tokens, and 3x off-peak. Output tokens are worth more per credit than cache reads, so output-heavy work tilts further toward the plan; fresh input tilts against it.25 Claude's own plans, from $20, are compared with the API in Claude Code pricing. Z.ai's own estimate for a 95% cache hit rate is 48–97 million GLM-5.3 tokens a week on Lite, 290–580 million on Pro and 676–1,352 million on Max.2
How do I use the GLM Coding Plan in Claude Code?
You use the GLM Coding Plan in Claude Code by setting its Anthropic endpoint and your Coding Plan key in ~/.claude/settings.json; Z.ai's helper, npx @z_ai/coding-helper, can write it for you.4 Out of the box Z.ai maps Opus, Sonnet and Haiku all to GLM-5.3-Flash; to run the bigger GLM-5.3 for the main session, set the aliases yourself:46
// ~/.claude/settings.json (add to "env"; don't replace the file)
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.z.ai/api/anthropic",
"ANTHROPIC_AUTH_TOKEN": "<your Coding Plan API key>",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5.3",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-5.3",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-5.3-flash"
}
}
- Subscribe on Z.ai and create a Coding Plan key in the console.4
- Add the lines above, or run the helper and follow its prompts.4
- Start
claudeand run/status: the model should readglm-5.3orglm-5.3-flash.6 - For the 1M-token window, add
[1m]to the model name and set"CLAUDE_CODE_AUTO_COMPACT_WINDOW": "1000000".6
| Model ID | Reads | 1M-token window | Credits per 1M output tokens |
|---|---|---|---|
glm-5.3 | Text | Add [1m] | 2,400 |
glm-5.3-flash | Text and images | Add [1m] | 800 |
GLM-5.3 reads text only; GLM-5.3-Flash also reads images.6 Requests for the older GLM-5.2 and 5.1 are served by GLM-5.3, and GLM-4.7 by GLM-5.3-Flash.2
How good is GLM 5.3 for coding?
GLM 5.3 passed 98.6% of RouteBench's coding tasks at $1.51 per 1,000, and GLM 5.3 Flash 95.0% at $0.13, but Flash fell to 85.7% on tool calling.7
| Model | Code review | Security review | Tool calling |
|---|---|---|---|
| GLM 5.3 | 97.3% · $1.47 | 98.9% · $1.62 | 100% · $1.08 |
| GLM 5.3 Flash | 95.5% · $0.03 | 98.1% · $0.17 | 85.7% · $0.10 |
| DeepSeek V4.1 Flash | 99.1% · $0.13 | 97.4% · $0.18 | 100% · $0.20 |
| Claude Sonnet 5.5 | 100% · $1.39 | 100% · $1.71 | 100% · $3.77 |
On real pull requests in our own review agent, GLM 5.3 Flash was 43% cheaper than DeepSeek V4.1 Flash on code review but found 33 significant issues to DeepSeek's 41 over 54 paired reviews, about one real bug in five missed, so we kept DeepSeek there.8 It won elsewhere: performance review cost 66% less and cost review 50% less on GLM with as many findings.8 An early round of 26 pairs had said GLM was as good on code; it reversed by 54, so test on 40 or more pairs before you switch.8
Is GLM as good as Claude for Claude Code?
GLM 5.3 came close to Claude on RouteBench but not level: it passed 98.6% of coding tasks to Sonnet 5.5's 100%, at $1.51 per 1,000 tasks against $2.27.7 On real pull requests in our own agent, GLM held up on narrow reviews such as performance and cost but missed more bugs in general code review.8 Use it for bulk work and keep a Claude model, or opusplan, for the hard parts.
Which tools work with the GLM Coding Plan?
The GLM Coding Plan works with Claude Code, Codex, OpenCode, Cline, Z.ai's own ZCode and more than 20 agent tools in all, and every tier includes vision, web search, web reader and Zread MCP servers.2 Each tool connects with a Coding Plan key, which is separate from a standard Z.ai API key.2
Which GLM Coding Plan tier should I buy?
Buy the Pro tier of the GLM Coding Plan if you code most days: Lite's 2,000 credits per five hours run out fast on GLM-5.3, and Pro gives 6x the credits for 4x the price.12 Buy Lite for GLM-5.3-Flash work or occasional use, and Max for long agent sessions or several agents at once. Hacker News users report the plan slowing at busy hours, so keep a pay-per-token fallback such as DeepSeek.9 Moonshot's Kimi coding plan is the closest flat-price rival, from $19 a month.
Is there a GLM Coding Plan for teams?
Yes: the Team Plan sells seats, with 15,000 credits per five hours and 66,000 per week on a Standard seat and 35,000 and 155,000 on a Premium seat, which also gets priority at peak hours and early access to new models.10
Sources
- Z.ai docs: legacy plan migration notice, with current prices (April 21, 2026) · checked
- Z.ai docs: GLM Coding Plan overview · checked
- Z.ai docs: plan update notice (credits from July 30, 2026) · checked
- Z.ai docs: Claude Code setup · checked
- OpenRouter: GLM 5.3 prices · checked
- Z.ai docs: switching to GLM-5.3 and GLM-5.3-Flash · checked
- Griffin: RouteBench coding results, six runs pooled (our data) · checked
- Winding AI: IonWarp review-agent model trials, September to November 2026 (our own runs, internal) · checked
- Hacker News: "Z.ai doubles it's coding plan prices" thread · checked
- Z.ai docs: GLM Coding Plan for teams · checked
FAQ
How much is the GLM Coding Plan?
$18 a month for Lite, $72 for Pro and $160 for Max at monthly prices; annual billing works out to $14.40, $57.60 and $128 a month.
Is the GLM Coding Plan worth it?
On Pro or Max, if you use most of the weekly credits: their credits buy about 1.5x their price in GLM-5.3 tokens at OpenRouter's rate, and 3x off-peak. Lite at peak only breaks even.
What models does the GLM Coding Plan include?
GLM-5.3 and GLM-5.3-Flash on every tier. Requests for GLM-5.2 and 5.1 are served by GLM-5.3, and GLM-4.7 by GLM-5.3-Flash.
What are the GLM Coding Plan's peak hours?
14:00 to 18:00 UTC+8, Monday to Friday, which is 06:00 to 10:00 UTC. Outside them, requests cost half the credits.
Can I use the GLM Coding Plan with Claude Code?
Yes. Set ANTHROPIC_BASE_URL to https://api.z.ai/api/anthropic and ANTHROPIC_AUTH_TOKEN to your Coding Plan key in ~/.claude/settings.json, or run npx @z_ai/coding-helper.
Know when the cheap model is enough.
Griffin replays your app's real AI calls on cheaper models such as GLM and moves a feature only after one passed. Watching is free.