What's free
GLM-4.5-Flash, GLM-4.7-Flash (text), and GLM-4.6V-Flash (vision) are officially listed as $0 cost (input, cached input, and output) on a permanent basis
Rate limits
Not specified with concrete RPM/TPM figures in public docs
The catch
Terms of Use prohibit using the service to "develop, train, or improve" competing algorithms or models — otherwise general use, including commercial, isn't restricted
Free models · sample
glm-4.7-flashglm-4.5-flashglm-4.6v-flashA sample of models reachable on the free tier — the live catalog changes. Pull the current set with GET https://api.z.ai/api/paas/v4//models.
Quickstart — chat completions
from openai import OpenAI
client = OpenAI(base_url="https://api.z.ai/api/paas/v4/", api_key="<YOUR_FREE_API_KEY>")
resp = client.chat.completions.create(
model="glm-4.7-flash",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)…or with curl:
curl https://api.z.ai/api/paas/v4//chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"glm-4.7-flash","messages":[{"role":"user","content":"Hello!"}]}'