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
| Question | Answer (November 24, 2026) |
|---|---|
| Is the GLM 5.4 API live? | No. Waiting on a security assessment |
| Price | Not announced |
| Expected model ID | glm-5.4 (inferred from past releases, not confirmed) |
| Expected base URL | https://api.z.ai/api/paas/v4 (same as other GLM models, not confirmed for 5.4) |
| Playground | Z.ai Chat at chat.z.ai is the only official way to try it |
| OpenRouter | Not listed |
| Context / max output | 1M / 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:
| Model | Z.ai API price (per 1M tokens) |
|---|---|
| GLM 5.3 | $1.40 input / $4.40 output |
| GLM 5.4 | Not 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:
- 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.
- ZCode: for repository-level coding tasks.
- 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_tokensleaves room for reasoning, or long answers may be cut off.
Other OpenAI-compatible base URLs for GLM today
| Provider | Base URL | GLM model IDs today |
|---|---|---|
| Z.ai | https://api.z.ai/api/paas/v4 | glm-5.3, glm-5.3-flash, glm-5.3-flashx |
| OpenRouter | https://openrouter.ai/api/v1 | z-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/v1 | glm-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
| Check | Why it matters for GLM 5.4 |
|---|---|
| Timeouts | Long thinking on hard prompts |
max_tokens budget | Reasoning plus answer must fit in 128K |
| Image and video input format | First GLM flagship with vision; formats may differ from GLM 5.3 Flash |
| Function-calling schema | Re-test tool calls; do not assume identical behavior to GLM 5.3 |
| Cost per finished task | Shorter 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.
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
- Z.ai Docs: GLM-5.4 — API status, capabilities, speed
- Z.ai Docs: GLM-5.3 — current API model and endpoint
- Z.ai Docs: Pricing — GLM 5.3 rates
- OpenRouter: Z.ai models — catalog checked November 24, 2026
"Expected" model ID and base URL are inferences from Z.ai's earlier GLM releases. We will replace them with official values once published.




