GLM 5.4 API: Status, Base URL, Pricing and Playground
Nov 24, 2026

GLM 5.4 API: Status, Base URL, Pricing and Playground

The GLM-5.4 API is not public yet. Z.ai will open it after a security assessment, with no price announced. Here is the expected model ID, base URLs, playground options and a ready-to-switch code setup.

Quick answer: The GLM 5.4 API is not available yet. Z.ai's model page says the Model API "will be made available upon completion of the security assessment." There is no published price, no model ID in the API reference, and no GLM 5.4 route on OpenRouter as of November 24, 2026. Today you can only use GLM 5.4 inside Z.ai Chat, ZCode and partner coding tools. If you need an API now, build against glm-5.3 on an OpenAI-compatible endpoint, so switching later is a one-line change.

Our GLM 5.4 model page tracks the overall release status. This guide covers what is confirmed for the API, what is a reasonable guess, and how to set up your code so the switch is painless when the API opens.

TL;DR

QuestionAnswer (November 24, 2026)
Is the GLM 5.4 API live?No. Waiting on a security assessment
PriceNot announced
Expected model IDglm-5.4 (inferred from past releases, not confirmed)
Expected base URLhttps://api.z.ai/api/paas/v4 (same as other GLM models, not confirmed for 5.4)
PlaygroundZ.ai Chat at chat.z.ai is the only official way to try it
OpenRouterNot listed
Context / max output1M / 128K tokens
Supported features (per model page)Thinking mode, streaming, function calling, context caching, JSON structured output

What Z.ai Has Confirmed About the GLM 5.4 API

The GLM-5.4 docs page already lists the capabilities the API will have:

  • Thinking mode for deeper reasoning. Z.ai notes that with the Loop Transformer, part of the reasoning moves from output tokens into the loop's hidden depth.
  • Streaming, at up to 200 tokens/s off-peak and 70–80 tokens/s at peak.
  • Function calling for tools and agents.
  • Context caching for long conversations.
  • Structured output such as JSON.
  • Input: video, image, text, file. Output: text.
  • Context: 1M tokens. Max output: 128K tokens.

What the page does not include yet: a request example, a model ID in the API reference, rate limits, or pricing.

When Will the GLM 5.4 API Open?

No date. The only stated condition is the security assessment.

For reference, GLM 5.3 had API pricing on launch day (August 14, 2026) and reached OpenRouter four days later. GLM 5.4 is on a different track because Z.ai chose to gate the API. Our GLM 5.4 release date tracker will log the date when it changes.

GLM 5.4 API Pricing: What We Know

Nothing official. Two data points help you estimate the range, but neither is a GLM 5.4 price:

ModelZ.ai API price (per 1M tokens)
GLM 5.3$1.40 input / $4.40 output
GLM 5.4Not announced

Z.ai says GLM 5.4's design keeps deployment cost at 1M context "well under control" versus GLM 5.3, because the second loop pass only adds a sliding window of KV cache. It also reports 10–14% shorter outputs on a 30B test model. Both point to a price in the same range as GLM 5.3, but Z.ai has not said so. Do not budget on a guess.

GLM 5.4 API Playground Options

There is no API playground for GLM 5.4 yet. Your options:

  1. Z.ai Chat (chat.z.ai): the closest thing to a playground. Pick GLM-5.4, paste prompts and images, and watch the thinking output.
  2. ZCode: for repository-level coding tasks.
  3. Partner coding tools: Trae, WorkBuddy, Qoder and OpenCode list GLM-5.4. Useful for testing agent behavior.

None of these give you raw API parameters like temperature or max_tokens, so plan a second round of testing once the API opens.

GLM 5.4 Base URL: Set Up Now, Switch Later

Z.ai's GLM models share one OpenAI-compatible endpoint. Build against GLM 5.3 today and keep the model name in config.

import os
from openai import OpenAI

client = OpenAI(
    base_url=os.getenv("GLM_BASE_URL", "https://api.z.ai/api/paas/v4"),
    api_key=os.environ["GLM_API_KEY"],
)

MODEL = os.getenv("GLM_MODEL", "glm-5.3")  # change to "glm-5.4" when it is live

resp = client.chat.completions.create(
    model=MODEL,
    messages=[{"role": "user", "content": "Explain this stack trace in two sentences."}],
    stream=True,
)

for chunk in resp:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="")

When GLM 5.4 opens, set GLM_MODEL=glm-5.4 and re-run your tests. If Z.ai uses a different ID, you change one variable.

Before you switch: GLM 5.4 can think for a long time on hard prompts (Z.ai calls it "marathon thinking"). Raise client timeouts and check that your max_tokens leaves room for reasoning, or long answers may be cut off.

Other OpenAI-compatible base URLs for GLM today

ProviderBase URLGLM model IDs today
Z.aihttps://api.z.ai/api/paas/v4glm-5.3, glm-5.3-flash, glm-5.3-flashx
OpenRouterhttps://openrouter.ai/api/v1z-ai/glm-5.3, z-ai/glm-5.3-flash, z-ai/glm-5.3-flashx, z-ai/glm-5.3-prime
glm5.app (independent)https://glm5.app/api/v1glm-5.3, glm-5.3-flash, glm-5.3-flashx

What Happens If I Call glm-5.4 Today?

On Z.ai's public API and on OpenRouter, the model is not listed, so expect a model-not-found error. On glm5.app, a request with "model": "glm-5.4" returns 404 model_not_found. We will add GLM 5.4 only after Z.ai opens its API.

Testing Checklist for When the API Opens

CheckWhy it matters for GLM 5.4
TimeoutsLong thinking on hard prompts
max_tokens budgetReasoning plus answer must fit in 128K
Image and video input formatFirst GLM flagship with vision; formats may differ from GLM 5.3 Flash
Function-calling schemaRe-test tool calls; do not assume identical behavior to GLM 5.3
Cost per finished taskShorter outputs may offset a different price

Use the glm5.app API in the Meantime

glm5.app is not affiliated with Z.ai. Our OpenAI-compatible API serves GLM 5.3 and GLM 5.3 Flash today, so you can ship now and change the model ID later.

Read the glm5.app API docs →

FAQs About the GLM 5.4 API

Is there a GLM 5.4 API?

Not yet. Z.ai will open it after a security assessment.

How much does the GLM 5.4 API cost?

No price has been announced. GLM 5.3 costs $1.40 input and $4.40 output per 1M tokens on Z.ai's API.

What is the GLM 5.4 model ID?

Not published in the API reference. Z.ai's naming pattern suggests glm-5.4.

Is there a GLM 5.4 API playground?

Not an API playground. Z.ai Chat is the official place to try the model.

Will the GLM 5.4 API support images?

The model page lists video, image, text and file input, so the API should accept them. Exact request formats are not published yet.

Sources

"Expected" model ID and base URL are inferences from Z.ai's earlier GLM releases. We will replace them with official values once published.

Start Using GLM 5 Today

Try GLM 5 free — reasoning, coding, agents, and image generation in one platform.