China AI Hub China AI Hub

API / zai

zai API

Provider: zhipu-ai · Type: official

zai is an API by zhipu-ai, served at https://api.z.ai/api/paas/v4/chat/completions for official models, exposing GLM-5.2, GLM-5.3-Flash, GLM-5.3.

zai API
Image: AI-generated illustration (Seedream)
Last verified: · Data status: Current · Next review:
Key facts for zai API
Key factValue
Endpointhttps://api.z.ai/api/paas/v4/chat/completions
AuthenticationBearer API key
StreamingYes
Function callingYes
Tool callingYes
Structured outputUnknown
VisionYes
AudioUnknown
Regionsinternational, china
Cloud providersZ.ai, BigModel
Documentationhttps://docs.z.ai/

Context limits

Context limits for zai API
ModelInput limitOutput limit
glm-5.3 1,048,576 131,072
glm-5.3-flash 1,048,576 131,072

The Z.ai API (Zhipu’s international platform) serves the GLM family via an OpenAI-compatible Chat Completions endpoint at https://api.z.ai/api/paas/v4/chat/completions. GLM-5.3 additionally supports the OpenAI Responses protocol (base https://api.z.ai/api/v1) and the Anthropic Messages protocol (base https://api.z.ai/api/anthropic); the GLM Coding Plan uses https://api.z.ai/api/coding/paas/v4.

Authentication is a Bearer API key. Streaming is supported, with tool_stream: true for tool-streaming (recommended for Flash models). The China platform (BigModel, open.bigmodel.cn) is operated separately.

Sources

Data interpretation

Evidence types for zai API
FieldValueEvidence type
Endpointhttps://api.z.ai/api/paas/v4/chat/completionsOfficial
AuthenticationBearer API keyOfficial
CapabilitiesStreaming, Function calling, Tool calling, VisionOfficial
Models served3 models in the databaseChina AI Hub analysis

Evidence types: Official = vendor documentation or official pages. China AI Hub analysis = derived from the database itself. See the sourcing policy.

What is the zai API endpoint?

The zai API endpoint is https://api.z.ai/api/paas/v4/chat/completions.

How do you authenticate with the zai API?

Bearer API key.

What are the context limits of the zai API?

glm-5.3: 1,048,576 in / 131,072 out; glm-5.3-flash: 1,048,576 in / 131,072 out.

Does the zai API support function calling?

Yes — the zai API supports function calling.

Where does China AI Hub get its zai API data?

From 2 sources, last verified 2026-09-20.