Authentication
Secure your API requests with Bearer tokens. Learn how to create, manage, and rotate API keys.
Overview
Authenticated API routes accept Authorization: Bearer or x-api-key. If both are sent, they must match. The public GET /v1/models catalogue can be read without a key.
API key format
Aether API keys look like this:
sk-aetherapi-...Keys start with sk-aetherapi-. Treat the rest as an opaque secret: its length and character set differ between key types.
Getting your API key
- 1Sign up or log in to the Aether API Dashboard
- 2Navigate to the API Keys section
- 3Click Create new key
- 4Copy the key and store it securely. It is only shown once
Using your API key
Include your key in the Authorization header of every request:
Authorization: Bearer sk-aetherapi-...Security best practices
- Never commit API keys to version control. Use
.envfiles and a secrets manager. - Use environment variables to store keys in your application.
- Rotate keys regularly. Create new keys and delete old ones from the dashboard.
- Do not share keys across different applications or teams.
- Monitor usage in the dashboard to detect unexpected activity.
Important
API keys are scoped to their project. Requests use that project's credits, limits, and model access rules. Keep your keys secure and never expose them in client-side code.