Getting started
Authentication
Create an API key, choose its permissions and send it with every request.
Every request needs an AlphaProxy developer key. Keys start with sk_.
Create a key
In the AlphaProxy web app, open Settings → API keys and create a key. Choose what it may do:
| Permission | Allows |
|---|---|
models:list |
GET /models |
models:invoke |
POST /chat/completions |
The key is shown once. Store it somewhere safe, such as your secret manager, and never commit it to code.
Send the key
Pass it as a bearer token:
Authorization: Bearer sk_...
Personal and workspace keys
- A personal key is charged to your own balance.
- A workspace key is charged to the workspace. The person who made it must still be a member of the workspace for it to work.
Revoke a key
Revoke a key from Settings → API keys. It stops working immediately. Requests with a missing, invalid, expired or revoked key get 401 invalid_api_key; a key without the needed permission gets 403 insufficient_scope. See Errors.