Coming soonAnnounced 23 Nov 2026

GLM-5.4 API

Z.ai's first Loop Transformer: GLM-5's layers run twice for deeper reasoning, aimed at coding beyond code (video, games, shaders, CAD). API not public yet.

Model spec

Price
TBAset when the API ships
Context
1Mtokens

Model ID

OpenAI-compatible · api.companyfabric.com/v1

Overview

About GLM-5.4

GLM-5.4 is Z.ai's first Loop Transformer, announced on 23 November 2026. Instead of training a bigger network, Z.ai took the GLM-5 base and runs a block of 28 of its layers twice per token, so the model thinks through more steps with the same weights. Z.ai puts it at around 750B parameters and says it reasons like a 2T–3T model, with a 1M-token context and vision input. Z.ai calls it the start of "Generalized Coding": writing code that produces videos, games, GLSL shaders and FreeCAD models, not only software. The API is not public yet. Z.ai opens it after a safety evaluation, and today GLM-5.4 runs only in Z.ai Chat, the GLM Coding Plan and ZCode. This page tracks availability, and GLM-5.4 goes live on the same CompanyFabric key once it can be called. Until then, GLM-5.3, Z.ai's current flagship, is live here. Every model on CompanyFabric shares the same API key, billing balance, and rate-limit envelope, one integration covers the entire library.

Facts

At a glance

Availability

Announced

API pending, this page tracks it

Pricing

TBA

Not announced by the provider yet

Context window

1M tokens

Commercial use

See license

No API terms yet. Z.ai opens API access after a safety evaluation and says open weights will follow later; no license has been named.

Variants

All endpoints

Quickstart

How to use the GLM-5.4 API

  1. 1

    Create a free CompanyFabric account, starter credits are included, no card required.

  2. 2

    Copy your API key from the dashboard. One key covers every model in the library.

  3. 3

    Point any OpenAI SDK at api.companyfabric.com/v1 and set model to "z-ai/glm-5-4".

  4. 4

    Read the exact metered cost of the call from the response, the same number shown in the playground.

Use cases

What teams build with it

Agents & copilots

Drive agent loops, tool calls, and user-facing assistants over the OpenAI-compatible endpoint.

agentstool useassistants

Content pipelines

Summarization, rewriting, and structured generation at metered per-token cost.

contentsummarization

Extraction & classification

Turn unstructured input into typed JSON with schema-constrained output.

extractionjson mode

Get better output

Prompting tips

  • State the output format before the task, models follow contracts declared early.
  • Few-shot beats description: two worked examples outperform a paragraph of rules.
  • Cap output length explicitly when cost matters; output tokens dominate most bills.

Exact, metered, prepaid

GLM-5.4 pricing

Z.ai has not published a price for GLM-5.4 yet. It will be billed per token like every other model here, at exactly the provider's rate, and this page will show that rate the day it is announced.

Every call is metered exactly and attributed to your key, the dashboard, the API usage response, and your invoice all read from the same ledger row. Cap any key's monthly spend with a budget cap.

EndpointTypePrice
GLM-5.3-FlashChat$0.15 / M input · $0.5 / M output
GLM-5.2Chat$1.4 / M input · $4.4 / M output
GLM-5.3Chat$1.4 / M input · $4.4 / M output
GLM-LegalChatPrice not announced
GLM-5.4ChatPrice not announced

GLM-5.4 is not billable yet: its row shows the provider's announced price, or that none has been announced.

Comparisons

GLM-5.4 vs the alternatives

GLM-5.4 vs GLM-5.3

GLM-5.4 and GLM-5.3 compete for the same text workloads. Both run behind the same CompanyFabric key at exact metered prices, A/B them on your real prompts and let the outputs decide, then switch with a one-line change.

Full comparison: GLM-5.4 vs GLM-5.3 →

GLM-5.4 vs Claude Fable 5.2

