Z.ai (BYOK)
How to create an API key for Z.ai and add it to AnyRouter via Bring Your Own Key.
Z.ai (BigModel / GLM) keys use the ID.Secret format. Two variants exist — the standard PaaS key and the dedicated Coding Plan key.
Get your API key
- Log in to Z.ai.
- Open API keys.
- Create a new key (or use the default key from signup) and copy it.
- Add it under Z.ai (standard) or Z.ai (Coding Plan) to match your plan.
Gotchas
The standard key uses base URL https://api.z.ai/api/paas/v4; the Coding Plan uses https://api.z.ai/api/coding/paas/v4. Pick the card that matches your plan so routing hits the right endpoint.
Add it to AnyRouter
- Go to Dashboard → BYOK.
- Find Z.ai under Available and click Add key.
- Paste your key into the API key field.
- Create key: Z.ai console
- Default base URL (editable on the key form):
https://api.z.ai/api/paas/v4
- Click Save. AnyRouter runs a live validation call against Z.ai before storing the key — if it fails, the dialog shows the upstream error and the key isn't saved.
Related
- BYOK Provider Setup Guide — the full provider list and the general flow
- Bring Your Own Key (BYOK) — routing precedence, load balancing, and costs
- Free-tier aggregation — combine free tiers behind one preset