# OpenRouter (BYOK)

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


# OpenRouter — Bring Your Own Key

Route requests through your own OpenRouter 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 [OpenRouter](https://openrouter.ai/).
2. Open **Settings → Keys**.
3. Click **Create Key**, add a description and optional limits, **Create**, and copy it (`sk-or-...`).

## Gotchas

You don't need to set a Base URL for OpenRouter. AnyRouter picks the right model automatically from your key pool.

## Add it to AnyRouter

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

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



## Related

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