Loom / Guides / Z.ai (GLM)

Hosted · Z.ai

Z.ai (GLM)

GLM models from Z.ai (Zhipu).

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

  1. 1
    Register or sign in at z.ai/model-api.
  2. 2
    Optional: top up on the billing page if you want paid models. Some GLM models are free.
  3. 3
    Open the API Keys page and create a key.
  4. 4
    Copy 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

  1. 1
    Open Loom, then Providers in the menu, and choose Add provider.
  2. 2
    Pick Z.ai GLM (the search box finds it).
  3. 3
    Fill in the fields in the table below.
  4. 4
    Choose 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.
  5. 5
    Open 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 LoomWhat to putNeeded
API keyPaste the key you copied. Create one at z.ai → API keys.Yes
Endpointhttps://api.z.ai/api/paas/v4Pre-filled
NameAnything you like. It is shown in the model pickerOptional

At a glance

Appears in Loom asZ.ai GLM
Sign-inYour key, sent as Authorization: Bearer
ModelsLoom fetches the list from your account
Tools (connectors, search)Yes
PhotosVision models only
PDFsNo

If something goes wrong

What you seeWhat to do
401You used a Coding Plan key on the pay-as-you-go address, or the other way round.
429Rate limit. See the limits page in your account.

Official documentation