softwareestimator.com

GLM 5.1 API pricing

Z.ai · z-ai/glm-5.1 · synced November 22, 2026

Over six months old. Z.ai's newest model is GLM 5.3 FlashX Legal.

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26 (November 2026). For a developer using it as a daily coding agent, that works out to roughly $10–$252 a month, and building a SaaS MVP with it lands around $25–$629 in tokens.

Input
$1.40 / 1M
Output
$4.40 / 1M
Cache read
$0.26 / 1M
Batch
not listed
Context
205k tokens
Max output
131k tokens
Released
Apr 2026
Tools / reasoning
tools · reasoning

What it costs in practice

A month of AI coding

One developer running a coding agent daily, 20M–200M tokens.

Low
$10
20M tokens
Expected
$48
60M tokens
High
$252
200M tokens

Building a SaaS MVP

Stripe billing, OAuth, webhooks: the estimator's SaaS preset.

Low
$25
50M tokens
Expected
$119
150M tokens
High
$629
500M tokens

Assumptions are on the methodology page. Price your own project →

Similar cost, other providers

Model Provider Input /1M Output /1M Cache read Context Coding month* Released
Qwen3.7 Max Qwen $1.48 $4.42 $0.295 1M $11–$262 May 2026
Gemini 4 Hydrogen Google $1.50 $7.50 $0.075 1M $9–$319 Nov 2026
Muse Spark Open Meta $1.25 $4.25 $0.15 1M $8–$225 Oct 2026
Muse Spark 1.3 Meta $1.25 $4.25 $0.15 1M $8–$225 Sep 2026
Muse Spark 1.2 Meta $1.25 $4.25 $0.15 1M $8–$225 Aug 2026
Muse Spark 1.1 Meta $1.25 $4.25 $0.15 1M $8–$225 Jul 2026

Other Z.ai models

Model Input /1M Output /1M Cache read Context Coding month* Released
GLM 5.3 FlashX Legal $0.37 $1.25 $0.075 1M $3–$69 Nov 2026
GLM 5.3 Prime $1.68 $5.28 $0.336 1M $12–$304 Sep 2026
GLM 5.3 FlashX $0.37 $1.25 $0.075 1M $3–$69 Sep 2026
GLM 5.3 Flash $0.15 $0.50 $0.03 1M $1–$28 Aug 2026
GLM 5.3 $0.0699 $1.40 $0.0689 1M $2–$46 Aug 2026
GLM 5.2 $0.62 $2.42 $0.14 1M $5–$125 Jun 2026

Frequently asked questions

How much does GLM 5.1 cost?

GLM 5.1 costs $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26 (November 2026). For a developer using it as a daily coding agent, that works out to roughly $10–$252 a month, and building a SaaS MVP with it lands around $25–$629 in tokens.

Is GLM 5.1 cheaper than similar models?

The closest models by real coding cost are Qwen3.7 Max (Qwen, $1.48/$4.42), Gemini 4 Hydrogen (Google, $1.50/$7.50), Muse Spark Open (Meta, $1.25/$4.25). Per-token price is only half the story: a model that needs fewer retries can cost less overall.

Why is the estimate a range?

Agentic coding spend varies more than 10× between runs of the same task. Cache hit rate, retries and how much log output goes back into context decide where you land, so we show low, expected and high rather than one number.

Prices are OpenRouter list prices from openrouter.ai/models, which normally match Z.ai's own. Estimates are for planning, not quotes.