Provider keys allow you to use your own API keys from LLM providers like OpenAI, Anthropic, Google, etc. This enables you to leverage your existing relationships and pricing with providers.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/theopenco/llmgateway/llms.txt
Use this file to discover all available pages before exploring further.
Create Provider Key
Provider ID (e.g., “openai”, “anthropic”, “google-vertex-ai”) or “custom” for custom providers
The provider’s API key
ID of the organization this key belongs to
Custom name for the provider (lowercase a-z only, required for custom providers)
Custom base URL (for custom providers or proxy endpoints)
Provider-specific configuration options
The created provider key with masked token
Provider keys are validated before creation. The system will test the key by making a test API call to the provider.
List Provider Keys
Retrieve all provider keys for organizations you belong to.Array of provider key objects with masked tokens
Update Provider Key Status
Activate or deactivate a provider key.Provider key ID
New status for the provider key
Delete Provider Key
Soft-delete a provider key. The key will be marked as deleted and can no longer be used.Provider key ID
Supported Providers
The following providers are officially supported:| Provider | ID | Validation |
|---|---|---|
| OpenAI | openai | Automatic |
| Anthropic | anthropic | Automatic |
| Google Vertex AI | google-vertex-ai | Automatic |
| Azure OpenAI | azure-openai | Automatic |
| AWS Bedrock | aws-bedrock | Automatic |
| Cohere | cohere | Automatic |
| Mistral | mistral | Automatic |
| Groq | groq | Automatic |
| Together AI | together-ai | Automatic |
| Custom | custom | Manual |
Custom Providers
You can add custom OpenAI-compatible providers:Custom providers are not automatically validated. Make sure your endpoint is OpenAI-compatible.
Error Responses
Best Practices
Security
- Rotate provider keys regularly
- Use different keys for development and production
- Monitor key usage via activity logs
- Revoke keys immediately if compromised
Cost Management
- Set usage limits on API keys that use these provider keys
- Monitor spending through your provider’s dashboard
- Enable auto-top-up to avoid service interruptions
High Availability
- Configure multiple providers for redundancy
- Use fallback routing in your Gateway API requests
- Monitor provider status pages for outages