GLM-5.3
AvailableGLM-5.3 is the flagship text model from Z.ai, the company formerly known as Zhipu AI.
Good for Coding agents · Hard reasoning
Is it right for you?
It is built for agent work: it plans, calls tools in long sequences and keeps track of a task over many turns. It always reasons before it answers, so replies take longer and use more output tokens than a model you can run without reasoning.
Best for
- The main model in Claude Code, Cline or Cursor for multi-step coding tasks.
- Tasks that benefit from a plan first: refactors, migrations, debugging across several files.
- Agents that make many tool calls in one turn.
Not ideal for
- Quick, short answers: reasoning cannot be switched off, so every reply includes thinking tokens.
- Images: GLM-5.3 takes text only. GLM-5.3 Flash lists image input.
- Prompts longer than 128K tokens, the limit in our catalogue today.
Next to the rest of the Z.ai (Zhipu) line
| Model | Input | Output | Context | Per session |
|---|---|---|---|---|
| GLM-5.1 | $0.6438 | $2.5753 | 31K | $0.2215 |
| GLM-5.2 | $0.8584 | $3.0045 | 128K | $0.2962 |
| GLM-5.3 (this page) | $1.3949 | $4.8823 | 128K | $0.4813 |
| GLM-5.3 Flash | Price coming soon | Not listed | Not priced yet | |
* The maker's listed context. Ours is confirmed with our price, and may be lower. Prices and session cost show once our price is set.
What it costs
Prepaid, per token, no subscription. Set your traffic to see your bill.
30 days, at today's prices. You're billed on actual tokens.
- Per request
- $0.009137
- Coding session
- $0.48
- Per day
- $18.27
- Suggested key budget
- $635.00
- Alert at 80%
- $508.00
A coding session is 30 requests of 20,000 input tokens, 80% from cache, and 1,000 output tokens each: the same session as the "Per session" column above. Thinking tokens are billed as output, so reasoning raises the cost.
One price all day: this model has no peak pricing in our catalogue.
Capabilities
What GLM-5.3 can do, as Z.ai lists it.
| Capability | Support |
|---|---|
| Reasoning | Mandatory: always on |
| Image input | No: text in, text out |
| JSON output | JSON mode and structured outputs yes |
| Streaming | Yes |
| Prompt caching | Cache-read price listed |
Get started
Create a key in the console, export it as YUNSHU_API_KEY, then use one of these.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=$YUNSHU_API_KEY
export ANTHROPIC_MODEL=glm-5.3curl https://api.yunshurouter.com/v1/chat/completions \
-H "Authorization: Bearer $YUNSHU_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'curl https://api.yunshurouter.com/v1/messages \
-H "x-api-key: $YUNSHU_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Write a Python function that reverses a string."}]
}'import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.yunshurouter.com/v1",
api_key=os.environ["YUNSHU_API_KEY"],
)
response = client.chat.completions.create(
model="glm-5.3",
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(response.choices[0].message.content)import os
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.yunshurouter.com", # no /v1: the SDK adds it
api_key=os.environ["YUNSHU_API_KEY"],
)
message = client.messages.create(
model="glm-5.3",
max_tokens=1024,
messages=[{"role": "user", "content": "Write a Python function that reverses a string."}],
)
print(message.content[0].text)Full steps for each tool: integration guides →
Questions
What is GLM-5.3?
GLM-5.3 is the flagship language model from Z.ai (Zhipu AI). It is designed for agents and coding: planning, long tool-calling sessions and multi-file changes.
Does GLM-5.3 support tool calling?
Yes. Tool calling works in both the OpenAI format (tools) and the Anthropic format (tools with input_schema).
Does GLM-5.3 support reasoning?
Yes, and it is always on: GLM-5.3 reasons before every answer and the provider does not let you turn it off.
What is the difference between GLM-5.3 and GLM-5.3 Flash?
GLM-5.3 is the larger model for hard, multi-step work. GLM-5.3 Flash is smaller, cheaper and faster, and the provider lists image and video input for it. Both always reason. GLM-5.3 Flash is not on Yunshu Router yet.