Models/GLM
Text

GLM

by Z.ai

Z.ai GLM API access via CAPI — MIT-licensed MoE models with up to 200K context, leading open-weight coding benchmarks.

Capabilities

  • Chat
  • Coding
  • Tool use

Available models

Pass any of these IDs in the model field.

Model IDDetailPrice
glm-5200K context$0.40 / 1M input tokens
glm-5-air200K context$0.10 / 1M input tokens

Pricing starts at

$0.0001 / 1K tokens

Pay only for what you use. Each response returns the exact amount settled against your balance — no subscriptions, no minimums.

Quickstart

GLM · glm-5

cURL
curl https://capi.ai/api/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "glm-5",
    "messages": [{"role": "user", "content": "Hello"}]
  }'