Z.AI (GLM)
Free QuotasZhipu AI's global platform for the GLM model family. GLM-4.5-Flash and GLM-4.7-Flash are free, rate-limited models with strong coding performance, served through an OpenAI-compatible endpoint.
Rate Limit
Max Context
Cost
$0
.00
Quick Start
API Endpoint
https://api.z.ai/api/paas/v4
Z.AI (GLM) at a glance
-
Free tier: Permanent free tier
-
Sign-up: Account required, no card
-
Limits: ~1 request/second (Flash models)
-
Models: 3 free models listed
Example: Making Your First Request
from openai import OpenAI
client = OpenAI(
api_key="YOUR_ZAI_KEY",
base_url="https://api.z.ai/api/paas/v4"
)
response = client.chat.completions.create(
model="glm-4.6v-flash",
messages=[
{"role": "user", "content": "What makes the GLM Flash tier fast?"}
]
)
print(response.choices[0].message.content)
Free Models
| Model Name | ID | Context | Capabilities |
|---|---|---|---|
| GLM-4.6V-Flash (vision) |
glm-4.6v-flash
|
Vision |
|
| GLM-4.5-Flash |
glm-4.5-flash
|
128,000 |
|
| GLM-4.7-Flash |
glm-4.7-flash
|
128,000 |
|
Current Limits
Request Limits
-
Rate Limit~1 request/second (Flash models)
-
Daily Limit~1,000 requests/day (Flash tier)
Token Limits
Throughput
Monthly Cap
Key Features
Common Use Cases
Low-Cost Coding Assistants
Lightweight Chat Agents
High-Volume Prototyping
Known Limitations
- Free Flash tier capped near 1 request/second
- Flagship GLM-5.2 model requires a paid plan
- Free-tier limits have changed more than once in the past year — verify on docs.z.ai
Quick Start Guide
Create Account
Sign up at z.ai/chat with your email.
Get API Key
Open your profile menu, select API Keys, and create a new key.
Configure
Use the OpenAI SDK with base_url='https://api.z.ai/api/paas/v4' and model glm-4.5-flash or glm-4.7-flash.
Frequently Asked Questions
How do I get an API key?
Getting your Z.AI (GLM) API key is simple:
- Visit the official Z.AI (GLM) website
- Sign up for a free account (no credit card required)
- Navigate to the API section in your dashboard
- Generate your API key and start using it immediately
Are there free quotas?
Yes! Z.AI (GLM) offers a generous free tier with no credit card required. Check the provider's website for current terms and conditions regarding free tier availability and duration.
What happens if I exceed the free limits?
If you reach the rate limit, your requests will be temporarily throttled. The limits reset automatically after the specified time period. You can always monitor your usage in the provider's dashboard.
Is my data secure?
Z.AI (GLM) takes security seriously. All API communications are encrypted via HTTPS. Check their privacy policy and terms of service for detailed information about data handling and retention policies.
Make your first call to Z.AI (GLM)
Create a key on the official site and make your first call with the examples on this page. Free limits can change, so check them before you ship.