Documentation

Your familiar SDK. A clear path from API key to first response.

Authentication

Choose a guide or find an API method. Copy examples to your project; this page does not execute requests.

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.

HTTP
Authorization: Bearer YOUR_INFERENCE_KEY

Rotation 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.

Search documentation