GLM-5 Code API pricing

From the LiteLLM price list; not yet checked against the official page · Official pricing ↗Synced 2026-11-24 01:00 UTC · Method

GLM-5 Code prices per 1M tokens
FieldPer 1M tokens
Input$1.20
Output$5.00
Cached input$0.30

Report a wrong price

Z.ai (Zhipu GLM) · Max input 200,000 · Max output 128,000
reasoning · tool calling
Per 1,000 tokens (1K): $0.0012 input, $0.005 output.

Calculate my cost →

Follow this price:
Atom feed ▾
AtomJSON

Get notified in any feed reader.

Billing rules for caching, Batch and long prompts: Z.ai (Zhipu GLM) API cost guide.

Price in context

GLM-5 Code ranks 14 of 15 current Z.ai (Zhipu GLM) models by output price, cheapest first (GLM-5.3 Flash is the cheapest at $0.50, GLM-4.5 X the most expensive at $8.90). Output tokens cost 4.17× the input price; the median across all 126 current models is 5×. Against the whole table (median $1.25 input / $4.40 output per 1M), GLM-5 Code is cheaper on one and pricier on the other.

Cached input costs 25% of the normal input price ($0.30 vs $1.20 per 1M). In the support-chatbot scenario with 60% cache hits the month comes to $419 instead of $516 without caching (19% less). There is no separate cache-write charge: repeated prefixes are discounted automatically. This site's data has no batch price for this model, so the calculations here bill batch jobs at the standard rates.

The context window is 200,000 tokens, roughly 400 pages of English text; 87% of current models accept more. The closest model from another provider by price is GPT-6.1 Terra ($1.00 / $5.00); the cheapest reasoning model for the chatbot scenario is MiMo V2.6 Flash at $27.18 per month against $419 for GLM-5 Code.

What it costs per month

Estimated monthly cost by workload (USD)
Scenario (per month)GLM-5 Code
Customer support chatbot
5,000 req/day · 1,200 in · 400 out · cache 60%
$419
RAG over documents
2,000 req/day · 8,000 in · 600 out · cache 30%
$626
Coding agent
1,500 req/day · 25,000 in · 2,000 out · cache 80%
$990
Deep reasoning
800 req/day · 3,000 in · 6,000 out · cache 20%
$793
Batch processing
50,000 req/day · 1,500 in · 150 out · batch
$3,825

Adjust the numbers in the calculator.

Cheaper alternatives

Lowest monthly cost for the chatbot scenario among reasoning models:

Comparisons

Other Z.ai (Zhipu GLM) models

GLM-4.5 X, GLM-5.3 FlashX, GLM-5.3 Flash, GLM-5.3, GLM-5.2, GLM-5.1, GLM-5v Turbo, GLM-5, GLM-4.7, GLM-4.6, GLM-4.5v, GLM-4.5, GLM-4.5 Air, GLM-4.5 AirX · All Z.ai (Zhipu GLM) API prices →

Models at a similar price

GPT-6.1 Terra ($1.00/$5.00), Claude Haiku 4.5 ($1.00/$5.00), GLM-4.5 AirX ($1.10/$4.50), GLM-5.3 ($1.40/$4.40), GLM-5.2 ($1.40/$4.40), GLM-5.1 ($1.40/$4.40)

Price history

No price changes recorded since tracking began on 2026-10-08. See all price changes →

Other changes (1)

Listings, fields a source added or dropped, and limit changes. These are not price moves.

Recorded price changes, USD per 1M tokens
DateChangeOld /1MNew /1MWhat happened
2026-10-08Added———

Source and checks

Source and checks
Data sourceLiteLLM price list (MIT)
Official pricingdocs.z.ai ↗
Last synced2026-11-24 01:00 UTC
Last price changeNo price changes recorded since tracking began on 2026-10-08.
Cross-checkSingle source: models.dev has no comparable data
Official checkThe official page was read on 2026-11-24 and this ID is not on it, so its price could not be checked against this page
Price regionNot confirmed by an official check

Cite: GLM-5 Code API pricing, https://apicostcheck.com/models/glm-5-code/, retrieved 2026-11-24. Reuse under CC BY 4.0; a plain or nofollow link is fine.