API Key Authentication
All each::labs APIs use API key authentication via theX-API-Key header.
Getting Your API Key
- Sign in to eachlabs.ai
- Navigate to Settings > API Keys
- Click Create API Key
- Copy and store your key securely
Using the API Key
Include theX-API-Key header in every request:
Authentication per Product
Some endpoints like
GET /v1/models (listing models) do not require authentication. Check individual endpoint documentation for details.Authentication Errors
If your API key is missing or invalid, you’ll receive a401 response:
Common Causes
Security Best Practices
- Store API keys in environment variables, never in source code
- Use different keys for development and production
- Rotate keys periodically
- Revoke compromised keys immediately from your dashboard