inference-providers

Z.ai GLM Coding Plan

subscription

DocsConsole

Getting credentials

plan-key

api_key via header (header Authorization: Bearer)

Environment: ZAI_CODING_PLAN_API_KEY

Subscribe at z.ai/subscribe; plan keys are distinct from normal API keys and only work on coding-plan endpoints.

Credentials docs

Endpoints

IDURLProtocolAuth
coding-chat-completionshttps://api.z.ai/api/coding/paas/v4/chat/completionsopenai-chatany
coding-anthropichttps://api.z.ai/api/anthropicanthropic-messagesany
coding-responseshttps://api.z.ai/api/v1openai-responsesany

API surfaces

textstreaming

Plan

Price
$18 / monthly
Quota
Lite ~2000 credits/5h, 10000/week; Pro ~12000/5h; Max ~28000/5h
Notes
Credits-based since 2026-07-30. Includes GLM-5.3, GLM-5-Turbo, GLM-4.7; GLM-5.2/5.1 auto-route to GLM-5.3.
Docs
https://docs.z.ai/devpack/overview

Quirks

Models offered

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