Most free APIs give you either old models or heavily trimmed versions. Z.ai — the international platform of China’s Zhipu AI — is the exception to this rule: its fresh models of the GLM Flash line work there for free, fit for both chats and code. But this offer has non-obvious quirks that make beginners abandon it after the very first empty response. This article covers how to get a free key, why the models don’t show up in the catalog, how to configure the request properly, and how many requests the free tier sustains in practice.
What’s Free and How to Get It
On the international Z.ai platform, without any balance top-up, the models of the Flash line work — as of fall 2026 those are GLM-4.5-Flash and GLM-4.7-Flash. Registration requires no card, the key is created in the key management section, and the call is an ordinary POST request to a chat/completions endpoint compatible with the OpenAI SDK. The same set of free models is available on the Chinese platform open.bigmodel.cn, but the international one is simpler for most users.
There is also a free multimodal model — GLM-4.6V-Flash for working with images — but it is noticeably more capricious: community tests recorded frequent 429 restrictions after just the first requests. It’s too early to put it into a working pipeline, but it’s fine for a test scenario.
Quirk One: the Models Don’t Show Up in /models
The most frequent cause of “it doesn’t work”: a request for the model list doesn’t return the Flash versions. The catalog displays the paid GLM-4.5, GLM-4.6, GLM-4.7, GLM-5 and others, and there are no free rows. This is not a bug — nobody bothers to showcase the free routes. The call works directly by the model identifier, without a check through /models:
curl https://api.z.ai/api/paas/v4/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"messages": [{"role": "user", "content": "Reply with one word: working?"}]
}'Through the OpenAI SDK it’s the same thing — base URL and key, the model as a string:
from openai import OpenAI
client = OpenAI(
base_url="https://api.z.ai/api/paas/v4",
api_key="YOUR_KEY",
)
r = client.chat.completions.create(
model="glm-4.7-flash",
messages=[{"role": "user", "content": "Write a quicksort function in Python"}],
)
print(r.choices[0].message.content)So do exactly that: set the model as a string in the config and don’t rely on autodiscovery. Factor this behavior into monitoring as well — a model missing from the list doesn’t mean it’s unavailable.
Quirk Two: Reasoning Eats the Response Limit
GLM may switch on a reasoning mode (thinking) by default. In that case the model writes an extended chain of thoughts into a separate reasoning_content field, and if the output token limit is set small, the entire limit goes into the reasoning while the field with the final answer comes back empty. It looks like “the model broke,” although the setting is in your hands.
The solution is to disable reasoning explicitly in the request parameters when the task doesn’t require deliberation:
curl https://api.z.ai/api/paas/v4/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-4.7-flash",
"thinking": {"type": "disabled"},
"max_tokens": 500,
"messages": [{"role": "user", "content": "Summarize this text in two sentences: ..."}]
}'The rule is simple: summarization, classification, short answers — thinking off; complex code and logic tasks — thinking on and an adequate output token limit (not 100–200, but at least 1–2 thousand). If a response comes back with an empty content but a filled reasoning_content — you’ve just seen this trap with your own eyes.
Quirk Three: the Concurrent Request Limit
The free Flash models are capped at one parallel request. For a bot with a single user or a script with sequential processing that’s not a problem; for bulk sending, parallel workers and n8n pipelines with branching it’s a direct constraint. Plan a queue instead of parallelism, or give GLM Flash the role of a “solo executor” in the pipeline and hand bulk small tasks to platforms with generous quotas.
With sequential load things are better: per community load tests, the model calmly handled 20 back-to-back requests without a single error and sustained 60 requests per minute without blocks — a “request-response-request” flow works steadily as long as you don’t try to parallelize it artificially. No explicit daily ceilings for the free Flash models are published in the open documentation, so heavy periodic tasks are worth checking with your own test run.
Common Errors and What They Mean
| Symptom | Cause | Remedy |
|---|---|---|
| Empty content, text in reasoning_content | Thinking is on, the output token limit went into the reasoning | Disable thinking or raise max_tokens to 1000–2000 |
| 401 Unauthorized | Key from the other platform (the Chinese and international platforms are separate accounts) | Create the key on the same platform you’re making the request from |
| The model is missing from /models | Free routes aren’t published in the catalog | Call by ID directly — this is standard behavior |
| 429 on the very first requests | Parallel calls (the limit is one concurrent request) | A queue instead of a pool of workers; retries with a 1–2 second delay |
| The response is cut off mid-code | max_tokens smaller than the volume of the answer | Raise max_tokens; for code tasks — 2000+ |
This little table settles 90% of the beginner questions in community chats about “GLM not working.” If the symptom isn’t on the list — first repeat the request with thinking disabled and max_tokens 2000: after that only network problems or a change in the platform’s terms remain.
GLM Flash’s Place in the Toolkit
Going by practitioner feedback, the free GLM Flash is not a “toy”: the recent versions of the line handle code tasks well, and the platform’s subscription coding plan gives 30–35% more work for the same money than competitors’ and gained vision — the model understands interface screenshots, which matters for UI work. But the line still doesn’t provide a direct counterpart to the Anthropic and OpenAI flagships: on the hardest tasks the difference is noticeable, and reviews calling GLM “the second model for routine” are honest. The overall picture of pricing, and when a flagship subscription beats paying for tokens, is covered in the article on Claude’s pricing tiers without illusions.
In vibe coding the GLM models work paired with the desktop agent Zcode from the same platform, but the API route is available for free too: any OpenAI-compatible tool (Aider, Cline, n8n, your own script) connects with three lines of configuration. To fit Z.ai into a broader provider map, the current directory of free LLM APIs helps, and the technique of distributing tasks across several services is in the breakdown of assembling a free pipeline of limits, where GLM Flash takes the code-layer role.
To sum up: a key in a minute, models by ID, reasoning switched off for short tasks, concurrency kept at exactly one. With these four rules GLM Flash works stably and for free — practice shows hundreds of requests a day without blocks. The terms are as of fall 2026 — before production, verify them against the platform’s official pages.
