ChatGBot
ModelliFunzionalitàCreatore di appPrezziFAQ
AccediInizia gratis
← Torna al blog2 dicembre 2026

GLM-5.4: Z.ai's first Loop Transformer model, explained

By the ChatGBot Team · Published December 2, 2026

GLM-5.4 is Z.ai's new flagship AI model and the first built on a Loop Transformer, a design that runs part of the network twice to reason more deeply without adding parameters. It reads text, images, video and files, handles 1M tokens of context, and costs $1.40 per million input tokens and $4.40 per million output tokens on Z.ai's API. Here is what changed from GLM-5.3, how to access it and who it is for.

ClaudeGPTDeepSeekQwenGLM

Every top AI in one app

GPT, Claude, DeepSeek, Qwen and GLM. One subscription.

Try ChatGBot →

GLM-5.4 at a glance

GLM-5.4
Made byZ.ai (Zhipu AI)
LaunchedNovember 23, 2026 (GLM Coding Plan, ZCode, Z.ai Chat)
API accessOpened around December 2, 2026
ArchitectureLoop Transformer: 28 layers of the GLM-5 base run twice
InputText, images, video, files
OutputText
Context window1M tokens (1,048,576 on OpenRouter)
Max output128K tokens (Z.ai API)
Z.ai API price$1.40 input / $4.40 output per 1M tokens, $0.26 cached input
Model IDglm-5.4 (Z.ai), z-ai/glm-5.4 (OpenRouter)
Speed (Z.ai)Up to 200 tokens/s off-peak, 70 to 80 at peak
Open weightsNot yet released

What is GLM-5.4?

GLM is the model family from Z.ai, the company formerly known as Zhipu AI. If you are new to it, our explainer on what GLM is covers the background. GLM-5.4 is the newest flagship, and Z.ai says it reaches intelligence levels comparable to models with 2 to 3 trillion parameters.

Z.ai frames GLM-5.4 as the start of "Generalized Coding": the idea that strong coding plus vision lets a model solve far more than software tasks. In its demos, GLM-5.4 writes code to produce a self-narrated music video, models a 6-axis robotic arm in the FreeCAD design tool, and builds an interactive 3D scene from math and custom shaders. These are vendor showcases, not independent tests, but they show the direction Z.ai is aiming for.

How the Loop Transformer works

In a standard transformer, each layer runs once for every token. In a Loop Transformer, a block of shared layers runs several times, and each pass refines the result of the last one. That makes the network effectively deeper without making the model bigger.

Z.ai did not train GLM-5.4 from scratch. It took its pre-trained GLM-5 base, at roughly 750 billion parameters, and adapted it through continued training so that 28 of its layers run twice. Z.ai describes three changes that make this practical:

  • Gated updates. Per-token gates control how much each pass writes back, which keeps the model stable across loops.
  • Hybrid memory cache. The second pass reuses most of the first pass's cached context and adds only a small sliding window, so the extra loop does not double memory use at 1M tokens.
  • Reused attention indices. The second pass reuses the sparse attention choices of the first, adding no extra indexing work.

Before using the design in a flagship, Z.ai says it tested it on 1B, 4B, 30B and 750B base models. In a controlled 30B test with the same parameter count and about 10% more training compute, the looped version gained most in math, science reasoning and long-context tasks. Z.ai also reports that average output length dropped by 10 to 14% on benchmarks such as GPQA-Diamond and MMLU-Pro, because part of the reasoning moves into the loop instead of the written chain of thought.

What is new vs GLM-5.3

GLM-5.3GLM-5.4
ArchitectureStandard transformerLoop Transformer (28 layers run twice)
InputTextText, images, video, files
Context window1M tokens1M tokens
Z.ai API price per 1M tokens$1.40 / $4.40$1.40 / $4.40
Coding Plan weekly quotaBaseline1.5x the GLM-5.3 quota

The headline changes are the loop design and native vision. OpenRouter describes GLM-5.4 as Z.ai's first flagship model with native vision, while GLM-5.3 is listed as text only. Pricing on Z.ai's API is unchanged, and Coding Plan users on weekly quotas get 1.5 times their GLM-5.3 allowance. Z.ai also says the cache design keeps the deployment cost increase over GLM-5.3 under control at 1M context.

Benchmarks

As of December 2, 2026, Z.ai's GLM-5.4 documentation presents its results as charts, including a win-rate chart, rather than a table of standard benchmark scores, and we could not find official numbers to quote. At launch, DataCamp reported that a Z.ai team member said scores would come later. We will not repeat third-party numbers here; if benchmarks matter for your decision, test GLM-5.4 on your own tasks.

