
zai-org/GLM-5.3
GLM-5.3 is Z.AI's latest model for agentic engineering, with stronger coding, long-horizon agentic capabilities, and emergent cybersecurity analysis.
GLM-5.3 is Z.AI's latest model for agentic engineering, with stronger coding, long-horizon agentic capabilities, and emergent cybersecurity analysis: all achieved through scaled post-training on the same base model as GLM-5.2.
GLM-5.3 runs on the same 744B-A40B MoE base as GLM-5.2, with every capability gain coming from scaled post-training across more diverse, realistic task environments: full codebases, documentation, testing tools, and multi-step workflows. The result is Z.AI's strongest coding model to date, with the largest jumps on the longest-horizon benchmarks: Terminal-Bench 3.0 moves from 4.6% to 28.3% over GLM-5.2, in addition to notable gains in vulnerability discovery and security analysis.
GLM-5.3 supports three thinking effort levels (low, high, and max, with max recommended for coding), making it a strong fit for agentic coding workflows that require sustained planning, implementation, and verification at production scale.

Input
# You can use this model with any of the OpenAI clients in any language!
# Simply change the API Key to get started
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://inference.baseten.co/v1"
)
response = client.chat.completions.create(
model="zai-org/GLM-5.3",
messages=[
{
"role": "user",
"content": "Implement Hello World in Python"
}
],
stream=True,
stream_options={
"include_usage": True,
"continuous_usage_stats": True
},
top_p=1,
max_tokens=1000,
temperature=1,
presence_penalty=0,
frequency_penalty=0
)
for chunk in response:
if chunk.choices and chunk.choices[0].delta.content is not None:
print(chunk.choices[0].delta.content, end="", flush=True)Output
{
"id": "143",
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"message": {
"content": "[Model output here]",
"role": "assistant",
"audio": null,
"function_call": null,
"tool_calls": null
}
}
],
"created": 1741224586,
"model": "",
"object": "chat.completion",
"service_tier": null,
"system_fingerprint": null,
"usage": {
"completion_tokens": 145,
"prompt_tokens": 38,
"total_tokens": 183,
"completion_tokens_details": null,
"prompt_tokens_details": null
}
}