Z AI logo

GLM-5.4

zai-org/glm-5.4

flagship GLM for coding and agents with 1M context.

cmd --model zai-org/glm-5.4
Intelligence index
not yet scored
Coding index
not yet scored
Input
$1.40 /M
Output
$4.40 /M
Cache read
$0.26 /M
Agent-loop cost
$0.60 /M in
Context window
1M tokens
Released
December 1, 2026
Modalities
→

moat price

GLM-5.4 on MOAT, the Command Code inference API: members pay list today, with no OpenRouter credit fee. Prices are per 1M output tokens.

Member
$4.40/M
List
$4.40/M
OpenRouter
$4.64/M
List$4.40MOAT member$4.40
GLM-5.4 output price per 1M tokens over 1 weeks: list $4.40 to $4.40, MOAT member $4.40 today.
API id zai-org/GLM-5.4Join MOAT →

vs. the lineup

GLM-5.4 beside its stablemates and nearest rivals. The ◆ marks the best value in each column across every row shown.

pin a rival:
ModelIntelligenceCodingInput $/MOutput $/MBlended $/MContext
GLM-5.344.8◆74.8◆$1.40$4.40$2.151M
GLM-5.3 Flash41.871.5$0.15◆$0.50◆$0.24◆1.05M◆
GLM-5.233.768.8$1.40$4.40$2.151M
GLM-5.4 ◆——$1.40$4.40$2.151M
GLM-5.3 FlashX——$0.37$1.25$0.591M
GLM-5.2 Fast——$3$10.25$4.811M
DeepSeek V4 Pro (latest)pinned3668.8$0.66$1.98$0.991M
DeepSeek V4 Flash (latest)pinned3469.1$0.15◆$0.60$0.261M

usage calculator

How far a month of credits goes on GLM-5.4.

GLM-5.4 runs on GOAT and up — from $10/mo.
Input tokensfresh prompt
800
Output tokensmodel reply
180
Cache read tokensre-read context
50K
cost / request $0.015 · in $1.40 · out $4.40 · cache $0.26 per M
fresh input 8%output 5%cache reads 87%
Requests / 30 days
1.0K
$15 credits ÷ $0.015 per request
~201 quick fixes~40 bug fixes~7 feature PRs

what real work costs

Real coding tasks priced end to end on GLM-5.4, from a quick lookup to a full-repo agent run.

One agent task
$0.15
180K in at 75% cache hit, 12K out
What you pay
$0.79/M
all-in across every token that task touched
Sticker input
$1.40/M
cache reads bill at $0.26 /M instead
TaskTokens in · outGLM-5.4Muse Spark 1.3Claude Haiku 4.5
Quick lookup / one-liner8K · 1K$0.0074$0.0063$0.0065
Review a 500-line PR60K · 4K$0.05$0.05$0.04
Fix a bug (agent loop)180K · 12K$0.15$0.13$0.12
Refactor a module320K · 20K$0.27$0.23$0.21
Full-repo agent run900K · 45K$0.66$0.54$0.49

frequently asked

How much does GLM-5.4 cost?
$1.40/M input and $4.40/M output, cache reads $0.26/M. In an agent loop most input is cache-read, so the effective input rate is about $0.60/M.
Which plan do I need?
Available on GOAT and above.
How do I switch to it?
Run cmd --model zai-org/glm-5.4, or type /model in a session and pick it. You can switch mid-session without losing context.

Ship code that matches your taste

Command Code is the AI coding agent that continuously learns your taste. Start for $1.

Benchmarks from Artificial Analysis (v4.3)commandcode.ai/models/glm-5-4