GLM-4.7-Flash on Z.ai
Z.ai open platform Free API tier
The catch: Only GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free; GLM-5.3-Flash, GLM-5.x and the other models are paid. Rate limits are not public, and the terms forbid using outputs to train competing models.
| Access | Free API tier |
|---|---|
| Free limits | Input, cached input and output are free; rate limits are shown only in the console. Max output 128K tokens. |
| Modality | text, code |
| Credit card | Not required |
| Commercial use | Allowed |
| Trains on your data | No |
| Licence or terms | Z.ai Terms of Use + Additional Terms for API Services |
| Context window | 200,000 tokens |
| Model id | glm-4.7-flash |
| Base URL | https://api.z.ai/api/paas/v4 |
| Last checked | 8 Oct 2026 |
How to use GLM-4.7-Flash
It speaks the OpenAI API at https://api.z.ai/api/paas/v4, so the OpenAI SDK you already use works once you change the base URL and key.
curl https://api.z.ai/api/paas/v4/chat/completions -H "Authorization: Bearer $ZAI_API_KEY" -H "Content-Type: application/json" -d '{"model":"glm-4.7-flash","messages":[{"role":"user","content":"Hello"}]}'I want to use the free AI model "GLM-4.7-Flash" from Z.ai (model id: glm-4.7-flash) in my project. Please: 1. Check the provider docs and give me the exact steps to get a free API key. 2. Give me a minimal working example that reads the key from an environment variable. 3. Tell me the real free limits and any catch (commercial use, card, data use). Listed limits: Free · limits shown after sign-in. 4. If the same provider has a more generous free option, mention it.
Before you ship on it
- Only GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free; GLM-5.3-Flash, GLM-5.x and the other models are paid. Rate limits are not public, and the terms forbid using outputs to train competing models.
- Terms of Use cover use ‘for your own purposes, internal organizational use, or for the benefit of end users’; using the service or its outputs to develop models that compete with Z.ai is prohibited.
- Free tiers are shared capacity: treat the limits as a ceiling, not a promise, and keep a paid fallback.
Questions
Is GLM-4.7-Flash on Z.ai free?
Yes. Z.ai offers it as free api tier, with these limits: Free · limits shown after sign-in. No credit card is needed.
Can I use GLM-4.7-Flash on Z.ai commercially?
Yes, under Z.ai Terms of Use + Additional Terms for API Services. Check the current terms before you ship.
How do I start with GLM-4.7-Flash on Z.ai?
It speaks the OpenAI API at https://api.z.ai/api/paas/v4, so the OpenAI SDK you already use works once you change the base URL and key.
Source: docs.z.ai/guides/overview/pricing, checked 8 Oct 2026.