# Token Harbor (BYOK)

> Create an API key for Token Harbor and add it to AnyRouter.


# Token Harbor — Bring Your Own Key

Route requests through your own Token Harbor account ([BYOK](/features/byok)); no platform credits are charged. You need a API key string.
This provider has a free tier or free credits.

## Get your API key

1. Sign in to the Token Harbor console.
2. Create a new API key and copy it now; most providers show it once.

## Gotchas

Turn on free models in your Token Harbor dashboard before calling a `:free` id. Token Harbor may keep free-model prompts for training.

## Add it to AnyRouter

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

- Create key: [Token Harbor console](https://tokenharbor.ai/dashboard/api-keys)
- Default base URL (editable on the key form): `https://tokenharbor.ai/v1`



## Related

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