# Azure (BYOK)

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


# Azure — Bring Your Own Key

Route requests through your own Azure account ([BYOK](/features/byok)); no platform credits are charged. You need a Azure Foundry resource (endpoint URL, deployment name and key).

## Get your API key

1. In the [Azure AI Foundry portal](https://ai.azure.com/), deploy **Microsoft-Decision-1** from the model catalog.
2. On the deployment page, copy the **resource endpoint**, the **deployment name** and the **API key**.
3. Enter them in the **Resource endpoint**, **Deployment name** and **API key** fields when adding the key. For the API or CLI, send them as one JSON object with `endpoint_url`, `deployment` and `api_key`.

## Gotchas

The endpoint must be `https://<resource>.services.ai.azure.com` or `https://<resource>.openai.azure.com` (no path, port or IP). Requests go straight to your Azure resource and bill to your Azure account.

## Add it to AnyRouter

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



## Related

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