How to access GLM-5.4

  • Z.ai API. Use the model code glm-5.4 with the Chat Completion API. Z.ai recommends temperature 1, top_p 0.95 and reasoning_effort max, with thinking mode always on. It supports streaming, function calling, context caching and structured output.
  • GLM Coding Plan. Available to all Coding Plan users inside their preferred coding tools.
  • Z.ai Chat and ZCode. Both have had GLM-5.4 since the November 23 launch.
  • OpenRouter. As of December 2026, OpenRouter lists z-ai/glm-5.4 with seven providers: Prime Intellect, Inferact vLLM, Modal, Friendli, Crusoe, Baseten and Z.ai. Prime Intellect charges $1.20 / $4.00 per million tokens; the others charge $1.40 / $4.40.

Open weights are not available yet. Z.ai has released weights for earlier GLM models, and at launch it said it plans to do the same for GLM-5.4 after safety hardening, without a date.

Limits to know

Z.ai is open about one weakness: GLM-5.4 tends to fall into overly long "marathon thinking" loops. Z.ai says this extra reflection improves accuracy, but it can mean slower answers and more output tokens. Throughput also varies, from up to 200 tokens per second off-peak to 70 to 80 at peak load.

Who is GLM-5.4 for?

GLM-5.4 suits developers who want a strong coding model at a mid-range price, especially for long projects that benefit from 1M tokens of context. The new vision support helps with visual coding, such as reading interface screenshots or checking rendered output. Coding Plan subscribers also get a larger weekly quota than with GLM-5.3. Teams that need self-hosting should wait for the weights. For alternatives, see our guide to the best AI for coding and our November 2026 AI model releases roundup.

Use GLM models in ChatGBot

ChatGBot offers GLM models alongside GPT, Claude, DeepSeek and Qwen in one app. Instead of switching between sites, you can ask one question, compare how each model answers, and keep the response that fits your task best. It is a simple way to see where GLM shines and where another model does better.

ClaudeGPTDeepSeekQwenGLM

Ready to try it yourself?

Switch between top AI models in one chat.

Try ChatGBot →

Frequently asked questions

What is GLM-5.4?

GLM-5.4 is Z.ai's flagship model and its first built on a Loop Transformer architecture. It reads text, images, video and files, has a 1M-token context window, and is designed for coding and what Z.ai calls Generalized Coding, such as building games, editing video and 3D or mechanical design through code.

When was GLM-5.4 released?

Z.ai added GLM-5.4 to its GLM Coding Plan, ZCode and Z.ai Chat on November 23, 2026. API access opened around December 2, 2026, the same day OpenRouter listed the model.

How much does GLM-5.4 cost?

On Z.ai's API it costs $1.40 per million input tokens and $4.40 per million output tokens, with cached input at $0.26 per million. That is the same as GLM-5.3. As of December 2026, OpenRouter providers charge from $1.20 / $4.00 up to $1.40 / $4.40.

Is GLM-5.4 open source?

Not yet, as far as we could verify. At launch, Z.ai said it plans to release the weights after safety hardening but gave no date. As of December 2, 2026, we could not find a public GLM-5.4 repository on Hugging Face.

What is a Loop Transformer?

In a normal transformer, each layer runs once. In a Loop Transformer, a group of shared layers runs more than once, refining its own output. GLM-5.4 runs 28 layers of the GLM-5 base model twice, which adds reasoning depth without adding parameters.

Can I use GLM models in ChatGBot?

Yes. ChatGBot offers GLM models alongside GPT, Claude, DeepSeek and Qwen in one app, so you can compare their answers side by side.

Un solo abbonamento. Diversi modelli di IA leader.

Inizia gratis

Blog

  • Amazon Ergo 1.0: Amazon's Open-Weight Coding Model, Explained
  • AI Essay Grader: How to Get Fair, Useful Feedback on Essays
  • ChatGPT Projects: How to Organize Chats, Files and Instructions
  • AI Study Guide Maker: Turn Your Notes Into a Study Guide
ChatGBot

Un solo abbonamento per tutti i migliori modelli di IA: chat, immagini, ricerca web, documenti, Canvas e il Creatore di app.

support@chatgbot.ai

Prodotto

ModelliFunzionalitàCreatore di appPrezziFAQAccedi

Legale

Termini di utilizzoInformativa sulla privacyPolitica di rimborso
BlogGLM-5.4: Z.ai's First Loop Transformer Model, ExplainedAmazon Ergo 1.0: Amazon's Open-Weight Coding Model, ExplainedCorrettore di temi con IA: feedback equo e utile sui tuoi testiProgetti di ChatGPT: come organizzare chat, file e istruzioniTutti gli articoli

© 2026 ChatGBot. Gestito da 42 Dijital Yazılım Limited Şirketi.

Chatgbot è un'interfaccia IA indipendente. Non è affiliata, approvata o sponsorizzata da OpenAI, Anthropic, Google, xAI, DeepSeek, Qwen, GLM o altri fornitori di modelli. I nomi dei modelli e i marchi appartengono ai rispettivi proprietari. La disponibilità dei modelli può variare in base al piano, alla regione e all'accesso del fornitore.