GLM-5 Code pricing

Z.ai (GLM) · zai-glm-5-code · 200K context · 35th cheapest of 64 current models

What GLM-5 Code costs

USD, standard tier, global endpoint
RatePer 1M tokensPer 1K tokensWhat it covers
Input $1.2 $0.0012 Every token you send: prompt, history, documents.
Output $5 $0.005 Every token the model generates, including hidden reasoning tokens.
Cached input $0.3 $0.0003 Input served from the provider’s prompt cache.

What that means in practice

The same three workloads are costed on every model page, so these numbers are directly comparable across the catalog. No prompt caching and no batch discount is assumed — the figures are what you pay before you optimise anything.

Support chatbot

2,500 six-turn conversations a day

$4,428 / month

$0.059 per conversation · $53,874 a year

An 800-token system prompt, 400-token questions and 900-token answers, over six turns — each turn re-sending everything before it.

Document summariser

1,000 single-shot summaries a day

$559 / month

$0.019 per conversation · $6,804 a year

One 12,000-token document in, an 800-token summary out, no conversation history. The case where input dominates the bill.

Coding agent

200 twelve-turn sessions a day

$3,190 / month

$0.532 per conversation · $38,807 a year

A 3,000-token system prompt, 1,500-token instructions and 2,500-token responses over twelve turns. Long sessions are where the quadratic cost of re-sent history stops being theoretical.

Change the assumptions in the calculator

Cheaper, and scored at least as capable

Every model below costs less on a blended rate and carries a capability score at least as high as GLM-5 Code’s. The score is a rough estimate, not a benchmark — treat it as a shortlist, not a verdict.

ModelInputOutputBlended saving
Kimi K2.6 $0.95 $4 20%
Grok 4.3 $1.25 $2.5 27% side by side
DeepSeek V4 Pro $0.435 $0.87 75%
Kimi K2.5 $0.6 $3 44% side by side

Head to head

Specification

Context window200K tokens
Maximum output128K tokens
ProviderZ.ai (GLM)
StatusCurrent
Reasoning modelYes
VisionNo
Token countingEstimated at ~3.5 characters per token (Estimate — GLM tokenizer, calibrated for mixed English/Chinese)

Where these numbers come from

Last checked against its source on 2026-08-02, and the published rates last actually moved on 2026-08-02. Source of record: LiteLLM’s community-maintained price map.

Z.ai (GLM)’s own pricing page

Regional and data-residency premiums, priority tiers, server-side tool fees and negotiated discounts are not included. Prices change without notice; this page is rebuilt every time the catalog does.