Overview
Z.ai’s developer platform is separate from the chat site at chat.z.ai. Signing in to chat does not create an API key.
Get a key
- 1Register or sign in at z.ai/model-api.
- 2Optional: top up on the billing page if you want paid models. Some GLM models are free.
- 3Open the API Keys page and create a key.
- 4Copy the key. Z.ai lets you view it again later.
Cost. Some models are free; others are billed per token. A separate Coding Plan subscription exists with its own keys.
Add it to Loom
- 1Open Loom, then Providers in the menu, and choose Add provider.
- 2Pick Z.ai GLM (the search box finds it).
- 3Fill in the fields in the table below.
- 4Choose Connect. Loom checks the key and says how many models it found. If it cannot check, it says so, and you can Save anyway and try a message.
- 5Open the model chip below the message box and pick a model.
- Loom’s address is the pay-as-you-go one,
https://api.z.ai/api/paas/v4. - If you have a Coding Plan key, change Endpoint to
https://api.z.ai/api/coding/paas/v4.
| Field in Loom | What to put | Needed |
|---|---|---|
| API key | Paste the key you copied. Create one at z.ai → API keys. | Yes |
| Endpoint | https://api.z.ai/api/paas/v4 | Pre-filled |
| Name | Anything you like. It is shown in the model picker | Optional |
At a glance
| Appears in Loom as | Z.ai GLM |
| Sign-in | Your key, sent as Authorization: Bearer |
| Models | Loom fetches the list from your account |
| Tools (connectors, search) | Yes |
| Photos | Vision models only |
| PDFs | No |
If something goes wrong
| What you see | What to do |
|---|---|
| 401 | You used a Coding Plan key on the pay-as-you-go address, or the other way round. |
| 429 | Rate limit. See the limits page in your account. |