AICredits logo
z-ai

Z.ai: GLM 5.1

z-ai/glm-5.1

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interactions, GLM-5.1 can work independently and continuously on...

Supported APIs

Chat API
Context
205K
Max output
Input / 1M
₹96.48
Cached / 1M
₹17.92
Output / 1M
₹303.23

Pricing

Token typeUSD / 1MINR / 1M
Input$0.966₹96.48
Cached inputprompt cache read$0.17917.92
Output$3.04₹303.23

INR prices include forex conversion. Billed per token in your wallet. See the cost calculator.

Quickstart

Call Z.ai: GLM 5.1 through the supported APIs shown above — just set the base URL and your AICredits key.

cURL — /v1/chat/completions
curl https://api.aicredits.in/v1/chat/completions \
  -H "Authorization: Bearer $AICREDITS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

New here? Follow the quickstart guide or browse all models.