Skip to main content
Every route takes the same API key. Send it in the Authorization header:
The x-api-key header is accepted as well, for clients that use that convention:
A missing, wrong or revoked key returns HTTP 401:

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.