GLM (Zhipu AI) Models
Access GLM-5 series models through AI Gateway — GLM-5.1, GLM-5.2, GLM-5.3 via one OpenAI-compatible API with per-token credit billing.
Zhipu AI's GLM-5 series is a strong open-family option for Chinese-English bilingual workloads and cost-sensitive production traffic. All tiers below are reachable through AI Gateway.
Available Models
| Model | Context | Best For |
|---|---|---|
glm-5.3 | 1M | Newest flagship |
glm-5.3-flash | 1M | Fast high-volume calls |
glm-5.2 | 1M | Balanced production default |
glm-5.1 | 200K | Stable previous generation |
Live per-model credit pricing is on the Models page.
Quick Start
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://your-domain.com/api/ai/v1"
)
response = client.chat.completions.create(
model="glm-5.3",
messages=[{"role": "user", "content": "用中文写一份接口设计文档。"}]
)
print(response.choices[0].message.content)
Replace
your-domain.comwith your AI Gateway site domain. Get your API key from the dashboard after sign-up.
Why through AI Gateway
- GLM + all major providers behind one key
- Bilingual strength for Chinese-English products
- Credit billing, no subscription
Related Pages
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
| Model | Context | Type |
|---|---|---|
glm-5.1 | 200K | chat |
glm-5.2 | 1M | chat |
glm-5.3 | 1M | chat |
glm-5.3-flash | 1M | chat |
Why through AI Gateway
- One unified interface: call every provider through a single OpenAI-compatible base URL
- One key: no per-vendor accounts; credits are shared and never expire
- Per-token billing: cache hits billed at steep discounts
- Flexible switching: change one string to move between models or vendors
Capabilities
4 shipping models, context windows from 200K to 1M tokens; tiers: balanced ×1, previous generation ×1, flagship ×1, light ×1.
Pricing & billing
Per-token credit billing; cache hits at steep discounts. Live rates on the Models pricing page — numbers intentionally not fixed here.
FAQ
How large is the context window of GLM (Zhipu AI)?
1,000,000 Token (1M)
How is it billed?
Per-token credit billing with cache-hit discounts. Live rates on the Models page.
Do I need a provider account?
No. One AI Gateway API key covers this model and every other model on the site.
About this data
Specs and prices come from the platform live catalog; performance figures from vendor or third-party publications. Updated 2026-10-13.
All Models
Each model has its own page with specs, official reference pricing, credit prices and code examples.
glm-5-turboglm-5glm-4.7-flashglm-4.7glm-4.6vglm-4.5vglm-4.5-airglm-4.5glm-4.6glm-5v-turboglm-5.3-primeglm-5.3-flashxglm-5.2glm-5.1glm-5.3glm-5.3-flashReady to build with Glm?
One API Key, every model. Transparent pay-as-you-go pricing with credits that never expire.
Create free account