Every request to Gateway AI’s proxy is authenticated with a proxy key. Proxy keys are created in your dashboard and scoped to your organization.
Proxy keys look like this:
They always start with sk-proxy- followed by 64 hex characters.
You can send your proxy key in any of three headers:
This is the default for the OpenAI SDK and most HTTP clients.
This is the default for the Anthropic SDK.
This is the default for the Google Generative AI (Gemini) SDK.
All three work on every endpoint. The gateway detects sk-proxy- prefixed values in any of these headers.
When the gateway receives your request:
Authorization, x-api-key, x-goog-api-key, and Host headers are strippedYour code never sees or handles the real provider API key. It stays on the server.
Every request is checked against these rules:
Gateway AI has two auth systems:
sk-proxy-...) — for LLM proxy requests (/openai/*, /anthropic/*, /gemini/*, /v1/chat/completions)/v1/account, /v1/keys, /v1/usage, etc.)Your developers use proxy keys. Your dashboard and management API use Firebase authentication.