AI Proxy Documentation

Intelligent AI Request Router with Smart Monitoring

← Back to Home

Z.ai (Zhipu AI) - Complete Knowledge Base

Last Updated: February 21, 2026 @ 16:30 EST Provider: Zhipu AI (Z.ai / BigModel.cn) Purpose: Comprehensive brain dump of all Z.ai knowledge for integration and reference

Related:

See Also: Z.ai Coding Subscription Quick Reference


Table of Contents

  1. Executive Summary
  2. Company Overview
  3. Product Ecosystem
  4. Subscription Tiers Deep Dive
  5. Model Specifications
  6. API Reference
  7. Rate Limits & Quotas
  8. Integrations
  9. Competitive Analysis
  10. Known Issues & Workarounds
  11. Historical Changes
  12. Community Tools
  13. Cross-References

Executive Summary

What is Z.ai?

Z.ai (Zhipu AI / 智谱AI) is a Chinese AI company offering GLM (General Language Model) series models through a subscription-based coding plan. Their value proposition is “1/7 the cost of Claude, 3x the usage”.

Key Metrics

Metric Value
Founded 2019
Paid Users (Dec 2025) 2.7 million
Models GLM-4.x series, GLM-5 (754B params)
Context Window Up to 200K tokens
Price Range $10-$80/month international
SWE Score 0.68 (GLM-4.7)

Why Z.ai Matters


Company Overview

Zhipu AI (智谱AI)

Attribute Detail
Chinese Name 北京智谱华章科技有限公司
Founded 2019
Origin Tsinghua University research spinoff
Headquarters Beijing, China
Platforms z.ai (International), open.bigmodel.cn (China)
Developer Community GitHub: zai-org

Platform URLs

Purpose URL
International Dashboard https://z.ai
China Dashboard https://open.bigmodel.cn
API Keys (Intl) https://z.ai/manage-apikey/apikey-list
Subscriptions (Intl) https://z.ai/manage-apikey/subscription
International Docs https://docs.z.ai/devpack/overview
China Docs https://docs.bigmodel.cn/cn/coding-plan/overview
Quick Start https://docs.z.ai/devpack/quick-start

Product Ecosystem

1. GLM Coding Plan (Subscription)

Target: Individual developers using AI coding assistants

Features:

Tiers: Lite, Pro, Max

2. Standard API (Pay-as-you-go)

Target: Developers building applications

Features:

Pricing Example:

3. Enterprise Solutions

Launched: October 2025

Features:

4. Z Code IDE

Description: Lightweight AI IDE by Zhipu AI

Features:

5. GLM-4.7-Flash (Free Tier)

Limits:


Subscription Tiers Deep Dive

Complete Pricing Table (Post February 12, 2026)

International Market (USD)

Plan Monthly Quarterly Yearly 5-Hr Quota MCP/Month
Lite $10 $27 $84 ~120 prompts 100
Pro $30 $81 $252 ~600 prompts 1,000
Max $80 $216 $672 ~2,400 prompts 4,000

China Market (CNY)

Plan Monthly Quarterly Yearly 5-Hr Quota MCP/Month
Lite ¥49 ¥132 ¥411 ~120 prompts 100
Pro ¥149 ¥402 ¥1,251 ~600 prompts 1,000
Max ¥469 ¥1,266 ¥3,939 ~2,400 prompts 4,000

Tier Feature Comparison

Feature Lite Pro Max
GLM-4.7 Access ✓ ✓ ✓
GLM-4.6 Access ✓ ✓ ✓
GLM-4.5 Access ✓ ✓ ✓
GLM-4.5-Air Access ✓ ✓ ✓
GLM-5 Access ✗ (planned) ✓ ✓
GLM-5-Code Access ✗ ✓ ✓
Early Access ✗ ✗ ✓
Generation Speed Base 40-60% faster 40-60% faster
Concurrency Standard Enhanced Ultra-high, no lag
Peak Priority No No Yes
Weekly Limits ~9,000 ~45,000 ~180,000
Monthly Limits ~18,000 ~90,000 ~360,000

Value Proposition Analysis

Compared to Claude Pro ($20/month)

Metric Claude Pro GLM Pro ($30) Ratio
5-Hour Quota ~40 prompts ~600 prompts 15x
Price $20 $30 1.5x
Value $0.50/prompt $0.05/prompt 10x better

Compared to Claude Max (estimated)

