# GLM-5.4 on a Mac: API Pricing, Missing Weights and What the Loop Costs

- URL: https://ai-on-mac.com/articles/glm-5-4-en/
- Language: English (United States)
- Published: 2026-12-02
- Category: Model News
- German version: https://ai-on-mac.com/artikel/glm-5-4/
- Publisher: Julian Dominic Altmann, AI on Mac / KI auf dem Mac (https://ai-on-mac.com)

> GLM-5.4 went live on the API on December 2, but the weights aren't public. What Z.ai's Loop Transformer means for cost, RAM, KV cache and speed on a Mac.

**Verdict:** Usable today through the API and the Coding Plan. Running it locally has to wait for the weights, and even then only a 512 GB Mac Studio qualifies.

- **Model IDs:** Z.ai API and Coding Plan: glm-5.4 (Claude Code: glm-5.4[1m]); OpenRouter: z-ai/glm-5.4
- **Available:** Coding Plan since Nov 23, 2026; API via OpenRouter since Dec 2, 2026
- **Price (Z.ai):** $1.40 / $4.40 per 1M tokens, cached input $0.26; sales tax may apply
- **Architecture:** Loop Transformer: 28 layers run twice, 106 instead of 78 layer passes per token
- **Local on a Mac:** no public weights; by our math 423.7 GB at 4.5-bit
- **Contracting entity:** JINGSHENG HENGXING TECHNOLOGY PTE. LTD., Singapore

*This article was researched and written with AI assistance and reviewed by Julian Dominic Altmann. Facts as of December 2, 2026, 9:15 a.m. ET. All calculations are our own; we have not run GLM-5.4 on a Mac.*

GLM-5.4, the new flagship from Z.ai (Zhipu), became available through the API on December 2, 2026, but you can't run it on your own Mac yet because Z.ai hasn't released the weights. GLM Coding Plan subscribers have had it since November 23. What's new is the design: according to [Z.ai's documentation](https://docs.z.ai/guides/llm/glm-5.4), GLM-5.4 is the company's first Loop Transformer, and it runs 28 layers of its GLM-5 base a second time for every token. It also adds image and video input and a 1M-token context window.

For Mac users the short version is this. On the API, GLM-5.4 costs exactly what GLM-5.3 costs at Z.ai, and a third-party host on OpenRouter undercuts that by about two thirds. If the weights do ship, our math says the model only fits a 512 GB Mac Studio in heavily quantized form, and it would run noticeably slower than its predecessor because that second pass reads more weights from memory for every token. Below we work through both, with formulas, cross-checks and a CSV you can audit.

## GLM-5.4 at a glance

| Item | GLM-5.4, as of December 2, 2026 | Source |
| --- | --- | --- |
| Developer | Z.ai (Zhipu AI) | [Z.ai docs](https://docs.z.ai/guides/llm/glm-5.4) |
| Launch | Coding Plan on Nov 23, 2026; OpenRouter endpoint created Dec 2, 2026, 04:47 UTC | [WinBuzzer](https://winbuzzer.com/2026/11/23/zhipus-glm-5-4-adds-image-input-for-coding-xcxwbn/), [OpenRouter](https://openrouter.ai/z-ai/glm-5.4) |
| Architecture | Loop Transformer: 28 layers of the GLM-5 base run twice; base at "750B scale" | [Z.ai docs](https://docs.z.ai/guides/llm/glm-5.4) |
| Parameters | not stated by Z.ai; the base family has 753.3B in its checkpoint | [Hugging Face GLM-5.3](https://huggingface.co/zai-org/GLM-5.3) |
| Context and output | 1M-token context, up to 128K output tokens | [Z.ai docs](https://docs.z.ai/guides/llm/glm-5.4) |
| Input | text, image, video, file; output is text only | [Z.ai docs](https://docs.z.ai/guides/llm/glm-5.4) |
| Reasoning | thinking always on; Coding Plan efforts low, high and max (default max) | [Coding Plan docs](https://docs.z.ai/devpack/latest-model) |
| Z.ai API price | $1.40 input, $0.26 cached input, $4.40 output per 1M tokens | [Z.ai pricing](https://docs.z.ai/guides/overview/pricing) |
| Weights | not public; release "after safety hardening," no date | [i-SCOOP](https://www.i-scoop.eu/glm-5-4/), Hugging Face |
| License | none until weights exist | – |

## Where you can use GLM-5.4 today, and what it costs

Three of the four access paths work right now.

**Z.ai API.** Z.ai's [price list](https://docs.z.ai/guides/overview/pricing) shows GLM-5.4 at $1.40 per 1M input tokens, $0.26 per 1M cached input tokens and $4.40 per 1M output tokens. That's identical to GLM-5.3. Cache storage is listed as free for a limited time, with no end date. Prices exclude sales tax where it applies.

**OpenRouter.** Seven endpoints serve `z-ai/glm-5.4` as of December 2. Six of them charge the Z.ai price; Prime Intellect launched at $0.40 input, $0.0744 cached and $2.464 output. OpenRouter lists that endpoint's quantization as "unknown," so test it on your own tasks before you depend on it. Other hosts include Baseten, Crusoe, Modal, Friendli and Inferact. Z.ai's own endpoint was up only 57.1 % of its first day, according to the [OpenRouter endpoints data](https://openrouter.ai/z-ai/glm-5.4).

**GLM Coding Plan.** The subscription starts at $18 per month according to [Z.ai](https://docs.z.ai/devpack/overview) and plugs into Claude Code, Cline and other agents. More on how it compares with pay-as-you-go below.

**Local on a Mac.** Not possible yet. More on what it would take further down.

  ![Four cards: GLM Coding Plan live since Nov 23; Z.ai API at $1.40 and $4.40 with a Singapore contracting entity; OpenRouter since Dec 2 with 7 endpoints from $0.40 and $2.464; local on a Mac not possible because the weights are not public.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-access-paths-en-light.svg)

*Three routes work today; running it locally waits on the weights.*

### Who you're contracting with

Z.ai's [privacy policy](https://docs.z.ai/legal-agreement/privacy-policy) names JINGSHENG HENGXING TECHNOLOGY PTE. LTD. in Singapore as the operator and says services are generally provided from Singapore, with transfers to other countries possible. Z.ai's Beijing parent, Beijing Zhipu Huazhang Technology, has been on the Commerce Department's [Entity List](https://www.govinfo.gov/content/pkg/FR-2025-01-16/html/2025-00704.htm) since January 16, 2025. The listing restricts exports of items subject to US export rules to the named companies. If your company has a compliance team, ask it before you route proprietary code through a Zhipu-operated service. This is not legal advice. If you'd rather not send requests to Z.ai itself, OpenRouter's third-party hosts are the alternative; Baseten, Crusoe and Modal are US companies, but check each host's data location and retention terms.

### Worked example: one agent day

List prices don't tell you much until you know how often the cache hits and how much the model thinks. So we priced two scenarios for a day of coding with an agent:

- **Scenario A:** 20M input tokens, 90 % served from cache, 0.4M output tokens.
- **Scenario B:** the same input, but only 70 % cache hits and 50 % more output (0.6M), for example because the model gets stuck in long reasoning loops.

**Formula:** cost = input × (1 − cache rate) × input price + input × cache rate × cached price + output × output price.

| Model and provider | Scenario A | Scenario B |
| --- | --- | --- |
| GLM-5.3-Flash, Z.ai | $1.04 | $1.62 |
| GLM-5.4, Prime Intellect via OpenRouter | $3.12 | $4.92 |
| DeepSeek-V4-Pro, peak hours | $5.02 | $10.91 |
| [Qwen4-Max](https://ai-on-mac.com/articles/qwen4-max-en/), Alibaba via OpenRouter | $5.84 | $12.11 |
| GLM-5.4, Z.ai | $9.24 | $14.68 |
| GLM-5.3, Z.ai | $9.24 | $14.68 |
| [Kimi K3.1 Pro](https://ai-on-mac.com/articles/kimi-k3-1-pro-mac-en/), Moonshot via OpenRouter | $11.60 | $20.80 |

Prices: [Z.ai](https://docs.z.ai/guides/overview/pricing), [DeepSeek](https://api-docs.deepseek.com/quick_start/pricing) (peak hours; off-peak is half), first-party endpoints on OpenRouter, all retrieved December 2, 2026.

  ![Bar chart of one agent day in US dollars for seven models in two scenarios; GLM-5.4 at Z.ai costs $9.24 and $14.68, at Prime Intellect $3.12 and $4.92.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-api-costs-en-light.svg)

*Scenario B costs 59 % more than A with GLM-5.4 at Z.ai. Models with very cheap cached input lose more of their edge when cache hits drop.*

Two takeaways. GLM-5.4 isn't pricier per token than GLM-5.3 at Z.ai, but extra reasoning output still shows up on your bill. And the cache rate matters more than the headline input price: DeepSeek-V4-Pro is 46 % cheaper than GLM-5.4 at Z.ai in scenario A and only 26 % cheaper in scenario B, because most of its advantage sits in cheap cached input. The Prime Intellect endpoint saves 66 % over Z.ai in scenario A.

### Coding Plan vs. pay-as-you-go

The Coding Plan bills in credits. Per 10,000 tokens, GLM-5.4 costs 4.6 credits for fresh input, 1.1 for cached input and 16 for output, less than GLM-5.3's 6.9, 1.7 and 24. Lite includes 10,000 credits a week and 2,000 per five-hour window. Outside peak hours (Monday to Friday, 2 to 6 p.m. Singapore time, which is 1 to 5 a.m. Eastern in winter) usage counts at half rate, so most US working hours are off-peak.

Z.ai estimates that Lite covers 72M to 146M tokens a week at a 95 % cache-hit rate. We reverse-engineered the low end: it works out if 0.8 % of tokens are output, which is typical of input-heavy agent loops. Buying the same volume on the Z.ai API would cost $25.10 a week, or about $108.76 a month. If you use the plan heavily, it's the cheaper route by a wide margin. If your work is output-heavy, you get far fewer tokens: without cache hits, a Lite week covers 6.25M output tokens or 21.7M fresh input tokens.

## Can a Mac run GLM-5.4?

Not today. Without public weights there's no MLX or GGUF file, and neither [mlx-lm](https://github.com/ml-explore/mlx-lm/pull/1419) nor llama.cpp supports GLM-5.4's loop. llama.cpp does have an [open pull request for Nanbeige 4.2](https://github.com/ggml-org/llama.cpp/pull/25994) that shows how to run shared weights across several passes, but that's a different model.

We can still size it, because the loop adds no stored weights. Working from the GLM-5.3 `config.json`, we count 743.4B parameters in the main model and 753.3B including the multi-token-prediction layer. Both line up with [Hugging Face](https://huggingface.co/zai-org/GLM-5.3) (753B) and the [vLLM team](https://vllm.ai/blog/2026-07-23-glm-5.2-nvfp4-b300-pd) (744B total, 40B active).

**Formula:** weight size in GB = 753.3B × bits per weight ÷ 8 ÷ 10⁹.

| Precision | Weights | Which Mac? (our assessment) |
| --- | --- | --- |
| BF16 | 1,506.6 GB | none |
| FP8 / 8-bit | 753.3 GB | none |
| 6-bit | 565.0 GB | none |
| 5-bit | 470.8 GB | only with a raised GPU memory limit, leaving little room for context |
| 4.5-bit (mixed) | 423.7 GB | Mac Studio M5 Ultra, 512 GB |
| 4-bit | 376.7 GB | Mac Studio M5 Ultra, 512 GB |
| 2.5-bit (mixed) | 235.4 GB | Mac Studio, 256 GB, with little room for context |

Apple's 512 GB is binary, or 549.8 GB in the decimal units above. The GPU can't claim all of it: the [avlp12 MLX model card](https://huggingface.co/avlp12/GLM-5.2-Alis-MLX-Dynamic-4.5bpw) for GLM-5.2 puts the practical limit on a 512 GB Mac at about 460 GB. macOS only gives the GPU more after you raise the limit with `sudo sysctl iogpu.wired_limit_mb=N`, as the [mlx-lm docs](https://github.com/ml-explore/mlx-lm) describe; our [Ergo Mac check](https://ai-on-mac.com/articles/amazon-ergo-1-0-mac-en/) assumes 472 GiB (506.8 GB) in that case. That card's 4.5-bit GLM-5.2 build measures 424 GB; our formula gives 423.7 GB, so the math matches a real checkpoint.

  ![Bar chart of weight size by precision: 8-bit 753.3 GB, 6-bit 565.0 GB, 5-bit 470.8 GB, 4.5-bit 423.7 GB, 4-bit 376.7 GB, 3.5-bit 329.6 GB, 2.5-bit 235.4 GB, with lines at 274.9 GB (256 GB Mac), about 460 GB practical limit and 549.8 GB (512 GB Mac).](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-memory-fit-en-light.svg)

*Only builds up to about 4.5-bit leave room for context on a 512 GB Mac Studio.*

The only 512 GB Mac is the Mac Studio with the top M5 Ultra (36-core CPU, 80-core GPU). According to [9to5Mac](https://9to5mac.com/2026/10/28/apple-reveals-pricing-for-mac-studio-with-512gb-of-ram/), it starts at $22,299 with a 1 TB SSD, a $15,500 upgrade over the 96 GB configuration of that chip. Every MacBook Pro, the Mac mini and the M5 Max Mac Studio top out at 128 GB. Our [hardware overview](https://ai-on-mac.com/hardware/en/) lists which Mac fits which model size.

Would that Mac pay for itself? Not on cost alone. $22,299 buys 2,413 agent days of scenario A at Z.ai's prices, about 11.0 years at 220 working days a year. The case for running it locally is control over your data, not savings.

### KV cache: the hybrid loop keeps memory in check

At 1M tokens, the KV cache becomes the second big memory item. GLM-5 stores a compressed latent of 512 + 64 = 576 values per layer and token (multi-head latent attention), plus keys for the sparse-attention indexer on 21 layers.

**Formula:** KV cache in bytes = tokens × (78 layers × 576 values × 2 bytes + 21 × 128 × 2 bytes).

A naive loop would give each of the 28 repeated layers its own full cache: 133.7 GB at 1M tokens in 16-bit instead of 99.9 GB. Z.ai's hybrid cache reuses the first pass's sparse KV and only adds a sliding window for the second pass. Z.ai doesn't publish the window size; even an assumed 32,768 tokens adds just 1.06 GB, for 100.9 GB in total.

  ![Column chart of 16-bit KV cache: at 128K tokens 13.5 GB with the hybrid loop and 16.7 GB with a naive loop, at 512K 51.0 and 66.8 GB, at 1M 100.9 and 133.7 GB.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-kv-cache-en-light.svg)

*Our calculation. The 32K window is an illustrative assumption; Z.ai gives no figure.*

An 8-bit cache halves those numbers, to about 53.3 GB at 1M tokens. As a cross-check, our formula gives 30.2 GB for 600,000 tokens in int8. The avlp12 card estimates 455 to 460 GB total for that case, against 424 GB for the model and a short prompt, which implies 31 to 36 GB of cache. On a 512 GB Mac with 4.5-bit weights, about 600,000 tokens of context is realistic; the full million isn't.

### Speed: the second pass costs about a quarter

When a Mac generates text, it has to read the active weights from unified memory for every token, so memory bandwidth sets the ceiling. GLM-5 activates 8 of 256 experts plus one shared expert per token, which our config math puts at 40.3B active parameters. Running 28 layers again means reading their active weights a second time: 54.5B per token, 35 % more. At 4.5-bit that's 30.6 GB per token instead of 22.7 GB.

We calibrated against one published measurement: avlp12 reports 16.34 tokens per second for a 4.5-bit GLM-5.2 on an M3 Ultra with 512 GB. That's 45 % of the theoretical ceiling of 36.1 tokens per second at 819 GB/s. Applying the same efficiency to the M5 Ultra's [1.2 TB/s per Apple](https://www.apple.com/newsroom/2026/08/apple-introduces-new-mac-studio-with-m5-max-and-m5-ultra/):

| Chip | GLM-5.2 (4.5-bit) | GLM-5.4 (4.5-bit) | GLM-5.4 ceiling |
| --- | --- | --- | --- |
| M3 Ultra, 819 GB/s | 16.3 tok/s (measured) | 12.1 tok/s (estimate) | 26.7 tok/s |
| M5 Ultra, 1,200 GB/s | 23.9 tok/s (estimate) | 17.7 tok/s (estimate) | 39.2 tok/s |

  ![Bar chart of tokens per second: M3 Ultra GLM-5.2 measured 16.3, M3 Ultra GLM-5.4 estimated 12.1, M5 Ultra GLM-5.2 estimated 23.9, M5 Ultra GLM-5.4 estimated 17.7, each with a dashed bandwidth ceiling.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-speed-estimate-en-light.svg)

*Estimate for a single request with a short prompt. We assume the M5 Ultra hits the same efficiency as the M3 Ultra; that's untested.*

The estimate has limits. We assume the 28 repeated layers are MoE layers and that the second pass pulls 8 experts from memory again; if the router picks some of the same experts, it could run a little faster. Multi-token prediction gave GLM-5.2 up to 16 % on short prompts on the M3 Ultra per avlp12, and nothing on long ones. Prompt processing is compute-bound, so the 36 % extra layer passes hit it in full.

## How good is GLM-5.4? What's backed up

There's no vendor benchmark table for GLM-5.4 and no entry on independent leaderboards as of today. Three data points exist:

- **Z.ai's 30B experiment.** Z.ai trained the same architecture at 30B with and without the loop, using about 10 % more training compute for the looped version. The loop lifted AIME25 from 19.17 to 30.42 and GPQA-Diamond from 47.58 to 56.26. These figures come from Z.ai's blog, which we couldn't retrieve directly; we took them from [i-SCOOP's table](https://www.i-scoop.eu/glm-5-4/). They describe the test model, not GLM-5.4.
- **An internal comparison with GLM-5.3.** On 200 internal coding tasks, Z.ai reports 51.1 % wins, 25.7 % ties and 23.1 % losses, according to [EvoLink](https://evolink.ai/blog/glm-5-4-release), an API reseller. That's the vendor grading its own test set.
- **One independent test.** In AICodeKing's KingBench 4, GLM-5.4 placed 7th of 19 with 55.3 % of available points, per [WinBuzzer](https://winbuzzer.com/2026/11/23/zhipus-glm-5-4-adds-image-input-for-coding-xcxwbn/). On its highest reasoning setting it took 431 minutes versus 109 for [Gemini 4 Neon](https://ai-on-mac.com/articles/gemini-4-neon-en/), with about 4.6 times as many steps.

  ![Bar chart of Z.ai's ablation on a 30B test model: AIME25 19.17 without and 30.42 with the loop, GPQA-Diamond 47.58 and 56.26, AA-LCR 40.33 and 47.67, MMLU-Pro 71.65 and 75.05; answers 2 to 14.9 percent shorter.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-loop-ablation-en-light.svg)

*Vendor-reported results for a 30B test model. Z.ai had published no GLM-5.4 scores as of December 2, 2026.*

The vendor story and the field test pull in different directions. Z.ai says answers got 10 to 14 % shorter in the 30B experiment because part of the reasoning moves into the loop's extra depth. In KingBench 4, GLM-5.4 worked far longer than the competition, and Z.ai itself lists a tendency toward "marathon thinking" loops as a known issue. For budgeting, trust the field test: expect more output tokens on agent work, not fewer.

  ![Diagram: GLM-5.3 runs 78 layer passes per token, GLM-5.4 runs 28 layers a second time for 106; stored parameters 743.4B, active weights per token estimated at 40.3B rising to 54.5B.](https://ai-on-mac.com/images/glm-5-4/en/glm-5-4-loop-architecture-en-light.svg)

*Nothing extra is stored; more is computed. Z.ai's three tweaks: per-token gates, a hybrid KV cache and reused sparse-attention indices. The idea traces back to the 2018 Universal Transformer.*

## Conflicting claims in the sources

| Claim A | Claim B | What applies |
| --- | --- | --- |
| wpnews.pro (Dec 2): GLM-5.4 is out as open weights on Hugging Face | Hugging Face API returns no public zai-org/GLM-5.4 on Dec 2, 14:12 UTC, while GLM-5.3 resolves | No public weights. The report appears to be auto-generated. |
| Nov 23 coverage (DataCamp, i-SCOOP): API not open yet | Z.ai's price list includes GLM-5.4; OpenRouter endpoint since Dec 2, 04:47 UTC | The API works; Z.ai hasn't announced an official start date. |
| Z.ai: $1.40 / $4.40 per 1M tokens | wpnews gives $0.40 / $2.46 as the price | $0.40 is one OpenRouter host's price (Prime Intellect), not Z.ai's. |
| Z.ai docs: up to 128K output tokens | OpenRouter: four endpoints allow 943,718, Baseten 262,144 | 128K applies at Z.ai; other hosts set their own limits. |
| Z.ai docs: 28 layers of the GLM-5 base are looped | CometAPI: the base itself has 28 layers | The base has 78 layers, 28 of which run twice (config.json). |
| DataCamp: Z.ai recommends a 512,000-token client context | Current Coding Plan docs: set the window to 1,000,000 | Follow the current docs; DataCamp likely reflects an earlier version. |
| Z.ai docs: answers 10 to 14 % shorter | i-SCOOP table from Z.ai's blog: up to 14.9 % shorter (MMLU-Pro) | Same ballpark; the exact range depends on the benchmark. |
| Z.ai: up to 200 tok/s off-peak, 70 to 80 tok/s under load | OpenRouter on day one: Z.ai at 57 tok/s, fastest host at 121 tok/s | Throughput varies by host and load; don't plan on vendor figures. |

## Should you use GLM-5.4 now?

- **You already pay for the GLM Coding Plan:** Switch to glm-5.4 (glm-5.4[1m] in Claude Code). It burns fewer credits per token than GLM-5.3; plan for longer thinking phases.
- **You call models from Mac tools via API:** At Z.ai it costs the same as GLM-5.3. Try the cheaper Prime Intellect endpoint on OpenRouter against your own tasks first.
- **Your company restricts Chinese-operated services:** Pin a third-party host on OpenRouter after checking where it runs, or wait for weights you can run yourself.
- **You want to run it on your Mac:** It's not an option for any Mac with 128 GB or less, even after a release. Our [unified memory guide](https://ai-on-mac.com/articles/unified-memory-mac-en/) and [RAM calculator](https://ai-on-mac.com/hardware/en/matchmaker/) show which open models fit your machine.

Our [GLM-5.3 fact check](https://ai-on-mac.com/articles/glm-5-3-en/) covers the predecessor with published weights and real GGUF sizes. [Kimi K3 on a Mac](https://ai-on-mac.com/articles/kimi-k3-mac-en/) and [Amazon Ergo 1.0](https://ai-on-mac.com/articles/amazon-ergo-1-0-mac-en/) are similar cases: open weights, but impractical locally. Current plan and API prices are collected in our [subscription comparisons](https://ai-on-mac.com/subscription-comparisons/).

## Methodology

Every number in this article, the charts and the CSV comes from one Python script that writes its results to JSON. We counted parameters from the GLM-5.3 `config.json` and checked them against published figures (744B total, 40B active, 753B in the checkpoint). For GLM-5.4 we assume the 28 repeated layers are MoE layers, because Z.ai doesn't say which ones they are. The speed estimate is calibrated on a single published measurement and applies to single requests with short prompts. GB means decimal gigabytes (10⁹ bytes); Apple's memory sizes are binary. We have not measured GLM-5.4 on a Mac or through the API ourselves.

Raw data: [glm-5-4-mac-calculations-en.csv](https://ai-on-mac.com/downloads/glm-5-4/glm-5-4-mac-calculations-en.csv) (comma-separated, decimal point).

## Update log

- **December 2, 2026:** First version, after GLM-5.4 appeared on OpenRouter and in Z.ai's price list.

We'll update this article when Z.ai releases weights, a license or benchmarks, or when mlx-lm and llama.cpp add GLM-5.4 support. Send tips and corrections via our [about page](https://ai-on-mac.com/about/).

## FAQ

**Are GLM-5.4's weights open?**

Not yet. Z.ai says it will release them after safety hardening but has given no date. On December 2, 2026 at 14:12 UTC, the zai-org/GLM-5.4 repository was not publicly available on Hugging Face.

**How much does GLM-5.4 cost on the API?**

Z.ai charges $1.40 per 1M input tokens, $0.26 for cached input and $4.40 for output, the same as GLM-5.3. On OpenRouter, Prime Intellect launched it at $0.40 input and $2.464 output. Sales tax may apply.

**Can I run GLM-5.4 locally on a Mac?**

Not today, because there are no public weights. By our math the model would need about 423.7 GB at 4.5-bit, which fits only a Mac Studio with M5 Ultra and 512 GB of memory, starting at $22,299 in the US.

**How do I use GLM-5.4 in Claude Code or Cline?**

With a GLM Coding Plan, set the model to glm-5.4[1m] in Claude Code and glm-5.4 in Cline or other OpenAI-compatible tools. API users can call z-ai/glm-5.4 on OpenRouter or glm-5.4 on the Z.ai API.

**What is a Loop Transformer?**

A model that runs part of its layer stack more than once per token with the same weights. GLM-5.4 runs 28 layers of the GLM-5 base a second time, which adds depth without adding stored parameters.

**Who do I contract with when I use the Z.ai API?**

Z.ai's privacy policy names JINGSHENG HENGXING TECHNOLOGY PTE. LTD. in Singapore and says services are generally provided from Singapore. The Beijing parent, Zhipu AI, has been on the US Entity List since January 16, 2025. This is not legal advice.

## Sources

1. https://docs.z.ai/guides/llm/glm-5.4
2. https://docs.z.ai/guides/overview/pricing
3. https://docs.z.ai/devpack/overview
4. https://docs.z.ai/devpack/latest-model
5. https://docs.z.ai/legal-agreement/privacy-policy
6. https://openrouter.ai/z-ai/glm-5.4
7. https://huggingface.co/zai-org/GLM-5.3
8. https://huggingface.co/zai-org/GLM-5.3/blob/main/config.json
9. https://vllm.ai/blog/2026-07-23-glm-5.2-nvfp4-b300-pd
10. https://huggingface.co/avlp12/GLM-5.2-Alis-MLX-Dynamic-4.5bpw
11. https://github.com/ml-explore/mlx-lm/pull/1419
12. https://github.com/ml-explore/mlx-lm
13. https://github.com/ggml-org/llama.cpp/pull/25994
14. https://www.apple.com/newsroom/2026/08/apple-introduces-new-mac-studio-with-m5-max-and-m5-ultra/
15. https://9to5mac.com/2026/10/28/apple-reveals-pricing-for-mac-studio-with-512gb-of-ram/
16. https://api-docs.deepseek.com/quick_start/pricing
17. https://www.govinfo.gov/content/pkg/FR-2025-01-16/html/2025-00704.htm
18. https://www.i-scoop.eu/glm-5-4/
19. https://winbuzzer.com/2026/11/23/zhipus-glm-5-4-adds-image-input-for-coding-xcxwbn/
