GLM-5

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

PropertyValue
Model IDz-ai/glm-5
Context window200,000 tokens
Input modalitiesText
Output modalitiesText
Streaming
Function calling

Pricing

TypePrice
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 OpenAI

client = 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)