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.
No Z.ai model matches your search.
Text 18
Prices per 1M tokens
zai/glm-5.3 | $1.4 | $4.4 | $0.26 | 1M |
|---|---|---|---|---|
zai/zai-glm-5.2 | $1.4 | $4.4 | $0.26 | 1M |
zai/glm-5v-turbo | $1.2 | $4 | $0.24 | 200K |
zai/glm-5.1 | $1.4 | $4.4 | $0.26 | 203K |
zai/glm-5-turbo | $1.2 | $4 | $0.24 | 200K |
zai/glm-5 | $1 | $3.2 | $0.2 | 203K |
zai/glm-4.7 | $0.6 | $2.2 | $0.11 | 205K |
zai/glm-4.7-flashx | $0.07 | $0.4 | $0.01 | 200K |
zai/glm-4.6v-flashx | $0.04 | $0.4 | $0.004 | 128K |
zai/glm-4.6v | $0.3 | $0.9 | $0.055 | 131K |
zai/glm-4.6 | $0.6 | $2.2 | $0.11 | 205K |
zai/glm-4.5v | $0.6 | $1.8 | $0.11 | 128K |
zai/glm-4.5 | $0.6 | $2.2 | $0.11 | 128K |
zai/glm-4.5-x | $2.2 | $8.9 | $0.45 | 128K |
zai/glm-4.5-airx | $1.1 | $4.5 | $0.22 | 128K |
zai/glm-4.5-air | $0.2 | $1.1 | $0.03 | 128K |
zai/glm-4-32b-0414-128k | $0.1 | $0.1 | — | 128K |
zai/glm-ocr | $0.0001/ page | — | — | 8K |
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)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.llmapi.ai/v1",
apiKey: process.env.LLMAPI_KEY,
});
const response = await client.chat.completions.create({
model: "zai/glm-5.3",
messages: [{ role: "user", content: "Hello" }],
});
console.log(response.choices[0].message.content);curl https://api.llmapi.ai/v1/chat/completions \
-H "Authorization: Bearer $LLMAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "zai/glm-5.3",
"messages": [{"role": "user", "content": "Hello"}]
}'Prices synced November 13, 2026.