Provider API
GLM (Z.AI) API: model pricing and setup
EasyAPI currently lists 4 public GLM (Z.AI) models. Call them with one API key and one base URL; usage is deducted from your balance and no subscription is required.
GLM (Z.AI) models and prices
4 models with public pricing · CNY
| Model | Input | Output |
|---|---|---|
| glm-5-turboZ.AI | ¥4.3956 / M | ¥14.652 / M |
| glm-5.2Z.AI | ¥3.148 / M | ¥11.018 / M |
| glm-5.3Z.AI | ¥5.991 / M | ¥20.9685 / MConditional rates — view model details |
| glm-5.3-flashZ.AI | ¥0.4 / M | ¥1.4 / MConditional rates — view model details |
Catalog snapshot:
Rates shown are for the public group. Caching, context tiers and resolution can change the final charge; check the model page and your usage record.
How to connect to the GLM (Z.AI) API
- Create a EasyAPI account and generate an API token in the console.
- Set the base URL to https://token.easyapi.com/v1 and use a model name from the price table above.
- Send one small request, check the response and the usage record, then move real traffic.
Request example
Example model: glm-5-turbo
curl https://token.easyapi.com/v1/chat/completions \
-H "Authorization: Bearer $EASYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5-turbo","messages":[{"role":"user","content":"Reply with one short greeting."}],"stream":false}'GLM (Z.AI) API questions
- How is the GLM (Z.AI) API billed?
- Pay as you go, with no subscription. Current public rates: glm-5-turbo ¥4.3956 / M; glm-5.2 ¥3.148 / M; glm-5.3 ¥5.991 / M. See the price table on this page for all rates and conditions.
- Can I call GLM (Z.AI) with the OpenAI SDK?
- For chat models, yes: set base_url to https://token.easyapi.com/v1, use a EasyAPI token as api_key and a catalog model name as model. For image, video and audio models, follow the endpoint and parameters on each model page.
- Is EasyAPI operated by GLM (Z.AI)?
- No. EasyAPI is a third-party model API platform (often called an API gateway or relay) that offers models from GLM (Z.AI) and other providers through one interface. Available models and prices are those in this public catalog.
- How do I start using the GLM (Z.AI) API?
- Create a EasyAPI account, generate an API token and top up your balance. You can also try a model in the online playground first and then copy the example.