YepAPI
AI API/Z.ai

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.

ModelInput / 1MOutput / 1MContext
GLM 5.3 Flash$0.22$0.741.0M
GLM 5.3 FlashX$0.55$1.851.0M
GLM 5$1.48$4.73205K
GLM 5 Turbo$1.77$5.91203K
GLM 5.3$2.07$6.501.0M
GLM 5.2$2.07$6.501.0M
GLM 5.1$2.07$6.50205K
GLM 5.3 Prime$4.14$13.001M

All GLM models

Start using Z.ai models in 30 seconds

Pay as you go, no subscriptions.

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

  1. Sign up at yepapi.com with Google or email — about 30 seconds.
  2. Open the dashboard and create an API key (it starts with yep_sk_).
  3. Call any Z.ai model with that key — the OpenAI-compatible /v1/ai/chat/completions endpoint for text models.
  4. 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").

Ready to use Z.ai models?

8 Z.ai models included with one API key.