Skip to content

Authentication

Fresh

All Inception Labs API requests require authentication via API keys.

Obtaining API Keys

  1. Log in to the Inception Platform Dashboard
  2. Navigate to API Keys section
  3. Click Create New Key
  4. 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_KEY

Example 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

IssueSolution
401 Incorrect API KeyVerify key, clear browser cache, or generate a new key
Key not workingCheck env variable is set in current shell session
Rate limitedSee Rate Limits