Z AI
GLM-5.4
About model
Z AI’s flagship, taking GLM-5.3’s long-horizon agentic reasoning multimodal. Takes text, image, video, and file inputs and returns text. Maintains a 1M context, with tool use. Introducing a revolutionary new Loop transformer architecture, reusing a middle block of 28 weight-shared layers across multiple iterations.
It takes text, images, video and file as input and returns text. It works with a context window of 1M tokens and can return up to 128k tokens in a single response.
Calls go through the SCX gateway on an OpenAI compatible endpoint, so moving an existing integration across means changing the base URL and the model name, and nothing else.
1M
Tokens the model can attend to in a single request
128k
Tokens the model can return in one response
Model key capabilities
Reasoning
Works through a problem step by step before answering, which lifts accuracy on multi-step maths, logic and planning tasks.
Vision
Accepts images alongside text in the same request, so documents, screenshots and charts can be read directly.
Tool calling
Returns structured arguments for the tools you define, using the same schema as the OpenAI API, so existing agent frameworks work unchanged.
JSON mode
Constrains output to valid JSON, so responses can be parsed without a repair step.
Streaming
Streams tokens as they are generated, so an interface can show output before the response completes.
Quick start
curl https://api.scx.ai/v1/chat/completions \
-H "Authorization: Bearer $SCX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "GLM-5.4",
"messages": [{ "role": "user", "content": "Hello" }]
}'