# Z.ai (Coding Plan) (BYOK)

> Create an API key for Z.ai (Coding Plan) and add it to AnyRouter.


# Z.ai (Coding Plan) — Bring Your Own Key

Dedicated key for the Z.ai coding subscription plan.

## Get your API key

1. Log in to [Z.ai](https://z.ai/).
2. Open [API keys](https://z.ai/manage-apikey/apikey-list).
3. Create a key under your **Coding Plan** and copy it.
4. Add it under **Z.ai (Coding Plan)** in AnyRouter.

## Add it to AnyRouter

1. Open **[Dashboard → BYOK](https://anyrouter.dev/dashboard/byok)**, find **Z.ai (Coding Plan)** under **Available** and click **Add key**.
2. Paste the key.
3. Click **Save**. AnyRouter validates the key against Z.ai (Coding Plan) first; on failure the dialog shows the upstream error and nothing is saved.

- Create key: [Z.ai (Coding Plan) console](https://z.ai/manage-apikey/apikey-list)
- Default base URL (editable on the key form): `https://api.z.ai/api/coding/paas/v4`



## Related

- [BYOK Provider Setup Guide](/docs/features/byok-providers.md)
- [Bring Your Own Key (BYOK)](/docs/features/byok.md)
