GLM 5.3: Z.ai's post-trained successor to GLM 5.2, and a call on a private API
The Morse teamPublished Facts checked 3 min read
GLM 5.3 is Z.ai's newest flagship: the same base model as GLM 5.2, with new post-training that Z.ai says makes it "much better at complex coding and long-horizon tasks." It adds explicit thinking controls and keeps a one-million-token context. Morse serves it on a private, OpenAI-compatible API as z-ai/glm-5.3, at $1.40 per million input tokens and $4.40 per million output tokens, and nothing you send goes to Z.ai.
We read Z.ai's GLM-5.3 card and Morse's model page on December 3, 2026. Scores are Z.ai's.
What changed from GLM 5.2?
Only post-training. The card is direct: GLM 5.3 uses "the same base model as GLM-5.2," and "every gain comes from post-training." Z.ai reports a 50% improvement over 5.2 on its in-house Z.ai Code Bench, and more than double 5.2's results on vulnerability exploitation tests used in security research. A few rows from its table:
| Benchmark | GLM 5.3 | GLM 5.2 |
|---|---|---|
| Terminal Bench 2.1 | 88.2 | 81.0 |
| DeepSWE v1.1 | 66.9 | 46.2 |
| CyberGym | 84.5 | 77.2 |
| AutomationBench | 48.2 | 26.2 |
Source: GLM-5.3 model card, read December 3, 2026.
The full set of Z.ai's tables, with every row, is in our GLM 5.3 benchmarks post.
The same base model means the same million-token context and the same architecture; the change is in how well it plans, codes, and finishes multi-step work. If you already run 5.2, switching is a change of model id.
What does better post-training change in practice?
Mostly how far the model gets on long tasks before it stalls. Z.ai's biggest gains are on tests where an agent works for hours: Terminal Bench 3.0 rises from 4.6 to 28.3, and SWE-Marathon from 19.4 to 42.5. Its evaluations ran with a one-million-token context and up to 128K tokens of output, so the model was trained and tested on work that fills a large window. For a short question, 5.2 and 5.3 answer much alike; the difference shows when a task runs dozens of steps.
How do you control its thinking?
GLM 5.3 is the first GLM whose card spells out the controls:
reasoning_efforttakeslow,high, ormax, and "defaults to max if not passed." That default suits hard agent work and wastes time on simple calls, so passlowfor quick ones. On Morse the setting takes "low", "high", or "max".clear_thinkingdecides whether earlier reasoning is dropped between turns. It defaults tofalse, keeping reasoning across turns for agents, and the card recommendsclear_thinking=truefor ordinary chat.
For a coding agent, a sensible start is high effort with earlier reasoning kept, so the model remembers why it made each change. For a chat or a quick lookup, low effort with clear_thinking on keeps replies fast and the context small. Raise effort to max only for the hard steps, since it adds the most latency and the most billed output.
How do you call GLM 5.3?
Point any OpenAI client at https://inference.trymorse.ai/v1, pass your Morse key, and name z-ai/glm-5.3. The sample sets effort to low and gives it one log line and a firewall function:
import json
import os
from openai import OpenAI
client = OpenAI(
base_url="https://inference.trymorse.ai/v1",
api_key=os.environ["MORSE_API_KEY"],
)
tools = [
{
"type": "function",
"function": {
"name": "block_ip",
"description": "Add an IP address to the firewall's block list",
"parameters": {
"type": "object",
"properties": {
"ip": {"type": "string"},
"minutes": {"type": "integer"},
},
"required": ["ip", "minutes"],
},
},
}
]
log = "Dec 3 03:12:44 web-2 sshd[811]: Failed password for root from 198.51.100.23 port 40122 ssh2 (x240 in 5m)"
reply = client.chat.completions.create(
model="z-ai/glm-5.3",
reasoning_effort="low",
tools=tools,
messages=[
{"role": "system", "content": "You triage server logs. Block clear brute-force sources for 60 minutes."},
{"role": "user", "content": log},
],
)
for call in reply.choices[0].message.tool_calls or []:
print(call.function.name, json.loads(call.function.arguments))
On December 3, 2026, GLM 5.3 called block_ip for 198.51.100.23, 60 minutes, in about 1 second. Morse's model page measured it on December 1 at 0.28 s to the first token and 75 tokens per second, the median of 5 streamed replies. It accepts the parallel_tool_calls setting coding agents send, so Morse's Claude Code and Codex guides work with this id.
GLM 5.3, 5.3 Flash, or 5.2?
| GLM 5.3 | GLM 5.3 Flash | GLM 5.2 | |
|---|---|---|---|
| Model id | z-ai/glm-5.3 | z-ai/glm-5.3-flash | z-ai/glm-5.2 |
| Reads | text | text and images | text |
| Privacy tiers | TEE, Private | TEE, Private | Private |
| Price | $1.40 per million input tokens and $4.40 per million output tokens | $0.15 per million input tokens and $0.50 per million output tokens | $1.40 per million input tokens and $4.40 per million output tokens |
Read from Morse's catalog when this page was built.
GLM 5.3 is the pick for the hardest coding and agent work. GLM 5.3 Flash is the fast, low-priced model of the same generation and reads images. GLM 5.2 stays for work tuned on it.
Is there an uncensored GLM 5.3?
Yes: GLM 5.3 Uncensored, an abliterated build of this model that runs only on attested hardware, and GLM 5.3 Flash Uncensored for speed. Both are served for cybersecurity, agent security, AI and ML research, and training data.
Privacy and cost
It runs in attested hardware enclaves, under zero-data-retention terms. Morse serves the weights from its own providers, and the privacy page sets out each tier. Calls bill per token against prepaid credits, with repeated input at $0.26 per million cached input tokens. Make a key and run the sample.
Common questions
What is the difference between GLM 5.2 and GLM 5.3?
Post-training. Z.ai's card says GLM 5.3 uses the same base model as GLM 5.2, and every gain comes from post-training, mostly in complex coding and long-horizon tasks.
How do you set GLM 5.3's reasoning?
With reasoning_effort: low, high, or max. The card says it defaults to max when you don't pass it, so send low or high explicitly for faster replies.
What is clear_thinking in GLM 5.3?
A setting that decides whether earlier reasoning is cleared between turns. The card says it defaults to false, and recommends passing clear_thinking=true for chat.
What license is GLM 5.3 under?
Z.ai's own GLM 5.3 license, per its Hugging Face listing, not the MIT license of GLM 5 to 5.2. Read it before you build on the weights.