Skip to main content

ZAI / BigModel

Status: ✅ Supported

Zhipu AI (ZAI) BigModel platform provides access to GLM (General Language Model) series.

Supported Models

Model IDNameContext
glm-4.5GLM-4.5131K
glm-4.5-airGLM-4.5-Air131K
glm-4.5-flashGLM-4.5-Flash131K
glm-4.5vGLM-4.5V64K
glm-4.6GLM-4.6204K
glm-4.6vGLM-4.6V128K
glm-4.7GLM-4.7204K
glm-4.7-flashGLM-4.7-Flash200K
glm-4.7-flashxGLM-4.7-FlashX200K
glm-5GLM-5204K
glm-5.1GLM-5.1200K
glm-5v-turboglm-5v-turbo200K

Setup

1. Get API Key

  1. Visit BigModel Platform
  2. Create or log in to your account
  3. Go to API KeysCreate API Key
  4. Copy the key

2. Add to Clawrium

clm provider add my-zai --type zai

You will be prompted to enter your API key securely.

3. Select Model

Choose a default model during setup:

  • glm-4 (general purpose)
  • glm-4-plus (enhanced)
  • glm-4-flash (fastest)

Configuration

# View provider details
clm provider list

# Change default model
clm provider edit my-zai --model glm-4-plus

# Update API key
clm provider edit my-zai --update-key

# Remove provider
clm provider remove my-zai

Pricing

ZAI offers competitive pricing, especially for the China region. Check BigModel pricing for current rates.

Benefits

  • China region: Optimized for China-based deployments
  • GLM models: Strong Chinese language support
  • Vision models: GLM-4V supports image understanding
  • Competitive pricing: Often cheaper than western providers

Usage in Agents

During agent onboarding:

clm agent configure my-agent
# Select my-zai when prompted for provider

Region Considerations

  • API endpoint: https://open.bigmodel.cn/api/paas/v4
  • Optimized for China region
  • May have higher latency from other regions

Troubleshooting

"Invalid API key"

  • Verify the key is active in BigModel console
  • Check account has available credits

"High latency"

  • Expected if connecting from outside China
  • Consider using a different provider for non-China deployments

Back to Providers