Authorization header:
x-api-key header is accepted as well, for clients that use that convention:
Getting a key
one-api.ai is in early access. Keys are issued on request through the contact page. A key belongs to one account and spends that account’s credits.Keeping a key safe
- Keep the key on your server or in your terminal environment. Do not ship it in a browser or mobile app.
- Tasks are private to the account that created them. Another account asking for your task id gets a 404.
- If a key leaks, ask for it to be revoked. A revoked key stops working at once.
Rate limits
A request over a limit returns HTTP 429 with a
Retry-After header in seconds.