Get Your API Key
Access the Dashboard
Navigate to Dashboard → API Keys.Generate a Key
Click Create New Key, give it a name, and copy the key immediately.Using Your API Key
Include your API key in theAuthorization header of every request:
- cURL
- JavaScript
- Python
Security Best Practices
Never expose keys in client-side code
API keys should only be used in server-side applications
Use environment variables
Store keys in
.env files, never commit them to gitRotate keys regularly
Create new keys and revoke old ones periodically
Set up IP allowlists
Restrict key usage to specific IP addresses in the dashboard
Error Responses
If authentication fails, you’ll receive:- Missing
Authorizationheader - Invalid or revoked API key
- Key doesn’t have permission for the requested model