Free GLM (Z.ai / Zhipu) API
Z.ai's free GLM Flash models — GLM-4.5/4.6/4.7 Flash on a no-Chinese-phone international endpoint.
FreeLLMAPI is a free, open-source LLM API that routes across every provider with a real free tier. The GLM (Z.ai / Zhipu) models below are on the free tier of Zhipu AI — reachable through one OpenAI-compatible key, with automatic failover when a provider hits its rate limit.
Free GLM (Z.ai / Zhipu) models (2)
| Model | Context | Free limits | Capabilities |
|---|---|---|---|
| glm-4.7-flash | 131K | ~30M | tools |
| glm-4.6v-flash | 131K | ~30M | tools, vision |
How to use GLM (Z.ai / Zhipu) for free
- Install FreeLLMAPI — the open-source router (GitHub). It runs locally and keeps your keys on your machine.
- Add a free key for Zhipu AI on the Keys page — no credit card required.
- Point your OpenAI client at the local endpoint and pick a model:
from openai import OpenAI
# FreeLLMAPI runs locally; grab your unified key + endpoint on the Keys page.
client = OpenAI(base_url="http://localhost:3001/v1", api_key="freellmapi-...")
resp = client.chat.completions.create(
model="glm-4.7-flash",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
FAQ
Is the GLM (Z.ai / Zhipu) API really free?
Yes — these GLM (Z.ai / Zhipu) models run on genuine provider free tiers (on the free tier of Zhipu AI). Inference costs nothing; you only add a free provider key.
Do I need a credit card?
No. The providers here offer free tiers that work without a card. You add the free key once and FreeLLMAPI routes to it.
How do I call GLM (Z.ai / Zhipu) through FreeLLMAPI?
Install the open-source router, add the provider's free key on the Keys page, then point any OpenAI SDK at your local endpoint — see the code sample above.