inference-providers

Z.ai

first_party

DocsConsolePricing

Getting credentials

api-key

api_key via header (header Authorization: Bearer)

Environment: ZAI_API_KEY

z.ai console → API Keys. Key format id.secret; JWT HS256 derivation also supported.

Credentials docs

Endpoints

IDURLProtocolAuth
chat-completionshttps://api.z.ai/api/paas/v4/chat/completionsopenai-chatany

API surfaces

textstreaming

Quirks

Models offered

ModelWire IDEndpointStatusReasoning
zai/glm-4-6glm-4.6chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-1glm-5.1chat-completionsgatoggle · default on · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3glm-5.3chat-completionsgaalways_on · default on · mandatory · returns reasoning_content · round-trips reasoning_content
zai/glm-5-3-flashglm-5.3-flashchat-completionsgatoggle · default on · mandatory · returns reasoning_content