Documentation Index
Fetch the complete documentation index at: https://mintlify.com/portkey-AI/gateway/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The Portkey AI Gateway uses provider-specific headers for authentication. You provide your API keys for the AI providers you want to use via HTTP headers.Provider Headers
Authentication is handled through HTTP headers that specify the provider and API key:Basic Authentication
The AI provider to use (e.g.,
openai, anthropic, azure-openai, google)Your API key for the specified provider
Example: OpenAI
Example: Anthropic
Azure OpenAI Headers
Azure OpenAI requires additional headers:Set to
azure-openaiYour Azure OpenAI API key
Your Azure resource name
Your Azure deployment ID
API version (defaults to latest)
Config-Based Authentication
You can also pass authentication via the config header:JSON string containing provider and authentication details
Virtual Keys
Virtual keys are available in the hosted and enterprise versions of Portkey.
Supported Providers
The gateway supports authentication for 45+ providers including:- openai - OpenAI
- anthropic - Anthropic
- azure-openai - Azure OpenAI
- google - Google Gemini
- bedrock - AWS Bedrock
- cohere - Cohere
- mistral - Mistral AI
- together-ai - Together AI
- anyscale - Anyscale
- perplexity - Perplexity
- groq - Groq
- ollama - Ollama