MODELS / Z.AI

GLM 5

GLM 5 is a frontier-class, general-purpose large language model optimized for complex systems engineering and long-horizon agentic tasks. It builds on the GLM 4.5 agent-centric lineage and is designed to support multi-step reasoning, math (including AIME-style benchmarks), advanced coding, and tool-augmented workflows, with long context support suitable for sophisticated agents and enterprise applications. Typical uses include autonomous agents for software engineering, data and systems troubleshooting, operations copilots, and high-end chat assistants that must break down complex tasks, call tools reliably, and reason over long sequences of instructions or documents.

TEXTREASONINGREASONINGTOOL-USEIMPLICIT-CACHING
202.8K
CONTEXT WINDOW
131.1K
MAX OUTPUT TOKENS
$1 / 1M tokens
INPUT PRICE
$3.20 / 1M tokens
OUTPUT PRICE
QUICKSTART

Call it in one request.

OpenAI-compatible — change the base URL, and the setup is complete.

SHELL
curl https://enterprise.blackbox.ai/v1/chat/completions \
  -H "Authorization: Bearer $BLACKBOX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "blackboxai/zai/glm-5",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": true
  }'
INPUT: textOUTPUT: textRELEASED: 2026-02-12