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.
Quick Reference
Property
Value
Model ID
z-ai/glm-5
Context window
200,000 tokens
Input modalities
Text
Output modalities
Text
Streaming
✓
Function calling
✓
Pricing
Type
Price
Input
$0.08 / 1M tokens / 1M tokens
Output
$0.36 / 1M tokens / 1M tokens
Strengths
Systems engineering — Excels at complex multi-step planning and design
Agentic tasks — Optimized for long-horizon autonomous workflows
Reasoning — Strong analytical and logical reasoning capabilities
Cost-effective — Competitive pricing for advanced reasoning
Example
from openai import OpenAIclient = OpenAI( base_url="https://openapi.linkwo.ai/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)
Related
GLM-5.1 — Next-gen flagship for agentic engineering