Z.ai·Updated Nov 2026
GLM 5 Code logo

GLM 5 Code

Z.ai · Compare per-1M input/output rates, prompt cache discounts, and context windows.

Open
Lowest Effective ($100)
$2.22
4 providers · Vercel
Input / 1M
$1.20
Output / 1M
$5.00
Cache Read
$0.30-75%
Context / Max Output
200K / 128K
5m Cache Write $0.00/1MInput Modalities: Text

Verified Provider Routes (GLM 5 Code)

Rank model × provider routes by effective $/1M cost after top-up fees.

Providers Directory
$10 – $100,000
$
Value Ranking · Net Purchasing Power

Tokens Bought per $100 Out-of-Pocket

GLM 5 Code (75% / 25%)

Top pick yields +101.1% more tokens than highest-cost route
#1
Command Code Plans (GOAT / Pro / Max) logo
Command Code
PlanCapped· Best Value
GOAT $10/mo ($100 pool) + $90 rollover · 5h & weekly rolling caps
88.37M tokens
$1.13/1M blended
Visit
#2
OpenCode Go logo
OpenCode Go
PlanCapped
$10 Go ($60 pool) + $90 Zen overflow · 20% / 5h · 50% / week
67.79M tokens
$1.48/1M blended
Visit
#3
Vercel AI Gateway logo
Vercel
Gateway
+$3.20 card fee · $96.80
45.02M tokens
$2.22/1M blended
Visit
#4
+$4.70 card fee · $95.30
44.33M tokens
$2.26/1M blended
Visit
+$5/mo MOAT · $95.00 · $5/mo MOAT · 0% markup
44.19M tokens
$2.26/1M blended
Visit
#6
OpenRouter logo
OpenRouter
Gateway
+$5.50 card fee · $94.50
43.95M tokens
$2.28/1M blended
Visit

Flat-Rate Coding Plans Including GLM 5 Code

Subscription tiers apply rolling 5h/weekly caps unlike unlimited PAYG APIs; saturated estimates divide seat fee by published pool.

3 coding plans
Go $10/mo · Plus $40/mo
$15–$60 equiv. monthly pool (Standard tier)
20% / 5h · 50% / week$0.36–$1.43/1M
GOAT $10/mo
Up to $100 open-model pool (~10x)
5h & weekly rolling caps$0.21–$0.36/1M
Lite $18 · Pro $80 · Max $168/mo
Flat-rate 1M-context GLM coding quota (~30% off annual)
Tiered concurrency + off-peak savingsPooled credits

Checkout Fee & Rate Breakdown

Comparing Providers For: GLM 5 Code · $100

6 routes
ProviderTypeListFees & Discounts ($100)Eff. Input / Eff. OutputtokensConfidenceNotesOfficial docs
Plan$1.20 / $5.00$10.00 (0.0%)$0.63 / $2.63
88.37M tokens
+101.1%
VerifiedGOAT $10/mo ($100 pool) + $90 rollover · 5h & weekly rolling capsOfficial docs
Plan$1.20 / $5.00$14.26 (0.0%)$0.82 / $3.43
67.79M tokens
+54.2%
Verified$10 Go ($60 pool) + $90 Zen overflow · 20% / 5h · 50% / weekOfficial docs
Gateway$1.20 / $5.00$3.20 (3.2%)$1.24 / $5.17
45.02M tokens
+2.4%
Pass-ThroughCache Read $0.30/1MOfficial docs
Gateway$1.20 / $5.00$4.70 (4.7%)$1.26 / $5.25
44.33M tokens
+0.8%
Pass-ThroughCache Read $0.30/1MOfficial docs
Plan$1.20 / $5.00$5.00 (5.0%)$1.26 / $5.26
44.19M tokens
+0.5%
Pass-Through$5/mo MOAT · 0% markup · Cache Read $0.30/1MOfficial docs
Gateway$1.20 / $5.00$5.50 (5.5%)$1.27 / $5.29
43.95M tokens
Pass-ThroughCache Read $0.30/1MOfficial docs
Runs locally · 200K context
Open BPE token visualizer
Estimated Tokens
46
Characters
243
Context Window (200K)0.02%
Input cost (1 call)
$0.000055
Total w/ 400 out tokens
$0.0021
10,000 calls (uncached)
$20.55
10,000 calls (cached input)
$20.14

Comparable Alternatives (GLM 5 Code)

Model Catalog
ModelVendorInput / 1MOutput / 1MCache ReadContext
Z.ai logoZ.ai$1.20$5.00$0.30200K
xAI logoxAI$1.25$2.50$0.202MCompare →
Google logoGoogle$1.25$5.00$0.00200KCompare →
Google logoGoogle$1.25$10.00$1.25128KCompare →
Google logoGoogle$1.25$10.00$0.131.05MCompare →

Frequently Asked Questions

Where is the cheapest place to run GLM 5 Code API?

On a $100 card deposit at a 3:1 input/output ratio, Vercel offers the lowest effective cost for GLM 5 Code at $2.22 per 1M blended tokens across 4 tracked providers (list rate $1.20 input / $5.00 output).

How much does GLM 5 Code cost per 1M tokens?

GLM 5 Code lists at $1.20 per 1M input tokens and $5.00 per 1M output tokens ($2.15 blended at 3:1). Effective provider rates after payment fees range from $2.22 to $2.28 per 1M.

What is the context window and max output of GLM 5 Code?

GLM 5 Code supports a 200K context window and up to 128K output tokens per request.

Does GLM 5 Code support prompt caching or open-weight deployment?

Prompt cache reads are billed at $0.30/1M (75% off list input). Open weights (Open Weight) allow self-hosting or multi-provider inference.

Related Head-to-Head Matchups

Comparisons