models
GLM-5
GLM-5 — 744B MoE model for complex systems engineering and long-horizon agentic tasks.
models
GLM-5 — 744B MoE model for complex systems engineering and long-horizon agentic tasks.
GLM-5 is a 744B parameter (40B active) large language model from Zhipu AI, designed for complex systems engineering and long-horizon agentic tasks. Enhanced through advanced reinforcement learning, GLM-5 achieves best-in-class performance among open-source models on reasoning, coding, and agentic tasks.
| Property | Value |
|---|---|
| Model ID | z-ai/glm-5 |
| Context window | 200,000 tokens |
| Input modalities | Text |
| Output modalities | Text |
| Streaming | ✓ |
| Function calling | ✓ |
| Type | Price |
|---|---|
| Input | $0.08 / 1M tokens / 1M tokens |
| Output | $0.36 / 1M tokens / 1M tokens |
from openai import OpenAI
client = OpenAI(
base_url="https://api.atrouter.cn/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="z-ai/glm-5",
messages=[
{"role": "user", "content": "Design a multi-step plan to refactor a monolith into microservices."}
]
)
print(response.choices[0].message.content)