GLM-5.4 and Claude Fable 5.2 compete for the same text workloads. Both run behind the same CompanyFabric key at exact metered prices, A/B them on your real prompts and let the outputs decide, then switch with a one-line change.

Full comparison: GLM-5.4 vs Claude Fable 5.2 →

GLM-5.4 vs Qwen4-Max

GLM-5.4 and Qwen4-Max compete for the same text workloads. Both run behind the same CompanyFabric key at exact metered prices, A/B them on your real prompts and let the outputs decide, then switch with a one-line change.

Full comparison: GLM-5.4 vs Qwen4-Max →

GLM-5.4 vs Kimi K3.1 Pro

GLM-5.4 and Kimi K3.1 Pro compete for the same text workloads. Both run behind the same CompanyFabric key at exact metered prices, A/B them on your real prompts and let the outputs decide, then switch with a one-line change.

Full comparison: GLM-5.4 vs Kimi K3.1 Pro →

Compare

GLM-5.4 head to head

FAQ

Frequently asked questions

Is there a GLM-5.4 API?

Not yet, GLM-5.4 is announced but API access is not public. This page tracks availability and updates the moment access ships. Until then, GLM-5.3-Flash is the closest live model and runs today with the same key.

When will the GLM-5.4 API launch?

Z.ai has not committed to a public date. Create a free key now and you can call GLM-5.4 on day one, no waitlist, same endpoint.

Why use GLM-5.4 on CompanyFabric instead of going direct?

One key, one prepaid balance, and one rate-limit envelope across the whole library, at pricing at parity with or below the direct API. Model switching is a one-line change, and BYOK routing is 0% fee.

Is the API OpenAI-compatible?

Yes, point any OpenAI SDK at api.companyfabric.com/v1 and set model to "z-ai/glm-5-4".

Can I use the output commercially?

No API terms yet. Z.ai opens API access after a safety evaluation and says open weights will follow later; no license has been named.

How does billing work?

Prepaid credits via card, or BYOK with your own provider keys at 0% platform fee. No subscription required; balances never expire.

Can I use the GLM-5.4 API today?

Not yet. Z.ai says API access opens after a safety evaluation, and its API page lists GLM-5.4 as coming soon. Today you can use it in Z.ai Chat, the GLM Coding Plan and the ZCode editor. On CompanyFabric it goes live the day Z.ai's API serves it, under the id z-ai/glm-5-4.

What is a Loop Transformer?

In a normal Transformer each layer runs once per token. In a Loop Transformer a group of layers shares its weights and runs several times, each pass refining the last one, so the network gets deeper without getting bigger. GLM-5.4 loops 28 layers of the GLM-5 base for two passes. To keep the extra pass cheap to serve, the passes share most of their KV cache and the sparse-attention index, so a second loop costs one sliding window of cache rather than a full copy.

How much will GLM-5.4 cost?

Z.ai has not published a price. GLM-5.3 costs $1.40 per million input tokens and $4.40 per million output tokens on CompanyFabric, but a new flagship can be priced differently. This page will show the real price when Z.ai publishes one.

Is GLM-5.4 fast?

Z.ai reports 10–14% shorter thinking output, and it quotes up to 200 tokens per second off-peak and 70–80 at peak on its own service. Z.ai also lists one known weakness: on some tasks it keeps reflecting for too long, which it calls "marathon thinking". These are Z.ai's numbers, not independent results.

Will GLM-5.4 have open weights?

Z.ai says the weights will be released later, after the API, without a date or a license yet. GLM-5.3, live on CompanyFabric today, is a closed-weight API model.

Provider

About Z.ai

Z.ai publishes the glm family. Also in this family: GLM-5.3-Flash, GLM-5.2, GLM-5.3, GLM-Legal. License: No API terms yet. Z.ai opens API access after a safety evaluation and says open weights will follow later; no license has been named.

One key. Every model. Exact prices.

Get a key now and call GLM-5.4 the day it ships, GLM-5.3-Flash runs today. Free starter credits included, no subscription required.