Metric Claude Max GLM Max ($80) Ratio
5-Hour Quota ~200 prompts ~2,400 prompts 12x
Price ~$40-60 $80 ~1.5-2x
Value ~$0.25/prompt $0.033/prompt 7.5x better

Model Specifications

GLM Model Family

Model Parameters Context SWE Score Input Cost Output Cost Release
GLM-5 754B TBD ~0.75+ ¥18/1M ¥28/1M 2026
GLM-5-Code 754B TBD ~0.78 - - 2026
GLM-4.7 358B 128K-200K 0.68 $0.60/1M $2.20/1M 2025
GLM-4.6 ~300B 128K-200K 0.68 $0.60/1M $2.20/1M 2025
GLM-4.5 ~250B 128K 0.65 $0.60/1M $2.20/1M 2024
GLM-4.5-Air ~200B 128K 0.62 $0.20/1M $1.10/1M 2024
GLM-4.7-Flash 30B - - Free Free 2025
GLM-4.6V - 128K - ¥1/1M ¥3/1M -

Model Capabilities

GLM-4.7 (Current Flagship)

Strengths:

Best For:

GLM-5 (New Release)

Improvements over GLM-4.7:

Trade-offs:

GLM-4.5-Air (Cost Optimized)

Strengths:

Best For:

Context Window Evolution

Version Context Notes
GLM-4.5 128K Baseline
GLM-4.6 200K Upgraded from 128K
GLM-4.7 200K Maintained from 4.6
GLM-5 TBD Expected 200K+

Context Equivalents:


API Reference

Base URLs

Platform Base URL Use Case
Z.ai International (Standard) https://api.z.ai/api/paas/v4/ OpenAI-compatible API
Z.ai International (Anthropic) https://api.z.ai/api/anthropic Anthropic-compatible
BigModel China (Standard) https://open.bigmodel.cn/api/paas/v4/ OpenAI-compatible API
BigModel China (Anthropic) https://open.bigmodel.cn/api/anthropic Anthropic-compatible
Coding Plan /api/coding/paas/v4 Subscription-specific endpoint

Authentication

Bearer Token (API Key)

curl -X POST "https://api.z.ai/api/paas/v4/chat/completions" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "glm-4.7-flash",
    "messages": [{"role": "user", "content": "Hello"}],
    "max_tokens": 4096
  }'

Anthropic-Compatible Format

curl -X POST "https://open.bigmodel.cn/api/anthropic/v1/messages" \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "glm-4.7",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hello"}]
  }'

OpenAI SDK Example

from openai import OpenAI

client = OpenAI(
    api_key="your-zai-api-key",
    base_url="https://api.z.ai/api/paas/v4/",
)

response = client.chat.completions.create(
    model="glm-4.7-flash",
    messages=[
        {"role": "user", "content": "Write a Python function to parse CSV"}
    ],
    max_tokens=4096,
)

print(response.choices[0].message.content)

Anthropic SDK Example

import anthropic

client = anthropic.Anthropic(
    api_key="your-zai-api-key",
    base_url="https://open.bigmodel.cn/api/anthropic"
)

message = client.messages.create(
    model="glm-4.7",
    max_tokens=4096,
    messages=[
        {"role": "user", "content": "Write a Python function"}
    ]
)

print(message.content[0].text)

Environment Variables

For Claude Code

macOS/Linux:

export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"
export ANTHROPIC_API_KEY="your-zai-api-key"

Windows PowerShell:

$env:ANTHROPIC_BASE_URL = "https://open.bigmodel.cn/api/anthropic"
$env:ANTHROPIC_API_KEY = "your-zai-api-key"

Windows CMD:

set ANTHROPIC_BASE_URL=https://open.bigmodel.cn/api/anthropic
set ANTHROPIC_API_KEY=your-zai-api-key

For OpenAI-compatible tools

export OPENAI_BASE_URL="https://api.z.ai/api/paas/v4/"
export OPENAI_API_KEY="your-zai-api-key"

Available Models (for API calls)

Model ID Tier Description
glm-5 Pro/Max Latest flagship model
glm-5-code Pro/Max Coding-optimized GLM-5
glm-4.7 All Current stable flagship
glm-4.6 All Previous flagship
glm-4.5 All Mature model
glm-4.5-air All Cost-optimized
glm-4.7-flash Free tier Fast, limited context
glm-4.5-flash Free tier Even faster, more limited

Rate Limits & Quotas

