Skip to main content
Gateway

Z.AI Coding Plan

Z.AI Coding Plan is a Gateway provider with 3 models across 3 offerings.

Access

API base URL
https://api.z.ai/api/coding/paas/v4
SDK
@ai-sdk/openai-compatible
Environment variables
ZHIPU_API_KEY

Models

List view / Table view

3 of 3 model versions

ModelFamilyProvider model IDProtocolStreamingOrganizationContextMax outputInputOutputReasoningTool callStructuredTemperatureWeightsPriceReleasedUpdated
GLM-5.2
zhipuai/glm-5.2
ZAZhipu AIGLM
glm-5.2
Openai chat
Yes
1M131K
YesYesYesYesOpen
input $0/M · output $0/M
cache read $0/M · cache write $0/M
2026-06-132026-08-06
GLM-5-Turbo
zhipuai/glm-5-turbo
ZAZhipu AIGLM
glm-5-turbo
Openai chat
Yes
200K131K
YesYesYesYesClosed
input $0/M · output $0/M
cache read $0/M · cache write $0/M
2026-03-162026-03-20
GLM-4.7
zhipuai/glm-4.7
ZAZhipu AIGLM
glm-4.7
Openai chat
Yes
205K131K
YesYesYesYesOpen
input $0/M · output $0/M
cache read $0/M · cache write $0/M
2025-12-222026-08-06

FAQ