Z.ai released GLM-5.4 on 23 November, its first flagship model built on a Loop Transformer. The headline numbers are striking: 750B scale, a 1M-token context window, 128K of maximum output, and native image and video input. Z.ai says the model delivers intelligence comparable to models with 2T to 3T parameters, a bold claim for a model roughly a third of that size. For developers, the practical question is simpler: how do you use GLM-5.4 for coding, and is it worth switching from the model you already use? This guide covers what GLM-5.4 is, how to select it, what the GLM Coding Plan gives you, and where its limits sit.
What GLM-5.4 Is
GLM-5.4 is built on a Loop Transformer, a design that reuses a shared block of 28 layers twice per forward pass instead of stacking ever more layers. The idea is to get more reasoning out of fewer parameters: the model loops through the same block, refining its representation on the second pass. Z.ai puts the scale at 750B and claims comparable intelligence to models in the 2T to 3T parameter range. Treat that comparison as the vendor’s claim, not a measured result: no public benchmark table was published at launch.
The 1M-token context is the number that matters most for coding work. A million tokens is enough to hold a whole repository, or a large part of one, in a single session. The 128K maximum output means long generations, such as a full module or a long refactor, can come out in one response instead of being cut off halfway. Native image and video input means you can hand the model a screenshot of a broken layout or a short screen recording of a bug and ask it to find the cause. If you are comparing recent coding models, our guide to using Gemini 4 Neon covers another new option worth the same side-by-side test.
How to Select GLM-5.4 in Your Coding Tools
GLM-5.4 is available now to all GLM Coding Plan users, on the Lite, Pro, and Max plans, inside coding tools, ZCode, and Z.ai Chat. The steps below assume you already have a Coding Plan; the plan starts at $18 a month.
1. Open your coding tool and find the model picker. In Claude Code, open the model selector and look for glm-5.4[1m]. In other coding tools the model name is glm-5.4. If you do not see it, update the tool or the Z.ai integration first, then check again.
2. Pick the 1M variant for large codebases. In Claude Code, glm-5.4[1m] is the variant with the full 1M-token context. Use it when you are working across a whole repository. For a small, single-file fix, the standard glm-5.4 selection is enough.
3. Load the project before you ask for changes. Point the tool at the repository or the folder you want to change, and let it index the files. With a million tokens of context, include the files the task touches plus the ones that define the interfaces between them.
4. Give the task in one clear instruction. State what should change, what should stay the same, and how you will check the result. A good instruction names the files, the expected behaviour, and the test or build command that proves it works.
5. Review the diff before you accept it. A model with a long output limit can change a lot of code in one response. Read the diff and run the tests before you commit. The workflow is the same one covered in our guide to using Claude Code in code mode, with GLM-5.4 slotted in as the model.
What the 1M-Token Context Changes for Coding
Most coding models force you to choose which files to include. With a 1M-token window, that choice mostly disappears for small and medium projects: you can load the whole codebase, the test suite, and the documentation in one session. That changes how you work in three practical ways.
First, the model can follow a call across the codebase instead of guessing where a function is defined. Second, it can check its own changes against the rest of the project, because the rest of the project is in context. Third, it can keep the history of a long session, so a refactor that takes several rounds does not lose track of decisions made an hour earlier. Long agent-driven sessions, like those in our guide to Cognition SWE-2.1 in Devin, benefit most, because the agent must hold the plan, the code, and its own earlier results at the same time.
None of this removes the need to check the output. A long context helps the model see more, but it does not make the model careful, so run the build and the tests after every change.
GLM Coding Plan Quotas and Pricing
The GLM Coding Plan starts at $18 a month, and GLM-5.4 is included on all three tiers: Lite, Pro, and Max. The weekly quota on GLM-5.4 is 1.5 times the quota on GLM-5.3 on the same plan, so upgrading the model does not mean rationing your sessions more tightly. Z.ai has not published per-token API pricing, because the standalone Model API is not open yet, and there is no public benchmark table to compare against other models on price or performance.
The honest way to judge the plan is a direct comparison: run your normal coding week on GLM-5.4 and compare the results with the tool you used before. If you already use Claude Code, the workflow is the same and only the model changes. If you want a baseline for that comparison, Claude Opus 5.5 is the current default model in Claude Code, and a week on each model will tell you more than any benchmark table. If you also use GitHub’s tools, our guide to GitHub Copilot Fusion covers another coding assistant you can run the same test against.
Working With the Marathon Thinking Loops
Z.ai is open about one weakness: GLM-5.4 “tends to get caught in overly long marathon thinking loops”. In practice that means the model can spend a long time reasoning before it produces an answer, or keep refining a plan instead of writing code. If a session feels stuck, stop it and restate the task in smaller pieces. A task broken into a clear sequence, first the data model, then the endpoint, then the tests, gives the model a place to stop and hand back work at each stage.
Ask for the change in one file or one function at a time, and ask the model to report what it changed before moving on. Short, verifiable steps are also how you keep any coding agent honest, as shown in our guide to Claude MCP tasks and elicitation, where the model asks for missing details instead of guessing.
What Is Not Available Yet for GLM-5.4
Two things are still to come. The standalone Model API is listed as “Coming Soon” and will open after a security assessment, so you cannot yet call GLM-5.4 directly from your own code or infrastructure. Open weights are planned after safety hardening, but Z.ai has given no date. If your workflow depends on an API or on running weights locally, GLM-5.4 is not usable for that yet. For the official details, see Z.ai’s GLM-5.4 announcement, and for Windows setup questions, see Microsoft’s community thread on GLM-5.4 for Windows coding.
FAQs
What is GLM-5.4?
GLM-5.4 is Z.ai’s flagship coding model, released on 23 November and built on a Loop Transformer. It has a 1M-token context window, 128K maximum output, and native image and video input.
How do I select GLM-5.4 in Claude Code?
Open the model picker in Claude Code and choose glm-5.4[1m] for the full 1M-token context. In other coding tools, select glm-5.4.
How much does the GLM Coding Plan cost?
The GLM Coding Plan starts at $18 a month. GLM-5.4 is included on the Lite, Pro, and Max tiers, with a weekly quota 1.5 times that of GLM-5.3 on the same plan.
Can I call GLM-5.4 through an API?
Not yet. The standalone Model API is listed as “Coming Soon” and will open after a security assessment. Open weights are also planned, with no date given.