Understanding the 5-Hour Rolling Window

How it works:

  1. The system tracks all prompt usage within a sliding 5-hour window
  2. Quota used 5+ hours ago automatically releases
  3. No fixed reset times (unlike “daily” or “monthly” quotas)
  4. Dynamic recovery based on consumption patterns

Example:

Quota Tables

5-Hour Window Limits

Plan Prompts per 5 Hours
Lite ~120 prompts
Pro ~600 prompts
Max ~2,400 prompts

Estimated Monthly Limits

Plan Monthly (Estimated) Notes
Lite ~18,000 prompts 120 × 6 windows/day × 25 days
Pro ~90,000 prompts 600 × 6 windows/day × 25 days
Max ~360,000 prompts 2,400 × 6 windows/day × 25 days

Note: These are estimates based on continuous usage. Actual limits depend on usage patterns.

MCP Tool Limits (Monthly)

Plan MCP Calls/Month Tools Included
Lite 100 Vision, Web Search, Web Reader
Pro 1,000 All MCP tools
Max 4,000 All MCP tools + priority

Undocumented/Unknown Limits

The following information is NOT publicly documented:

Metric Status Notes
RPM (Requests Per Minute) Undocumented No official numbers
TPM (Tokens Per Minute) Undocumented No official numbers
Concurrent Requests Partially documented Flash: 1, others: unclear
Daily Hard Caps Appears to be none Only 5-hour window matters

Peak Hour Issues (Known)

Issue Details Mitigation
Slowdowns Weekdays 15:00-18:00 Use off-peak hours
Rate Limiting “并发限流” errors Upgrade to Max tier
Resource tension “算力资源阶段性紧张” Enable auto-renewal

Capacity Measures (Since January 23, 2026)


Integrations

Supported Tools

Z.ai GLM Coding Plan is compatible with 10+ mainstream coding tools:

Tool Integration Method Difficulty
Claude Code Anthropic-compatible API Easy
Cursor OpenAI-compatible API Easy
Cline OpenAI-compatible API Easy
Roo Code OpenAI-compatible API Easy
OpenCode Native support Easy
Codex CLI Custom integration Medium
Kilo Code Custom integration Medium
Continue OpenAI-compatible API Easy

Claude Code Integration

Step 1: Set Environment Variables

# Mac/Linux
export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"
export ANTHROPIC_API_KEY="your-zai-coding-plan-api-key"

# Windows PowerShell
$env:ANTHROPIC_BASE_URL = "https://open.bigmodel.cn/api/anthropic"
$env:ANTHROPIC_API_KEY = "your-zai-coding-plan-api-key"

Step 2: Configure Model

In .claude/settings.json:

{
  "provider": "anthropic",
  "model": "glm-4.7"
}

Available Models for Claude Code:

Cursor Integration

Settings → API Providers → Custom

{
  "baseUrl": "https://api.z.ai/api/paas/v4/",
  "apiKey": "your-api-key",
  "model": "glm-4.7"
}

Cline Integration (VS Code)

Settings JSON:

{
  "cline.apiUrl": "https://api.z.ai/api/paas/v4/",
  "cline.apiKey": "your-api-key",
  "cline.model": "glm-4.7"
}

Roo Code Integration

Configuration:

{
  "provider": "custom",
  "baseUrl": "https://api.z.ai/api/paas/v4/",
  "apiKey": "your-api-key",
  "model": "glm-4.7"
}

Competitive Analysis

Chinese Market Comparison

Provider Lite Pro Max Notes
Zhipu GLM ¥49/m ¥149/m ¥469/m 2.7M paid users
Alibaba Qwen ¥40/m* ¥200/m N/A qwen3-coder-plus
Moore Threads ¥120/q ¥600/q ¥1200/q Full-stack domestic
Volcano Ark ¥9.9/m* ¥49.9/m* N/A ByteDance, 50% off 3-month

*First-month promotional pricing

International vs US Providers

Provider Plan Price 5-Hr Quota Value
Z.ai GLM Pro Pro $30/m ~600 $0.05/prompt
Claude Pro Pro $20/m ~40 $0.50/prompt
Claude Max Max ~$40-60/m ~200 ~$0.25/prompt
OpenAI GPT-4 Plus $20/m Token-based Varies

Performance Comparison (SWE Benchmark)

