---
title: "GLM-5.4 API Price, 1M Context and What Changed | Straitly"
description: "Z.ai released GLM-5.4 on 1 Dec 2026: a 1M-context Loop Transformer at $1.40 in and $4.40 out per 1M tokens, the same price as GLM-5.3."
url: https://straitly.ai/news/glm-5-4
updated: 2026-12-03
publisher: Straitly (https://straitly.ai)
---

# 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\]](#src-1) [\[2\]](#src-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\]](#src-2) [\[3\]](#src-3)

Updated 3 December 2026

[See GLM-5.4 prices](#prices) [See the specs ](#specs)

$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\]](#src-1) [\[3\]](#src-3).

## How much does the GLM-5.4 API cost?

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

| Model           | Input | Cached input | Output |
| --------------- | ----- | ------------ | ------ |
| GLM-5.4 glm-5.4 | $1.40 | $0.26        | $4.40  |
| GLM-5.3 glm-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\]](#src-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\]](#src-1) [\[3\]](#src-3)

## GLM-5.4 specs and limits

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

| Spec           | Value                                                                                              |
| -------------- | -------------------------------------------------------------------------------------------------- |
| Model code     | glm-5.4 [\[2\]](#src-2)                                                                            |
| Context length | 1M tokens [\[2\]](#src-2)                                                                          |
| Maximum output | 128K tokens [\[2\]](#src-2)                                                                        |
| Input          | Video, image, text and file [\[2\]](#src-2)                                                        |
| Output         | Text [\[2\]](#src-2)                                                                               |
| Architecture   | Loop Transformer: 28 layers of the GLM-5 base looped for two passes, at 750B scale [\[2\]](#src-2) |
| Features       | Thinking mode, streaming, function calling, context caching, structured output [\[2\]](#src-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\]](#src-2) [\[3\]](#src-3)

| Request                       | Input                                          | Output                     | The request |
| ----------------------------- | ---------------------------------------------- | -------------------------- | ----------- |
| GLM-5.3: 20K in, 4K out       | 20,000 x $1.40/1M = $0.0280                    | 4,000 x $4.40/1M = $0.0176 | $0.0456     |
| GLM-5.4: 20K in, 3.52K out    | 20,000 x $1.40/1M = $0.0280                    | 3,520 x $4.40/1M = $0.0155 | $0.0435     |
| GLM-5.4 with 15K input cached | 5,000 x $1.40/1M + 15,000 x $0.26/1M = $0.0109 | 3,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\]](#src-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\]](#src-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\]](#src-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\]](#src-2)
- On the GLM Coding Plan, weekly-quota users get 1.5x the GLM-5.3 quota for GLM-5.4\. [\[2\]](#src-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\]](#src-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\]](#src-2)
- For streaming, turn on both stream and tool\_stream. Images go in as image\_url content blocks. [\[2\]](#src-2)
- It was also live on Databricks on launch day. [\[4\]](#src-4)

## A first GLM-5.4 request

Adapted from Z.ai's docs; swap in your own key. [\[2\]](#src-2) [\[5\]](#src-5)

Copy

```
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\]](#src-6); use Z.ai's own API for it. New models show up on [/models](https://straitly.ai/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

| Model                                                                   | Context | Released    | List price    | Below list | Straitly price   |
| ----------------------------------------------------------------------- | ------- | ----------- | ------------- | ---------- | ---------------- |
| [GLM-5.3-Flash](https://straitly.ai/models/glm-5.3-flash) glm-5.3-flash | 1.05M   | August 2026 | $0.15 / $0.50 | 74%        | $0.0383 / $0.128 |
| [GLM-5.3](https://straitly.ai/models/glm-5.3) glm-5.3                   | 1.05M   | August 2026 | $1.40 / $4.40 | 68%        | $0.416 / $1.3866 |
| [GLM-5.2](https://straitly.ai/models/glm-5.2) glm-5.2                   | 1.05M   | June 2026   | $1.40 / $4.40 | 67%        | $0.45 / $1.44    |
| [GLM-5.1](https://straitly.ai/models/glm-5.1) glm-5.1                   | 205K    | April 2026  | $1.40 / $4.40 | 54%        | $0.495 / $1.9806 |

The GLM models Straitly carries now, with Z.ai's list price beside Straitly's. [\[6\]](#src-6) [\[7\]](#src-7) Newest first. List price is Z.ai's own, as on [/models](https://straitly.ai/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](https://straitly.ai/llm-api-price-index).

[See all models ](https://straitly.ai/models)

## Before you switch to GLM-5.4

[Ask a question](https://straitly.ai/contact)

- ### Should I move from GLM-5.3 to GLM-5.4?
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\]](#src-2) [\[3\]](#src-3)
- ### What is a Loop Transformer?
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\]](#src-2)
- ### Can I turn thinking off?
No. Z.ai says thinking.type only accepts enabled on GLM-5.4; it recommends clear\_thinking false. [\[2\]](#src-2)

## Read next

- [Gemini 4 Live: Google's new real-time voice model, prices and limits](https://straitly.ai/news/gemini-4-live)
- [GLM vs Claude Opus](https://straitly.ai/compare/glm-vs-claude-opus)
- [GLM vs GPT Astra](https://straitly.ai/compare/glm-vs-gpt-astra)
- [DeepSeek Pro vs GLM](https://straitly.ai/compare/deepseek-pro-vs-glm)
- [Kimi Pro vs GLM](https://straitly.ai/compare/kimi-pro-vs-glm)
- [Reasoning controls](https://straitly.ai/docs/reasoning)
- [Structured outputs](https://straitly.ai/docs/structured-outputs)
- [Coding agent cost](https://straitly.ai/coding-agent-cost)
- [LLM API price index](https://straitly.ai/llm-api-price-index)
- [All model launch news](https://straitly.ai/news)
- [Straitly pricing](https://straitly.ai/pricing)

## Sources

How this post is checked: the [Straitly team](https://straitly.ai/about), 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](https://straitly.ai/contact).

1. \[1\] [GLM-5.4 API launch post](https://x.com/Zai%5Forg/status/2127978422441767192) Z.ai on X, posted 1 December 2026
2. \[2\] [GLM-5.4 overview](https://docs.z.ai/guides/llm/glm-5.4) Z.ai developer docs, checked 3 December 2026
3. \[3\] [Pricing](https://docs.z.ai/guides/overview/pricing) Z.ai developer docs, checked 3 December 2026
4. \[4\] [GLM-5.4 on Databricks, day 0](https://x.com/Zai%5Forg/status/2128160433530171768) Z.ai on X, posted 2 December 2026
5. \[5\] [Quick start](https://docs.z.ai/guides/overview/quick-start) Z.ai developer docs, checked 3 December 2026
6. \[6\] [Straitly model catalog](https://straitly.ai/api/catalog) Straitly, checked 3 December 2026; table prices read 6 December 2026
7. \[7\] [Straitly models](https://straitly.ai/models) Straitly, read 6 December 2026
8. \[8\] [Straitly quickstart](https://straitly.ai/docs/quickstart) Straitly 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.

[Console](https://straitly.ai/app) [Talk to sales ](https://straitly.ai/contact)

---
Markdown version of https://straitly.ai/news/glm-5-4.

Ask a question about this page: https://straitly.ai/ask?q=your+question
