# NanoGPT (BYOK)

> How to create an API key for NanoGPT and add it to AnyRouter via Bring Your Own Key.


# NanoGPT — Bring Your Own Key

NanoGPT is a supported [BYOK](/features/byok) provider. Bring your own API key string, and AnyRouter routes your requests through it — no platform credits are charged for BYOK-backed calls.

## 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. Go to **[Dashboard → BYOK](https://anyrouter.dev/dashboard/byok)**.
2. Find **NanoGPT** under **Available** and click **Add key**.
3. Paste your key into the **API key** field.
- **Create key**: [NanoGPT console](https://nano-gpt.com/api)
- **Default base URL** (editable on the key form): `https://nano-gpt.com/api/v1`

4. Click **Save**. AnyRouter runs a live validation call against NanoGPT before storing the key — if it fails, the dialog shows the upstream error and the key isn't saved.

## Related

- [BYOK Provider Setup Guide](/features/byok-providers) — the full provider list and the general flow
- [Bring Your Own Key (BYOK)](/features/byok) — routing precedence, load balancing, and costs
- [Free-tier aggregation](/features/free-tier-aggregation) — combine free tiers behind one preset