Model SWE Score Context Notes
Claude Opus 4.5 0.809 200K Best in class
Claude Sonnet 4.5 0.772 200K Excellent balance
GPT-5.2 0.80 - OpenAI flagship
GLM-5 ~0.75+ TBD Zhipu latest
GLM-4.7 0.68 200K Zhipu stable
Gemini 2.5 Pro 0.638 - Google

Known Issues & Workarounds

Issue #1: Undocumented Concurrency Limit

Description:

Reported In:

Workaround:

// Implement queue-based request handling
class GLMRequestQueue {
  constructor() {
    this.queue = [];
    this.processing = false;
  }

  async add(request) {
    return new Promise((resolve, reject) => {
      this.queue.push({ request, resolve, reject });
      this.process();
    });
  }

  async process() {
    if (this.processing || this.queue.length === 0) return;

    this.processing = true;
    const { request, resolve, reject } = this.queue.shift();

    try {
      const result = await fetch(request);
      resolve(result);
    } catch (error) {
      reject(error);
    } finally {
      this.processing = false;
      this.process(); // Process next
    }
  }
}

Issue #2: Peak Hour Slowdowns

Description:

Workarounds:

  1. Schedule heavy work for off-peak hours (before 15:00, after 18:00)
  2. Upgrade to Max tier - guaranteed “no lag” during peak
  3. Enable auto-renewal - more stable resource allocation
  4. Use retry logic with exponential backoff
async function callGLMWithRetry(request, maxRetries = 3) {
  for (let i = 0; i < maxRetries; i++) {
    try {
      return await fetch(request);
    } catch (error) {
      if (error.status === 429 && i < maxRetries - 1) {
        const delay = Math.pow(2, i) * 1000; // 1s, 2s, 4s
        await new Promise(r => setTimeout(r, delay));
        continue;
      }
      throw error;
    }
  }
}

Issue #3: GLM-5 High Token Consumption

Description:

Workaround:

const TASK_COMPLEXITY = {
  simple: { model: 'glm-4.5-air', threshold: 0.3 },
  medium: { model: 'glm-4.7', threshold: 0.7 },
  complex: { model: 'glm-5', threshold: 1.0 }
};

function selectModelForTask(complexity) {
  if (complexity < 0.3) return 'glm-4.5-air';
  if (complexity < 0.7) return 'glm-4.7';
  return 'glm-5';
}

Issue #4: Daily Purchase Limits

Description:

Workarounds:

  1. Try early in the day - quota refreshes at 10:00
  2. Enable auto-renewal - unaffected by daily limits
  3. Purchase quarterly/yearly - lock in longer term

Common Error Messages

Error Meaning Solution
并发限流 Concurrent request limit hit Reduce concurrency, wait
Quota exceeded 5-hour window limit reached Wait for quota recovery
API key invalid Wrong key or endpoint Verify key matches platform
Model not available Model not in your tier Upgrade or use different model
429 Too Many Requests Rate limit hit Implement backoff retry

Historical Changes

February 12, 2026 - Price Increase

Change Before After
Lite (Intl) Lower $10/month
Pro (Intl) Lower $30/month
Max (Intl) Lower $80/month
First-purchase discount Available Cancelled
Existing subscribers - Grandfathered

Impact: 30%+ price increase across all tiers

January 23, 2026 - Capacity Constraints

Change Detail
Daily sales limit Reduced to 20% of capacity
Daily refresh 10:00 AM
Auto-renewal exemption Unaffected by limits
Enforcement Crackdown on malicious traffic

December 2025 - User Milestone

October 2025 - Enterprise Launch


Community Tools

OpenCode GLM Quota Monitor

Repository: github.com/guyinwonder168/opencode-glm-quota

Features:

Official SDKs

Language Package/Link
Python pip install zhipuai
Java github.com/zai-org/z-ai-sdk-java
MCP Server npm package @z_ai/mcp-server
OpenAI Compatible Use standard OpenAI SDK with custom base_url

Third-Party Providers

Provider GLM Models Notes
SophNet GLM-4.7 Best throughput (175.93 tok/s)
UCloud GLM-4.7 Good latency
七牛云 (Qiniu) GLM-4.7 99.75 tokens/s
PPIO GLM-4.7 100% reliability, 50.47 tok/s

Cross-References

Internal Project Documentation

Document Description Location
Z.ai Coding Subscription Quick reference for tiers, limits, API docs/reference/zai-coding-subscription.md
Model Mapping Internal model mapping configuration docs/features/model-mapping.md
Model Routing Complexity-aware routing to GLM models docs/features/model-routing.md
Getting Started Setup guide for Z.ai integration docs/user-guide/getting-started.md
Configuration Environment variables and api-keys.json docs/user-guide/configuration.md

