# NanoGPT (BYOK)

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


# NanoGPT — Bring Your Own Key

Route requests through your own NanoGPT account ([BYOK](/features/byok)); no platform credits are charged. You need a API key string.

## Get your API key

1. Sign in at [NanoGPT](https://nano-gpt.com/).
2. Open [API keys](https://nano-gpt.com/api) and create a key.
3. Copy the secret and keep it for the **API key** field below.

## Gotchas

NanoGPT subscriptions are for one person and not for resale; use a pay-as-you-go balance key for routing through AnyRouter. The key is never added to the shared pool.

## Add it to AnyRouter

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

- Create key: [NanoGPT console](https://nano-gpt.com/api)
- Default base URL (editable on the key form): `https://nano-gpt.com/api/v1`



## Related

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