Back to Models

Z.ai: GLM 5

z-ai/glm-5

Description

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.

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Z.ai: GLM 5 (z-ai/glm-5)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "z-ai/glm-5",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Z.ai: GLM 5 model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text

API Pricing

  • Input: 0.95$ / 1M tokens
  • Output: 2.55$ / 1M tokens

Token Limits

  • Max Output: 131,072 tokens
  • Max Context: 204,800 tokens

Subscription Tiers

  • free
  • pro
  • ultimate