Configuration Files

File Purpose
config/pricing.json Token pricing for all GLM models
model-routing.json Model routing tiers and fallbacks
api-keys.json API keys and baseUrl configuration

External Documentation

Resource URL
Z.ai International Docs https://docs.z.ai/devpack/overview
Z.ai Quick Start https://docs.z.ai/devpack/quick-start
BigModel China Docs https://docs.bigmodel.cn/cn/coding-plan/overview
Z Code User Guide https://zhipu-ai.feishu.cn/wiki/VpgrwtBcyiU59zk9fMEcm2sFnee
Z Code Tutorial https://blog.csdn.net/YellowSun24/article/details/156856512

Key Management URLs

Purpose URL
API Keys (International) https://z.ai/manage-apikey/apikey-list
Subscriptions (International) https://z.ai/manage-apikey/subscription
API Keys (China) https://open.bigmodel.cn/apikey
Dashboard (International) https://z.ai/dashboard
Dashboard (China) https://open.bigmodel.cn

Quick Reference Card

Environment Variables

# Anthropic-compatible (recommended for Claude Code)
export ANTHROPIC_BASE_URL="https://open.bigmodel.cn/api/anthropic"
export ANTHROPIC_API_KEY="your-key-here"

# OpenAI-compatible
export OPENAI_BASE_URL="https://api.z.ai/api/paas/v4/"
export OPENAI_API_KEY="your-key-here"

Model Selection Guide

Task Complexity Recommended Model Tier Required
Simple completion glm-4.5-air All
Standard coding glm-4.7 All
Complex reasoning glm-4.7 All
Very complex glm-5 Pro/Max
Code specialist glm-5-code Pro/Max

Tier Selection Guide

Use Case Recommended Tier
Personal projects Lite
Professional dev Pro
Team/enterprise Max
High concurrency Max
Peak hour usage Max

This knowledge base is maintained as a living document. Last comprehensive research: February 21, 2026.


Sources Used

This document aggregates information from:

For the most current information, always check official sources at z.ai or open.bigmodel.cn.


Expanded Competitive Analysis (2026 Research)

Chinese AI Coding Assistants - Detailed Comparison

Alibaba Qwen (通义千问)

Product Price Key Features
Qwen3-Coder-Next Free (Apache 2.0) 80B MoE (3B active), 262K→1M context
Tongyi Lingma ¥59/m enterprise 50+ languages, cloud service integration
API Pricing ¥4/1M input, ¥16/1M output 50-60% cheaper than Claude

Strengths:

ByteDance (Doubao 豆包)

Product Price Key Features
Trae Solo 2.0 Competitive Full-stack dev (PRD→deployment)
Doubao Programming ¥1.20/1M input, ¥8/1M output Lowest pricing in China
General Pro ¥0.0008/1K tokens 62.7% cost reduction

Strengths:

Market Comparison Table

Provider Model Price (USD/1M tokens) Context Open Source
DeepSeek V3 V3 $0.27 input / $1.10 output 128K Yes
Alibaba Qwen Qwen3-Coder ~$0.60 input / ~$2.40 output 1M Yes (Apache 2.0)
Zhipu GLM GLM-4.7 $0.60 input / $2.20 output 200K Yes
Baidu Qianfan Qwen3-Coder ¥4 input / ¥16 output 1M Partial
Claude Sonnet 4.6 $3 input / $15 output 200K No

Key Finding: Chinese models are 5-53x cheaper than Western competitors while maintaining competitive performance.


Step-by-Step Integration Guides

Cursor IDE - Complete Setup

Prerequisites

Step 1: Get Your API Key

  1. Visit https://z.ai or https://www.bigmodel.cn/glm-coding
  2. Go to Personal Center → API Keys
  3. Create a new API Key
  4. Important: Use the Coding Plan专属 API Key (format: sk-sp-xxxxx)
  5. Do NOT use the general API Key (format: sk-xxxxx)

Step 2: Configure Cursor

  1. Open Cursor IDE
  2. Go to Settings → Models (or press Ctrl+,)
  3. Under API Providers, select Custom or OpenAI Compatible
  4. Configure as follows:
