API Reference

Permissions and Authorization

OneInfer API uses a straightforward authentication model based on API Keys. A key works in all of your account's projects, or only in the folder or project you put it in.

Keys on a project or folder. When you create a key, or later from its menu on the API keys page, choose where it works:

  • All projects (personal accounts): the key works with everything in the account.
  • A project: the key works only there, on what's in that project.
  • A folder: the key works in every project in the folder and its subfolders. Name the project a request is for in the OneInfer-Project header; without it, the key uses its own project in the folder.

A key on a folder or project can't reach billing, members or settings, and its usage, limits and budgets count in its project. Organization keys always work in a folder or project, with the access level chosen for them.

Authentication

Include your API Key in the Authorization header of your HTTP requests.

HTTP header
Authorization: Bearer YOUR_API_KEY

Alternatively, you can use the X-API-KEY header if preferred.

Authorization

Once authenticated, you are authorized to perform any action permitted by the API, including creating instances, managing billing, and accessing models.