Skip to main content
BYOK (Bring Your Own Key) connects provider API keys directly to the AI Gateway. Every request is routed through those credentials, keeping billing, rate limits, and data residency under the organization’s control.

Connecting a provider key

  1. Go to BYOK in the AI Gateway sidebar.
  2. Find the provider and click Connect.
  3. Select Setup your own API key and paste the key.
Providers configuration screen showing provider API key setup options.

Browse all supported providers

View the full list of providers available in the AI Gateway, including OpenAI, Anthropic, Google, AWS Bedrock, Azure, and more.

Multiple keys per provider

Add more than one key per provider by selecting Add a new API key from the provider panel.

Why use multiple keys

Failover: if one key is revoked or exhausted, a fallback model configured with a second key keeps requests flowing. Environment separation: use different keys for production, staging, and development without mixing spend.

Why use own keys

For production workloads, BYOK provides:
  • Rate limit ownership: provider rate limits apply to the organization’s account, not a shared pool
  • Direct billing: spend is billed by the provider directly; configure limits and alerts independently
  • Data residency: requests go from the AI Gateway to the provider account with no shared credential layer