OpenAI API Key: [Your sk-sp-xxxxx key]
Base URL: https://open.bigmodel.cn/api/anthropic
Model: glm-4.7 (or glm-5 for Pro/Max subscribers)

Step 3: Verify Configuration

Test with a simple prompt:

Can you write a Python function to calculate fibonacci numbers?

If successful, you should see GLM-4.7 responding.

Troubleshooting

Error Cause Solution
“Your Coding Plan might not include GLM-4.7” Wrong API key or tier Use sk-sp-xxxxx key, verify subscription
“Invalid API key” Wrong key format Ensure Coding Plan key, not general API key
“Rate limit exceeded” Quota exhausted Wait for 5-hour window recovery

Cline (VS Code Extension) - Complete Setup

Prerequisites

Step 1: Install Cline

  1. Open VS Code
  2. Press Ctrl+Shift+X to open Extensions
  3. Search for “cline”
  4. Click Install

Step 2: Configure Cline

  1. Click the Cline icon in the sidebar (or press Ctrl+Shift+A)
  2. Click the Settings (gear icon)
  3. Select “Use your own API Key”
  4. Configure as follows:
Setting Value
API Provider OpenAI Compatible
Base URL https://open.bigmodel.cn/api/coding/paas/v4
API Key Your Zhipu API Key (sk-sp-xxxxx)
Model ID glm-4.7 (custom)
Context Window Size 204800
Support Images Disable for text-only tasks

Step 3: Advanced Configuration

For optimal performance with Cline:

{
  "apiProvider": "openai",
  "baseUrl": "https://open.bigmodel.cn/api/coding/paas/v4",
  "apiKey": "your-key-here",
  "modelId": "glm-4.7",
  "contextLength": 204800,
  "temperature": 0.7,
  "maxTokens": 8192
}

Roo Code - Complete Setup

Prerequisites

Step 1: Configure Roo Code

  1. Open VS Code with Roo Code installed
  2. Open Settings → search for “Roo Code”
  3. Configure API settings:
{
  "rooCode.apiProvider": "openai",
  "rooCode.apiKey": "your-sk-sp-xxxxx-key",
  "rooCode.baseUrl": "https://api.z.ai/api/paas/v4/",
  "rooCode.model": "glm-4.7"
}

Step 2: Alternative Method (Environment Variables)

# Set environment variables
export OPENAI_API_KEY="your-sk-sp-xxxxx-key"
export OPENAI_BASE_URL="https://api.z.ai/api/paas/v4/"

# Restart VS Code for changes to take effect

Claude Code - Automated Setup

Using the Setup Helper

Z.ai provides an automated configuration tool:

npx @z_ai/coding-helper

Follow the prompts:

  1. Select Coding Plan: China version (中国版)
  2. Enter your API Key (sk-sp-xxxxx)
  3. Select Coding Tool: Claude Code / Roo Code / Cursor / Cline
  4. Select MCP Config: Select all or specific tools

Manual Configuration

For Windows (C:\Users\<username>\.claude\settings.json):

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "your_zhipu_api_key",
    "ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
    "API_TIMEOUT_MS": "3000000",
    "CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": 1,
    "ANTHROPIC_DEFAULT_OPUS_MODEL": "glm-5",
    "ANTHROPIC_DEFAULT_SONNET_MODEL": "glm-4.7",
    "ANTHROPIC_DEFAULT_HAIKU_MODEL": "glm-4.5-air"
  }
}

For macOS/Linux (~/.claude/settings.json):

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://open.bigmodel.cn/api/anthropic",
    "ANTHROPIC_API_KEY": "your_zhipu_api_key"
  }
}

Data Privacy & Security

Privacy Policy Information

Z.ai (International Platform)

Aspect Details
Location Singapore-based services
Data Storage Claims no content storage for API users
Data Processing Real-time processing, no server saving
Enterprise Separate Data Processing Addendum applies

Key Statement from Z.ai:

“We do not store content users provide or generate while using our services, including text prompts, images, or other input data.”

BigModel.cn (China Platform)

Aspect Details
Privacy Policy https://bigmodel.cn/dev/howuse/privacypolicy
Provider Beijing Zhipu Huazhang Technology Co., Ltd.
Effective Date May 20, 2025
Data Categories Essential Information vs Optional Information

Data Types Collected:

User Rights:

Data Retention (Unknown/Undocumented)

