MyRouterMyRouter
/
ModelsDocsSign In
Back to catalog

GLM-5.1

Provider: Zai-orgType: Chat

Description

GLM-5.1 is Z.AI's latest flagship model, meticulously engineered for long-horizon autonomous tasks. Capable of working continuously on a single assignment for up to 8 hours, it autonomously manages the entire workflow—from initial planning and execution to iterative optimization and the delivery of production-grade results. While its general capabilities and coding proficiency are on par with Claude Opus 4.6, GLM-5.1 excels particularly in sustained execution, complex engineering optimization, and real-world development scenarios. This makes it the ideal foundational model for powering advanced autonomous agents and long-horizon coding assistants.

Capabilities

  • function-calling
  • structured-outputs
  • reasoning
  • serverless

Model Info

Model ID
zai-org/glm-5.1
Context Window
200K
Modalities

Input: Text

Output: Text

Pricing

Input
$1.38
Output
$4.40

Quick Start

Use your MyRouter API key with an OpenAI-compatible base URL, then pick the example that matches your stack.

Direct HTTP request for quick testing.

curl https://api.myrouter.ai/openai/v1/chat/completions \
  -H "Authorization: Bearer $MYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "zai-org/glm-5.1",
    "messages": [
      {
        "role": "user",
        "content": "Hello from MyRouter"
      }
    ]
  }'