Z.ai: GLM 5✓ Catalog verified
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.
Overview
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading closed-source models. With advanced agentic planning, deep backend reasoning, and iterative self-correction, GLM-5 moves beyond code generation to full-system construction and autonomous execution.
Access: available through the official Z Ai API. Context window: 80K.
Specifications
| API identifier | z-ai/glm-5 |
| Provider | Z Ai |
| Model type | Text LLM |
| Context window | 80K catalog |
| Input modalities | text |
| Output modalities | text |
| Released | Feb 11, 2026 |
| Moderated | No |
| Architecture modality | text->text |
API defaults
{
"top_p": 0.95,
"temperature": 1,
"frequency_penalty": null
}Pricing
Live pricing components for z-ai/glm-5 as published in the catalog.
| Pricing component | Raw unit price | Normalized | Unit |
|---|---|---|---|
| Prompt tokens | $7.2e-7 | $0.72 / 1M | Per input token |
| Completion tokens | $0.0000023 | $2.30 / 1M | Per output token |
| Request fee | N/A | N/A | Per request |
| Image fee | N/A | N/A | Per image unit |
| Web search fee | N/A | N/A | Per search request |
Cost calculator
Estimate monthly spend from your own token volumes.
Estimated Total Cost
$0.82Calculated from current list pricing in the ModelsAtlas catalog.Capabilities
| Capability | Status | What it means |
|---|---|---|
| Visual Understanding | Not advertised | Image and document analysis support |
| Audio Processing | Not advertised | Speech and voice aligned flows |
| Tool Calling | ✓ Supported | Supports tools / function calling |
| Self-Hosting | Not advertised | Deploy outside managed APIs |
Capability signals
Directional signals derived from model metadata and capability tags — not official benchmark submissions.
Quick start
Call Z.ai: GLM 5 through an OpenAI-compatible client.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="z-ai/glm-5",
messages=[{"role": "user", "content": "Explain quantum physics."}]
)
print(response.choices[0].message.content)Alternatives
Closest models by context window from a different provider.
| Model | Provider | Context | Input /1M | Actions |
|---|---|---|---|---|
| meta-llama/Llama-3.2-3B-Instruct | Meta | 80K | $0.05 | View → |
| Morph: Morph V3 Fast | Morph | 82K | $0.80 | View → |
Sources & attribution
Pricing and metadata are maintained in the ModelsAtlas catalog.
Frequently asked questions
How much does Z.ai: GLM 5 cost?
$0.72 per 1M input tokens and $2.30 per 1M output tokens on the official Z Ai API.
What is the context window of Z.ai: GLM 5?
Z.ai: GLM 5 supports up to 80K tokens of context.
Does Z.ai: GLM 5 support tool / function calling?
Yes, Z.ai: GLM 5 supports tool / function calling — you can register tools and the model will emit structured tool calls.
How do I access Z.ai: GLM 5?
Use the official Z Ai API with the model id `z-ai/glm-5`. See the Quick start section above for code examples.