
zai-org/GLM-5.3-Flash
GLM-5.3-Flash is Z.AI’s first natively multimodal GLM-5 model, delivering frontier coding and agentic intelligence.
GLM-5.3-Flash is Z.AI's first natively multimodal model in the GLM-5 series, combining frontier coding and agentic intelligence with ultra-low-cost inference. It outperforms GLM-5.2 across benchmarks, while approaching Claude Opus 4.8 on coding and agentic evaluations.
| Benchmark | What it measures | GLM-5.3-Flash | GLM-5.2 | Claude Opus 4.8 |
|---|---|---|---|---|
| Terminal Bench 2.1 | Coding ability in a terminal environment. | 84.3 | 81.0 | 85.0 |
| Toolathlon Verified | Ability to use multiple external tools to complete long-horizon workflows. | 78.4 | 59.9 | 76.2 |
| MMVU | Video understanding and reasoning across multiple domains | 80.5 | - | 67.4 |
GLM-5.3-Flash has 320B total parameters with just 18B active, plus a hybrid sparse-and-linear-attention architecture that lowers long-context serving costs while preserving precise retrieval.
Native visual intelligence expands the model beyond code: it can interpret interfaces and professional artifacts, use browser and computer tools, inspect rendered outputs, and iteratively refine its work. With context lengths up to one million tokens, GLM-5.3-Flash is a strong fit for scalable coding agents, visual development, automation, and long-running knowledge-work workflows.
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-Flash",
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
}
}