GLM-5.4: Z.ai's Loop Transformer flagship, price and specs

Z.ai opened the GLM-5.4 API on 1 December 2026. It is Z.ai's new flagship and its first model built on a Loop Transformer, which runs 28 layers of the GLM-5 base model twice for deeper reasoning without more parameters. [1][2] Z.ai lists it at $1.40 per 1M input tokens and $4.40 per 1M output tokens, the same as GLM-5.3, with a 1M-token context window. [2][3]

Updated

$1.40 / $4.40

Z.ai's list price per 1M input / output tokens on GLM-5.4, the same as GLM-5.3 [1][3].

How much does the GLM-5.4 API cost?

USD per 1M tokens on Z.ai's API

ModelInputCached inputOutput
GLM-5.4glm-5.4$1.40$0.26$4.40
GLM-5.3glm-5.3$1.40$0.26$4.40

Z.ai bills per 1M tokens. Cached input storage is free for a limited time, on GLM-5.4 and the GLM-5.3 line alike. [3] Z.ai's launch post says pricing stays the same as GLM-5.3. Web Search, a built-in tool, costs $0.01 a use. [1][3]

GLM-5.4 specs and limits

Z.ai released it on 1 December 2026, 8:09 PM PT [1]. The figures below are Z.ai's own.

SpecValue
Model codeglm-5.4 [2]
Context length1M tokens [2]
Maximum output128K tokens [2]
InputVideo, image, text and file [2]
OutputText [2]
ArchitectureLoop Transformer: 28 layers of the GLM-5 base looped for two passes, at 750B scale [2]
FeaturesThinking mode, streaming, function calling, context caching, structured output [2]

What does one GLM-5.4 request cost?

A coding-agent turn worked from Z.ai's list rates: 20,000 input tokens and 4,000 output tokens on GLM-5.3, then the same turn on GLM-5.4 with output 12% shorter (the middle of Z.ai's reported 10 to 14%), then with 15,000 of the input tokens read from cache at $0.26. [2][3]

RequestInputOutputThe request
GLM-5.3: 20K in, 4K out20,000 x $1.40/1M = $0.02804,000 x $4.40/1M = $0.0176$0.0456
GLM-5.4: 20K in, 3.52K out20,000 x $1.40/1M = $0.02803,520 x $4.40/1M = $0.0155$0.0435
GLM-5.4 with 15K input cached5,000 x $1.40/1M + 15,000 x $0.26/1M = $0.01093,520 x $4.40/1M = $0.0155$0.0264

What changed from GLM-5.3?

What Z.ai says is new, in its own words where it matters, with the source for each line.

  • Shorter thinking: Z.ai reports average output length falls 10 to 14% on benchmarks such as GPQA-Diamond and MMLU-Pro, mostly from shorter chains of thought. At the same per-token price, fewer output tokens means a smaller bill per answer. [2]
  • Cheaper long context to serve: the second loop reuses the first pass's sparse KV cache plus one sliding window, so Z.ai says the extra loop costs a window of KV cache, not a second full context. [2]
  • Wider use of code: Z.ai pitches it for video editing, games, 3D modeling and mechanical design, all through code, not only software work. [2]
  • A known weak spot: Z.ai says it can get caught in overly long "marathon thinking" loops, though that extra self-correction improves accuracy. [2]
  • On the GLM Coding Plan, weekly-quota users get 1.5x the GLM-5.3 quota for GLM-5.4. [2]

How do I call GLM-5.4?

Z.ai's setup notes for the new model.

  • Use the model code glm-5.4 with Z.ai's Chat Completion API. Text parameters are the same as GLM-5.3. [2]
  • Z.ai recommends temperature 1, top_p 0.95 and reasoning_effort max. thinking.type only accepts enabled, and Z.ai suggests thinking.clear_thinking false. [2]
  • For streaming, turn on both stream and tool_stream. Images go in as image_url content blocks. [2]
  • It was also live on Databricks on launch day. [4]

A first GLM-5.4 request

Adapted from Z.ai's docs; swap in your own key. [2][5]

curl -X POST "https://api.z.ai/api/paas/v4/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "glm-5.4",
    "temperature": 1,
    "top_p": 0.95,
    "reasoning_effort": "max",
    "thinking": { "type": "enabled", "clear_thinking": false },
    "messages": [
      { "role": "user", "content": "Hello, please introduce yourself." }
    ]
  }'

Is GLM-5.4 on Straitly?

Not yet. Straitly does not serve GLM-5.4 today [6]; use Z.ai's own API for it. New models show up on /models when they are added. If you already use GLM models through Straitly, the next table shows which ones it serves.

Other GLM models you can call on Straitly today

USD per 1M tokens, input / output

ModelContextReleasedList priceBelow listStraitly price
GLM-5.3-Flashglm-5.3-flash1.05MAugust 2026$0.15 / $0.5074%$0.0383 / $0.128
GLM-5.3glm-5.31.05MAugust 2026$1.40 / $4.4068%$0.416 / $1.3866
GLM-5.2glm-5.21.05MJune 2026$1.40 / $4.4067%$0.45 / $1.44
GLM-5.1glm-5.1205KApril 2026$1.40 / $4.4054%$0.495 / $1.9806

The GLM models Straitly carries now, with Z.ai's list price beside Straitly's. [6][7] Newest first. List price is Z.ai's own, as on /models; Straitly's prices are from its live catalog on 6 December 2026. Below list is the smaller of the input and output gaps, rounded down. The base URL is https://api.straitly.ai/v1, and every provider's price for the same models is on the LLM API price index.

Before you switch to GLM-5.4

Ask a question
  • The switch is the model string: text parameters and per-token prices are the same. Z.ai reports 10 to 14% shorter outputs on benchmarks such as GPQA-Diamond, so the same work should bill fewer output tokens; check it on your own prompts, since Z.ai also warns of occasional very long thinking. [2][3]
  • A model that runs a shared block of layers more than once per token. GLM-5.4 runs 28 GLM-5 layers twice, so part of the reasoning moves from written-out thinking tokens into the depth of the loop. [2]
  • No. Z.ai says thinking.type only accepts enabled on GLM-5.4; it recommends clear_thinking false. [2]

Sources

How this post is checked: the Straitly team, which sells API access to AI models, wrote it. Every Z.ai figure is from Z.ai's own pages or posts, read on 3 December 2026; Straitly prices are from its own catalog on 6 December 2026. Published 3 December 2026, last updated 3 December 2026. If something here is out of date, tell us at straitly.ai/contact.

  1. [1]GLM-5.4 API launch postZ.ai on X, posted 1 December 2026
  2. [2]GLM-5.4 overviewZ.ai developer docs, checked 3 December 2026
  3. [3]PricingZ.ai developer docs, checked 3 December 2026
  4. [4]GLM-5.4 on Databricks, day 0Z.ai on X, posted 2 December 2026
  5. [5]Quick startZ.ai developer docs, checked 3 December 2026
  6. [6]Straitly model catalogStraitly, checked 3 December 2026; table prices read 6 December 2026
  7. [7]Straitly modelsStraitly, read 6 December 2026
  8. [8]Straitly quickstartStraitly docs, checked 3 December 2026

One key for the models you already use.

An OpenAI-compatible key for the 118 models on Straitly, prepaid, per token.