Authentication
FreshAll Inception Labs API requests require authentication via API keys.
Obtaining API Keys
- Log in to the Inception Platform Dashboard
- Navigate to API Keys section
- Click Create New Key
- Copy and securely store your key
Using API Keys
Environment Variable Setup
bash
export INCEPTION_API_KEY="your_api_key_here"bash
set INCEPTION_API_KEY="your_api_key_here"Authorization Header
All API requests must include the key as a Bearer token:
Authorization: Bearer $INCEPTION_API_KEYExample Request
bash
curl https://api.inceptionlabs.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $INCEPTION_API_KEY" \
-d '{"model": "mercury-2", "messages": [{"role": "user", "content": "Hello"}]}'Security Best Practices
Security Warning
Never expose your API keys in client-side code or commit them to version control. Use environment variables or a secure secrets management system.
- Store keys in environment variables or secret managers
- Rotate keys periodically
- Use separate keys for development and production
- Monitor usage in the Billing Dashboard
Troubleshooting
| Issue | Solution |
|---|---|
401 Incorrect API Key | Verify key, clear browser cache, or generate a new key |
| Key not working | Check env variable is set in current shell session |
| Rate limited | See Rate Limits |