Authentication
Keep your API key on your server.
Project API keys
Open API keys in the dashboard, create a key and copy it immediately. Use this key for API requests and client configuration. Your dashboard password is not an API key.
Request headers
Send Authorization: Bearer YOUR_INFERENCE_KEY. Messages also accepts x-api-key. Use HTTPS for all production requests. Do not include a key in a URL or public source code.
Authorization: Bearer YOUR_INFERENCE_KEYRotation and revocation
Create a replacement key, update the server-side secret and verify requests before revoking the old key in the dashboard. Treat a key pasted into public logs or source history as exposed.
Workspace roles
Workspace roles control access to projects, keys, usage and billing. Each API key belongs to one project; projects keep separate balances and data.