Information Type Status Notes
API Request Data Retention ❌ Undocumented No official statement found
Training Data Usage ❌ Undocumented Unclear if API data trains models
Data Deletion Policy ⚠️ Partial Available via privacy policy
Zero Data Retention (ZDR) ❌ Not specified No ZDR option explicitly documented

Recommendations for Privacy-Conscious Users

  1. Review Privacy Policy Directly: https://bigmodel.cn/dev/howuse/privacypolicy
  2. Contact Enterprise Sales: For formal Data Processing Addendum
  3. Check Data Residency: China-based vs Singapore-based options
  4. Consider Local Deployment: For sensitive data (CodeGeeX offers this)

Reliability & SLA Information

SLA Status

Aspect Status Details
Public SLA Document ❌ Not Found No official SLA published
Enterprise SLA ⚠️ Contact Required Available for enterprise customers
Uptime Metrics ❌ Not Published No public availability stats
Status Page ❌ Not Found No official status page located

Known Reliability Issues

Peak Hour Performance

Time Period Issue Severity
Weekdays 15:00-18:00 Slowdowns, rate limiting Medium-High
High demand periods Concurrent request errors Medium

API Error Handling

The Z.ai Python SDK documents these error types:

Error Code Error Type Description
400 InvalidRequestError Invalid request parameters
401 AuthenticationError Authentication failures
429 APIReachLimitError Rate limit exceeded
500 APIInternalError Internal server errors
503 APIServerFlowExceedError Server overload

Incident History (2025-2026)

Date Incident Resolution
No major incidents documented - -

Note: Unlike OpenAI and Google Gemini (which had major outages in Dec 2025/Jan 2026), no specific Zhipu AI service-wide outages were documented in the search results.

Reliability Best Practices

  1. Implement Retry Logic: Use exponential backoff for 429/500 errors
  2. Monitor Quota: Track 5-hour window usage to avoid exhaustion
  3. Off-Peak Scheduling: Schedule heavy work outside 15:00-18:00
  4. Max Tier for Production: Consider upgrading for priority access
  5. Fallback Models: Implement model fallback chains

Daily Purchase & Availability Guide

Current Availability Status (2026)

Metric Status Details
Daily Sales 20% of capacity Since January 23, 2026
Refresh Time 10:00 AM daily Quota replenishment
Auto-Renewal Unaffected Bypasses daily limits
Availability Limited “需求火爆” (High demand)

Purchase Strategy

Best Times to Purchase

  1. Early morning (10:00 AM sharp) - Daily quota refresh
  2. Mid-week (Tuesday-Thursday) - Lower competition
  3. Avoid: Weekends, month-start, Monday mornings

Securing Your Subscription

Strategy How
Enable Auto-Renewal Bypasses daily 20% limit
Buy Quarterly/Yearly Lock in pricing, avoid renewal hassles
Existing Subscriber Grandfathered at old pricing (pre-Feb 12)

“Sold Out” (售罄) Information

When subscriptions show as “sold out”:


Automated Setup Tool

Using @z_ai/coding-helper

Z.ai provides an official setup helper:

npx @z_ai/coding-helper

Interactive Prompts

Prompt Options Recommendation  
Select Coding Plan China version (中国版) International China version
API Key Enter sk-sp-xxxxx key Required  
Coding Tool Claude Code / Cursor / Cline / Roo Code Select your tool  
MCP Config All / Selective Select all for full features  

What the Tool Configures


Updated Quick Reference Card

All Endpoints Summary

Use Case Base URL Notes
Claude Code (Anthropic-compatible) https://open.bigmodel.cn/api/anthropic Recommended
OpenAI Compatible (Cursor/Cline) https://api.z.ai/api/paas/v4/ Most tools
Coding Plan Specific /api/coding/paas/v4 For subscription users
China Standard https://open.bigmodel.cn/api/paas/v4/ Chinese platform

API Key Formats

Format Purpose Platform
sk-sp-xxxxx Coding Plan Use this for coding assistants
sk-xxxxx Standard API General API use

Model Mapping by Task

Task Model Tier Notes
Simple completion glm-4.5-air All Cheapest
Standard coding glm-4.7 All Best value
Complex reasoning glm-4.7 All Good balance
Very complex glm-5 Pro/Max Best performance
Code specialist glm-5-code Pro/Max Coding optimized
Fast/free glm-4.7-flash Free tier 1 concurrent only

Last comprehensive update: February 21, 2026 @ 16:30 EST


Sources (Expanded List)

This document aggregates information from:

Specific Sources Referenced