CHEAPEST INPUT TODAY Nova Micro $0.035/MBLENDED PRICE SPREAD 1102× (Nova Micro → GPT-5.4 Pro)128 MODELS · 16 PROVIDERS re-checked every morning by a GitHub ActionFOLLOW PRICE CHANGES commit feed → Data & Alerts

GLM-5 Code pricing

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

Estimate GLM-5 Code for your workload Source and check date

Rates last checked against LiteLLM’s community-maintained price map on 2026-11-11.

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 optimize anything.

Support chatbot

2,500 six-turn conversations a day

$4,428 / month

$0.059 per conversation · $53,136 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 summarizer

1,000 single-shot summaries a day

$559 / month

$0.019 per conversation · $6,710 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,275 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
GPT-6.1 Terra $1 $5 7%
DeepSeek V4 Flash $0.3 $1.2 76%
MiMo V2.6 Pro $0.435 $0.87 75%
Claude Haiku 5.5 $0.1 $0.5 91%
GLM-5.3 Flash $0.15 $0.5 89%

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)

Price history

PromptSpend has recorded GLM-5 Code since 2026-08-02, and none of its rates has changed in that time. Tracking began on 2026-08-02, so anything the vendor did before then is not on record here.

Every row, with the commit that published it, is in the price-history dataset; price news is also available as an Atom feed.

Where these numbers come from

Last checked against its source on 2026-11-11. 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.

Common questions

How much does GLM-5 Code cost?

GLM-5 Code costs $1.2 per 1M input tokens and $5 per 1M output tokens at the standard tier, as last checked against LiteLLM’s community-maintained price map on 2026-11-11.

How much does GLM-5 Code cost to run for a month?

On PromptSpend's three standard workloads, GLM-5 Code costs about $4,428 for a support chatbot, $559 for a document summarizer and $3,190 for a coding agent each month. No prompt caching and no batch discount is assumed, and the same workloads are costed on every model page, so the figures compare directly.

Is there a cheaper alternative to GLM-5 Code?

Yes. GPT-6.1 Terra ($1 in, $5 out), DeepSeek V4 Flash ($0.3 in, $1.2 out) and MiMo V2.6 Pro ($0.435 in, $0.87 out) cost less on a blended rate and carry a capability score at least as high. The score is a rough estimate, not a benchmark, so treat the list as a shortlist.

How large is the context window of GLM-5 Code?

GLM-5 Code accepts up to 200K tokens of context and can produce up to 128K tokens of output.

Has the price of GLM-5 Code changed?

No vendor change is on record. PromptSpend has recorded GLM-5 Code since 2026-08-02 and none of its rates has moved. PromptSpend began tracking prices on 2026-08-02, so earlier changes are not on record.

Where do the prices for GLM-5 Code come from?

They come from LiteLLM’s community-maintained price map and were last checked on 2026-11-11. Regional and data-residency premiums, priority tiers, server-side tool fees and negotiated discounts are not included.

Standard-tier, global-endpoint list prices in USD. This build read the catalog generated 2026-11-11.