Authentication
Secure every request with a bearer token using your EmpirioLabs API key
All EmpirioLabs API requests must include a bearer token in the Authorization header.
API key format
API keys use the sk-empiriolabs- prefix. You can generate up to 50 API keys per account from the dashboard.
Header format
Include the header on every request:
Rate limits
Each account starts with default rate limits:
If you need higher limits, email support@empiriolabs.ai. See Limits and API Keys for full details.
Recommended practices
- Generate separate API keys for production, staging, and development
- Rotate keys on a regular schedule and immediately after suspected exposure
- Store keys in a secret manager or deployment platform; never in client-side code, public repos, or logs
- Delete unused keys from the dashboard promptly
Test your credentials
A quick way to verify your key is working:
A 200 response with the model catalog confirms your key is valid and your account has been set up correctly.
Common authentication responses
For the complete list of status codes across every endpoint, see Errors and Status Codes.
