Provider Keys Management
The Provider Keys Management system allows you to securely store and manage API keys for multiple AI providers. This enables you to use different models and services across your experts and assistants.Overview
Provider keys are used to authenticate with various AI services including:- LLM Providers: OpenAI, Anthropic, Google, Mistral, DeepSeek, and more
- Voice Providers: ElevenLabs, OpenAI TTS, Google TTS, Azure Speech
- Image Providers: Stability AI, Midjourney, OpenAI DALL-E
Accessing Provider Keys
Navigate to Profile → Provider Keys or Settings → API Keys to manage your keys.Adding a Provider Key
1
Select Provider
Click Add New Key and choose your provider from the list. You can filter by category:
- All: Show all providers
- LLM: Language model providers
- Voice: Text-to-speech providers
- Image: Image generation providers
2
Enter API Key
Paste your API key from the provider’s dashboard. The key will be encrypted before storage.
3
Configure Settings
- Nickname: Give your key a memorable name (optional)
- Primary: Set as the default key for this provider
- Fallback: Use this key if the primary fails
4
Save
Click Save to securely store your key. It will be validated with the provider.
Supported Providers
LLM Providers
OpenAI
GPT-4, GPT-4 Turbo, GPT-3.5
Anthropic
Claude 3 Opus, Sonnet, Haiku
Gemini Pro, Gemini Ultra
Mistral AI
Mistral Large, Medium, Small
DeepSeek
DeepSeek Chat, Coder
Cohere
Command, Command-R
Groq
Ultra-fast inference
Azure OpenAI
Azure-hosted models
Ollama
Self-hosted local models
Voice Providers
ElevenLabs
High-quality voice synthesis
OpenAI TTS
Natural-sounding voices
Google TTS
Multi-language support
Azure Speech
Neural voices
Image Providers
Stability AI
Stable Diffusion models
OpenAI DALL-E
DALL-E 3 image generation
Midjourney
Artistic image creation
Key Management Features
Primary Keys
Set a key as Primary to make it the default for that provider. When you select a model from that provider, it will automatically use the primary key.Fallback Keys
Set a key as Fallback to provide redundancy. If the primary key fails (rate limit, quota exceeded, etc.), the system will automatically try the fallback key.Key Validation
When you add a key, B-Bot Hub validates it with the provider to ensure it’s working correctly. You’ll see a validation status indicator.Nickname System
Give your keys memorable nicknames like:- “Production OpenAI”
- “Development Key”
- “High-Limit Account”
- “Personal ElevenLabs”
Using Provider Keys
In Expert Creation
When creating an expert and selecting a model, you can choose which provider key to use:- Use Expert’s Main Key: The primary key for that provider
- Select Specific Key: Choose from your available keys for that provider
In Modalities
For voice input/output, you can select different keys for TTS than your main model key:In Assistants
Each assistant can be configured with its own provider key selection for maximum flexibility.Security Best Practices
Encryption
Encryption
All API keys are encrypted before storage using industry-standard encryption. Keys are only decrypted when making API calls.
Key Rotation
Key Rotation
Regularly rotate your API keys, especially for production use. Update keys in B-Bot Hub when you rotate them with providers.
Separate Keys
Separate Keys
Use separate keys for development and production environments. This prevents accidental quota usage.
Monitor Usage
Monitor Usage
Regularly check your provider dashboards for unusual API usage that might indicate unauthorized access.
Least Privilege
Least Privilege
When possible, create provider keys with minimal required permissions.
Managing Multiple Keys
You can have multiple keys for the same provider. This is useful for:- Load Balancing: Distribute requests across multiple accounts
- Rate Limit Management: Switch to a different key when limits are reached
- Team Management: Different keys for different team members or projects
- Cost Tracking: Separate keys for different clients or departments
Troubleshooting
Key Validation Failed
Key Validation Failed
Possible causes:
- Invalid API key format
- Key has been revoked
- Provider service is down
- Network connectivity issues
Rate Limit Errors
Rate Limit Errors
Solution: Add a fallback key or wait for your rate limit to reset. Consider upgrading your provider plan.
Key Not Showing in Dropdown
Key Not Showing in Dropdown
Possible causes:
- Key is for a different provider than the selected model
- Key validation hasn’t completed
Getting API Keys from Providers
OpenAI
- Go to platform.openai.com
- Navigate to API Keys
- Click Create new secret key
- Copy the key immediately (you won’t see it again)
Anthropic
- Go to console.anthropic.com
- Navigate to API Keys
- Click Create Key
- Copy and save the key
ElevenLabs
- Go to elevenlabs.io
- Navigate to Profile → API Keys
- Generate a new key
- Copy the key
Each provider has its own process for generating API keys. Refer to their documentation for specific instructions.