LLM API
Model provider20 modelsPrivacy policy

Z.ai

Z.ai serves 20 models on LLM API: 18 text models and 2 image models, all from Z.ai.

Models and prices

Prices when Z.ai serves the request.

Text 18

Prices per 1M tokens

Text models on Z.ai and their prices on LLM API
Z.aiGLM-5.3zai/glm-5.3$1.4$4.4$0.261M
Z.aiGLM 5.2zai/zai-glm-5.2$1.4$4.4$0.261M
Z.aiGLM-5V-Turbozai/glm-5v-turbo$1.2$4$0.24200K
Z.aiGLM-5.1zai/glm-5.1$1.4$4.4$0.26203K
Z.aiGLM-5-Turbozai/glm-5-turbo$1.2$4$0.24200K
Z.aiGLM-5zai/glm-5$1$3.2$0.2203K
Z.aiGLM-4.7zai/glm-4.7$0.6$2.2$0.11205K
Z.aiGLM-4.7 FlashXzai/glm-4.7-flashx$0.07$0.4$0.01200K
Z.aiGLM-4.6V FlashXzai/glm-4.6v-flashx$0.04$0.4$0.004128K
Z.aiGLM-4.6Vzai/glm-4.6v$0.3$0.9$0.055131K
Z.aiGLM-4.6zai/glm-4.6$0.6$2.2$0.11205K
Z.aiGLM-4.5Vzai/glm-4.5v$0.6$1.8$0.11128K
Z.aiGLM-4.5zai/glm-4.5$0.6$2.2$0.11128K
Z.aiGLM-4.5 Xzai/glm-4.5-x$2.2$8.9$0.45128K
Z.aiGLM-4.5 AirXzai/glm-4.5-airx$1.1$4.5$0.22128K
Z.aiGLM-4.5 Airzai/glm-4.5-air$0.2$1.1$0.03128K
Z.aiGLM-4 32B (0414-128k)zai/glm-4-32b-0414-128k$0.1$0.1—128K
Z.aiGLM-OCRzai/glm-ocr$0.0001/ page——8K

Image 2

Price per image

Image models on Z.ai and their prices on LLM API
Z.aiCogView-4zai/cogview-4$0.01/ imageGenerate
Z.aiGLM-Imagezai/glm-image$0.015/ imageGenerate

Send requests to Z.ai

Put zai/ before a model ID and the request goes to Z.ai. If Z.ai’s uptime over the last 5 minutes is below 90%, it goes to another provider of the model, unless it sends X-No-Fallback: true. Routing docs

Example: GLM-5.3

POST /v1/chat/completionsSet LLMAPI_KEY to your LLM API key.Chat Completions docs

import os

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llmapi.ai/v1",
    api_key=os.environ["LLMAPI_KEY"],
)

response = client.chat.completions.create(
    model="zai/glm-5.3",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Prices synced November 13, 2026.

You've been invited to LLM API

Top up $50 or more and the friend who invited you gets $20 in credits. We pay the $20; your credits stay yours. Referral terms

Sign up