Free 7-Day Trials: UFree 7-Day Trials: Unlimited Token Plan & Coding Plan. Claim NowDeepSeek V3.1
GLM-5.1 API
CodeLLM

GLM-5.1 API

All You Need To Know About GLM-5.1 API

Overview

Model Provider:Zai-org
Model Type:CODE/LLM
State:Coming Soon

Key Specs

Quantization:BF16
Parameters:754B
Context:200K
Pricing:$1.40 input / $4.40 output / $0.26 cache
Try Model API
Quick Start
Reserve Dedicated Endpoint

Introduction

GLM-5.1 is Zhipu's latest flagship model, featuring significantly enhanced coding capabilities and markedly improved performance on long-context tasks. It can work continuously and autonomously for up to 8 hours in a single task, completing the full cycle from planning and execution to iterative optimization, and delivering engineering-grade results.

In terms of general capabilities and coding performance, GLM-5.1 is on par with Claude Opus 4.6 overallIt demonstrates stronger sustained performance in long-horizon autonomous execution, complex engineering optimization, and real-world development scenarios, making it an ideal foundation for building Autonomous Agents and long-horizon Coding Agents.

GLM-5.1 API Usage

Model

Endpoint

zai/glm-5.1


        1
        curl -X POST https://inference.canopywave.io/v1/chat/completions \
      
        2
          -H "Content-Type: application/json" \
      
        3
          -H "Authorization: Bearer $CANOPYWAVE_API_KEY" \
      
        4
          -d '{
      
        5
            "model": "zai/glm-5.1",
      
        6
            "messages": [
      
        7
              {"role": "user", "content": "tell me a story"}
      
        8
            ],
      
        9
            "max_tokens": 1000,
      
        10
            "temperature": 0.7
      
        11
          }'