Change model to glm-5.4 and remove three settings that GLM-5.3 tolerated, because each returned HTTP 400 with error code 1210 from GLM-5.4's Chat Completions endpoint in our December 2 test through AIHubMix: thinking: {"type": "disabled"}, any reasoning_effort other than low, high or max, and max_tokens above 131,072. The switch suits anyone already calling GLM-5.3 by API: Zhipu's list prices are unchanged, and on our coding task GLM-5.4 at its default effort took a median 27 seconds and $0.011 per run against GLM-5.3's 233 seconds and $0.055, passing 4 of 5 runs to GLM-5.3's 5 of 5. Wait if you self-host GLM-5.3, since Zhipu hasn't published GLM-5.4 weights yet.
Which setup fits your workload?
- Short, high-volume calls: send
reasoning_effort: "low". On our task a run took about 5 seconds and cost $0.0018; 4 of 5 runs passed. - Harder coding or agent steps: keep the default effort,
max. Medians on our task were 27 seconds and $0.011, and one run still failed, so keep running the code's tests. - Code that sends disabled thinking: Zhipu lists both models as always thinking, but only GLM-5.4 rejected the field. Send
reasoning_effort: "low"instead. - Multi-turn agents: store each reply's
reasoning_contentand send it back unchanged, as Zhipu now recommends. Every later turn's input grows by that many tokens. - Screenshots: the
glm-5.4ID read an order reference from a screenshot in our single image test. - The cheapest coding experiments:
coding-glm-5.4lists $0.12 per million input tokens and $0.44 per million output tokens on AIHubMix, far below Zhipu's own rates. With our test key it returned "cannot be served at the moment" on every endpoint, so check it before you depend on it.
Which GLM-5.3 settings fail on GLM-5.4?
Zhipu opened the GLM-5.4 API on December 2, 2026, for Chat Completions, Responses and Anthropic Messages clients. Its migration guide gives 1M tokens of context, up to 128K tokens of output and three effort levels: low, high and max. We sent each GLM-5.3 setting below to both models once:
| Setting in the request | GLM-5.3 | GLM-5.4 | Use instead |
|---|---|---|---|
| thinking type disabled | 200 | 400, code 1210 | effort low |
| reasoning_effort minimal | 200 | 400, code 1210 | low |
| reasoning_effort medium | 200 | 400, code 1210 | high |
| reasoning_effort xhigh | 200 | 400, code 1210 | max |
| max_tokens 131,073 | 200 | 400, code 1210 | 131,072 or less |
One request per cell through AIHubMix Chat Completions, December 2, 2026, 05:27 to 05:28 UTC. A request with max_tokens set to 131,072 succeeded on GLM-5.4. The Responses endpoint accepted the same thinking field with a 200; the other settings weren't sent there. The replacements follow the conversion table Z.ai documents for its Coding Plan, where these values are mapped for you. Through AIHubMix's glm-5.4, they were rejected instead.
On Chat Completions, the 400 body carries the code but a generic message:
{"error": {"message": "For unknown errors, please submit a request at https://console.aihubmix.com/support?category=billing or email feedback@aihubmix.com (tid: …)", "type": "", "param": "", "code": "1210"}}
The Anthropic Messages endpoint returned the upstream reason for the thinking setting: [1210][This model always thinks and does not support turning off thinking; please use low, high, or max.]. Zhipu's error code table defines 1210 as invalid API call parameters. To reproduce the error with your AIHubMix key (quick start):
curl -s https://aihubmix.com/v1/chat/completions \
-H "Authorization: Bearer $AIHUBMIX_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "glm-5.4", "thinking": {"type": "disabled"},
"messages": [{"role": "user", "content": "Reply with OK."}]}'
Expect HTTP 400 with "code": "1210". Replace the thinking object with "reasoning_effort": "low" and the request returned 200 in our test.
The rest of a typical request stays as it is: base URL, key, message format, streaming fields and the 1M context window. Zhipu's list prices don't change either. Z.ai lists both models at $1.40 per million input tokens, $0.26 per million cached input tokens and $4.40 per million output tokens; BigModel lists ¥8, ¥2 and ¥28.
What did one coding task cost on each model?
The task asked for a Python function, parse_duration, that turns strings such as 1h30m or 2d 4h into seconds and raises ValueError on bad input. A run passed only if the returned code cleared all 16 checks:
- Valid:
1h30m,1h 30m,2d 4h,45s," 1d ",0s,1d2h3m4s,10m 0s. - Invalid: an empty string, spaces only,
30m1h,1h1h,05m,1H,1h 30m(two spaces),1.5h.
Each setup ran five times with the same 313-token prompt and no sampling parameters, on December 2 between 05:28 and 05:45 UTC. Costs use Z.ai's list prices, which are the same for both models:
| Model and effort | Passed | Median time | Median output tokens | Median cost |
|---|---|---|---|---|
| GLM-5.3, default | 5 of 5 | 233 s | 12,496 | $0.0554 |
| GLM-5.4, default | 4 of 5 | 27 s | 2,501 | $0.0114 |
| GLM-5.4, low | 4 of 5 | 5 s | 318 | $0.0018 |
Output tokens include reasoning. Runs of the three setups overlapped in time. GLM-5.3 responses reported the model version glm-5-3-260814; GLM-5.4 responses reported glm-5.4.
At those medians, 1,000 runs of this task would cost about $55 on GLM-5.3, $11 on GLM-5.4 at its default effort and under $2 at low. GLM-5.3's spread was wide: 3,706 to 18,421 output tokens per run. GLM-5.4 at its default used 1,864 to 3,390.
The two GLM-5.4 failures were ordinary bugs. At the default effort, one reply defined _SEGMENT and then referred to _SEG, so the code didn't import. At low, one reply rejected 1h30m and 1d2h3m4s, two valid inputs. Five runs of one task can't rank the models in general. They do show that the effort setting, and how long a model chooses to think, can change time and cost several times over, and that only the tests tell you whether a reply is right.
Should your client send reasoning_content back?
Yes, for agents and long coding sessions. From GLM-5.4 on, Zhipu's standard API keeps earlier reasoning by default (thinking.clear_thinking now defaults to false). Its thinking guide asks you to return the complete, unmodified reasoning content, and warns that reordered or edited reasoning lowers quality and cache hits.
Reasoning you send back counts as input tokens. In a two-turn test with a 1,307-token prompt, GLM-5.4 produced 166 reasoning tokens in turn one. Turn two counted 1,543 input tokens with that reasoning attached and 1,377 without it. GLM-5.3 showed the same pattern (1,549 and 1,381), and setting clear_thinking to true on GLM-5.4 still counted 1,543. In our test on AIHubMix, what changed the input count was whether the client sent the field, not the default.
No response in our session reported cached tokens, including two identical 1,298-token requests sent 8 seconds apart. Budget at the uncached rate until your own usage data shows cached_tokens above zero.
With the OpenAI Python SDK, the field arrives as an extra attribute on the message:
import os
from openai import OpenAI
client = OpenAI(base_url="https://aihubmix.com/v1", api_key=os.environ["AIHUBMIX_API_KEY"])
messages = [{"role": "user", "content": "Name one Python built-in that returns an iterator. One word."}]
reply = client.chat.completions.create(
model="glm-5.4", # was "glm-5.3"
reasoning_effort="high", # only "low", "high" or "max" (default)
max_tokens=8192, # 131072 at most
messages=messages,
)
msg = reply.choices[0].message
reasoning = (msg.model_extra or {}).get("reasoning_content")
# Send the reasoning back unchanged on the next turn.
messages.append({"role": "assistant", "content": msg.content, "reasoning_content": reasoning})
messages.append({"role": "user", "content": "Name another one. One word."})
reply = client.chat.completions.create(model="glm-5.4", reasoning_effort="high", max_tokens=8192, messages=messages)
print(reply.choices[0].message.content)
We ran this code through AIHubMix on December 2, 2026, and both requests succeeded.
Which AIHubMix endpoint and model ID should you use?
Use glm-5.4 for production traffic. A one-line prompt returned 200 on all three AIHubMix endpoints: /v1/chat/completions, /v1/responses and /v1/messages. Claude Code talks to the Messages endpoint and Codex to the Responses endpoint; we didn't run either tool. AIHubMix's model guide lists text, image and video input but publishes no capability flags; in one test a base64 screenshot sent as image_url came back with the correct order reference, TXA-B4M. Streaming tool calls with tool_stream: true delivered the arguments in 142 chunks instead of one.
coding-glm-5.4 is the low-cost alternative. With our test key, all three endpoints answered "cannot be served at the moment" at 05:27 UTC, and Chat Completions returned the code no_available_channel again at 05:28 UTC, so send one request before routing traffic to it.
How do you check that the migration worked?
- Search your code and config for disabled thinking, effort names other than
low,highandmax, andmax_tokensabove 131,072. - Send one request with your real settings. Expect HTTP 200 and
glm-5.4as the returned model. - In a multi-turn conversation, log
reasoning_contentand confirm the next request carries it unchanged. - Run five to ten of your own tasks at the effort you plan to use, and compare the pass rate, output tokens and time with GLM-5.3.
- After a day of traffic, check
reasoning_tokensper call and whethercached_tokensis ever above zero.
When should you stay on GLM-5.3?
- You self-host the model. Zhipu's Hugging Face organisation had no public GLM-5.4 weights at 05:56 UTC on December 2.
- A tool you can't edit sends one of the rejected settings. It will get HTTP 400 until you can change what it sends.
- Every run has to pass without a retry. On our task GLM-5.4 failed one run in five at both efforts and GLM-5.3 failed none. That's a small sample, so test your own task before switching.
FAQ
Did the price change from GLM-5.3?
No. Z.ai lists both models at $1.40 per million input tokens, $0.26 cached and $4.40 output; BigModel lists ¥8, ¥2 and ¥28.
Can thinking be turned off on GLM-5.4?
No. Zhipu's guide lists GLM-5.4, like GLM-5.3, as always thinking. Use reasoning_effort low for short answers. Through AIHubMix, a disabled-thinking request returned HTTP 400 on GLM-5.4 and 200 on GLM-5.3.
What does error 1210 mean?
Zhipu's error table defines it as invalid API call parameters, returned with HTTP 400. In our test it came from disabled thinking, unsupported effort names and max_tokens above 131,072.
Is the output limit still 128K tokens?
Yes. A request with max_tokens at 131,072 succeeded, and 131,073 was rejected.
Does setting clear_thinking to true lower the bill?
Not in our test. Reasoning sent back was counted as input either way. Leaving reasoning_content out of the next request was what lowered the input count.
Can GLM-5.4 read images through AIHubMix?
In our single test, the glm-5.4 ID read an order reference from a screenshot correctly. The model guide lists image input but no verified capability flags, so try your own images before relying on it.
Are GLM-5.4 weights available to download?
Not yet. Zhipu's Hugging Face organisation had no public GLM-5.4 repository on December 2, 2026.
Keep reading: the GLM-5.4 series
- To see who gets the larger Coding Plan quota and which key bills what: GLM-5.5? Zhipu Released GLM-5.4: Vision, Quotas and API Pricing
- For a test of the same model with and without a screenshot of a broken layout: GLM-5.4 Screenshot Test: Can It Fix a Checkout Button?
- If your app routes through OpenRouter: GLM-5.4 API Access: Should You Wait for OpenRouter?
Sources
- BigModel release notes: the GLM-5.4 API entry dated December 2, 2026.
- GLM-5.4 model page and migration guide: limits, defaults and recommended settings.
- Thinking modes and error codes: always-on thinking, preserved reasoning and code 1210.
- Z.ai pricing, BigModel pricing and Z.ai's Coding Plan effort table: rates checked December 2, 2026 at 05:58 UTC.
- GLM 5.4 on AIHubMix: the model ID we tested on December 2, 2026, between 05:27 and 05:57 UTC.



