GLM API pricing & API key
Every Z.ai model on one page: 8 models, from $0.22 to $4.14 per 1M input tokens. Get one GLM API key from YepAPI and pay per request — no subscription, no Z.ai account or waitlist.
Takes 30 seconds.
GLM API pricing (8 models)
YepAPI prices per 1M tokens (text) or per output (media), cheapest first. Updated October 25, 2026.
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
| GLM 5.3 Flash | $0.22 | $0.74 | 1.0M |
| GLM 5.3 FlashX | $0.55 | $1.85 | 1.0M |
| GLM 5 | $1.48 | $4.73 | 205K |
| GLM 5 Turbo | $1.77 | $5.91 | 203K |
| GLM 5.3 | $2.07 | $6.50 | 1.0M |
| GLM 5.2 | $2.07 | $6.50 | 1.0M |
| GLM 5.1 | $2.07 | $6.50 | 205K |
| GLM 5.3 Prime | $4.14 | $13.00 | 1M |
All GLM models
GLM 5.3 Prime
Text GenerationAccess GLM 5.3 Prime through one API key. Z.ai GLM 5.3 High-Speed Flagship.
GLM 5.3
Text GenerationAccess GLM 5.3 through one API key. Z.ai GLM 5.3 Reasoning for Engineering.
GLM 5.3 Flash
Text GenerationAccess GLM 5.3 Flash through one API key. Z.ai Cheapest Multimodal GLM.
GLM 5.3 FlashX
Text GenerationAccess GLM 5.3 FlashX through one API key. Z.ai GLM 5.3 Flash at 200 tok/s.
GLM 5.2
Text GenerationAccess GLM 5.2 through one API key. Z.ai's latest flagship with 1M context.
GLM 5.1
Text GenerationAccess GLM 5.1 through one API key. Zhipu AI's latest bilingual model.
GLM 5
Text GenerationAccess GLM 5 through one API key. Balanced bilingual model from Zhipu AI.
GLM 5 Turbo
Text GenerationAccess GLM 5 Turbo through one API key. Fast bilingual model from Zhipu AI.
Z.ai API through YepAPI
YepAPI provides access to Z.ai models through a unified API endpoint. Instead of managing a separate Z.ai API key and billing account, use your single YepAPI key to call any Z.ai model alongside 277 other AI models from OpenAI, Anthropic, Google, Meta, and more.
All Z.ai models use the same OpenAI-compatible request format. Switch between models by changing the model parameter — no SDK changes, no code rewrites. Pay per token with no monthly minimums.
How to get a GLM API key
- Sign up at yepapi.com with Google or email — about 30 seconds.
- Open the dashboard and create an API key (it starts with yep_sk_).
- Call any Z.ai model with that key — the OpenAI-compatible /v1/ai/chat/completions endpoint for text models.
- Top up any amount; usage is billed per request.
GLM API FAQ
- How much does the GLM API cost?
- Z.ai models cost from $0.22 to $4.14 per 1M input tokens through YepAPI. The cheapest is GLM 5.3 Flash ($0.22 in / $0.74 out per 1M). You pay per request with no monthly fee.
- How do I get a GLM API key?
- Sign up at yepapi.com (about 30 seconds), open the dashboard and create an API key. The one key works for all 8 Z.ai models and 277 models from other providers — no separate Z.ai account.
- What is the cheapest GLM model?
- GLM 5.3 Flash — $0.22 in / $0.74 out per 1M.
- Which GLM model has the largest context window?
- GLM 5.3, with 1.0M tokens of context.
- Can I use the GLM API with the OpenAI SDK?
- Yes. Set the base URL to https://api.yepapi.com/v1/ai, use your YepAPI key, and pass the Z.ai model ID (for example "z-ai/glm-5.3-prime").