GLM-5.4
Z.ai's flagship LLM for agents and multi-file coding, with a 1M-token context, image and video understanding, tool calling and structured output.
## Overview
GLM-5.4 is Z.ai's flagship large language model, built for long-horizon agents and complex multi-file coding. It reads text, images and video, always reasons before answering, and keeps up to 1,048,576 tokens of context in one conversation.
## What you can build
- Coding agents that refactor across many files, build features end to end and diagnose bugs
- Whole-repository analysis and cross-module changes in a single long context
- Code that generates games, interactive 3D scenes, video edits or CAD scripts
- Turning charts, UI screenshots, mockups and design files into code or revisions
- Answers about video clips: what happens, who does what, step-by-step summaries
- Tool-using assistants that call your functions and return structured JSON
## Inputs
- Prompt or messages: the conversation for the model
- Input Image: up to 10 images (JPEG, PNG or WEBP)
- Input Video: up to 3 videos, sampled at 1 frame per second
- Tools, tool choice and parallel tool calls: function definitions the model can call
- Response format: plain text, any valid JSON, or a strict JSON schema
- Reasoning effort: low, high or max
- Temperature, top p, frequency penalty, presence penalty and max completion tokens
## Outputs
- The model's text answer, streamed as it is written
- Its reasoning, shown separately from the answer
- Tool calls with their arguments, when tools are given
- JSON that follows your schema, when a response format is set
## Recommended settings
- Low reasoning effort for quick questions and chat; high or max for hard coding and multi-step reasoning
- Keep max completion tokens high enough for both reasoning and the answer, since reasoning counts toward it
- Use a strict JSON schema when another program reads the answer
- Pass a user ID and session ID to keep chat history between turns
## Limitations
- Reasoning cannot be turned off; it is billed as output tokens
- Text, images and video only: no audio or document (PDF) input
- No built-in web search; it answers from what it was trained on and what you send
- Up to 131,072 output tokens per answer, reasoning included
## Safety & compliance
- Requests and attached media pass the provider's content checks; a refused prompt or file returns an error and is not charged
- Review generated code and answers before using them in production
API quick start
Run 5.4 with a single API call.
{
"prompt": "how do i keep my sourdough starter alive …",
"inputImage": "https://your-cdn.com/input.png",
"inputVideo": "https://your-cdn.com/input.mp4",
"user_id": "..."
}curl -X POST "https://api.wiro.ai/v1/Run/glm/5-4" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_WIRO_API_KEY" \
--data-binary @- <<'JSON'
{
"prompt": "how do i keep my sourdough starter alive …",
"inputImage": "https://your-cdn.com/input.png",
"inputVideo": "https://your-cdn.com/input.mp4",
"user_id": "..."
}
JSONOther models you might like
Explore similar llm & chat models.



