Private beta · Early access
Platform
API keys
Create a key in the dashboard and send it as a bearer token.
Private beta. InferenceIndex is changing fast. Models, endpoints, pricing and these docs may change without notice, so check back before you build on a detail.
You need an API key to call a Compiled Agent Model.
Create a key
- Open https://app.inferenceindex.com.
- Sign in and enter your invite code.
- Get an API key in the dashboard.
Each invite code works once. A key works only once the account has redeemed an invite.
Send the key
Send the key on the request as a bearer token.
text
Authorization: Bearer YOUR_KEYPython sets it as api_key. TypeScript sets it as apiKey. Keep the key in an environment variable or a secret store. Do not commit it, and do not paste it into a chat.
If a key is exposed, stop using it and get a new key in the dashboard.
When a key is refused
| Status | Why |
|---|---|
401 | The key is wrong or missing |
402 | The account's credit balance is empty |
403 | The account has not redeemed an invite, or is disabled |