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

Protocols

Openai chat

Organizations

OrganizationFamiliesModels
Zhipu AI13

Models

List view / Table view

3 of 3 model versions

ModelOrganizationFamilyProvider model IDContextMax outputInputOutputReasoningTool callStructuredTemperatureWeightsPricingReleasedUpdated
GLM-5.2
zhipuai/glm/5-2
Zhipu AIGLM
glm-5.2
Openai chat · Streaming
1M131K
Text
Text
YesYesYesYesOpen weight
input $0/M · cache read $0/M
output $0/M · cache write $0/M
2026-06-132026-07-22
GLM-5-Turbo
zhipuai/glm/5-turbo
Zhipu AIGLM
glm-5-turbo
Openai chat · Streaming
200K131K
Text
Text
YesYesYesYesClosed
input $0/M · cache read $0/M
output $0/M · cache write $0/M
2026-03-162026-03-20
GLM-4.7
zhipuai/glm/4-7
Zhipu AIGLM
glm-4.7
Openai chat · Streaming
205K131K
Text
Text
YesYesYesYesOpen weight
input $0/M · cache read $0/M
output $0/M · cache write $0/M
2025-12-222025-12-23

FAQ