Aibubu
Visit Aibubu ↗
Integration guides

Workspaces and API Access

API keys, billing, tasks, assets, and webhooks are all scoped to the workspace.

Both personal and team workspaces can create and use API keys. Keys, webhooks, and credit balances are isolated between personal and team workspaces and are never shared.

Prerequisite

Switch to the workspace you want to use in the developer platform console first. In a personal workspace the Owner manages API keys; in a team workspace the Owner or Admin manages them.

An API key is permanently owned by the workspace in which it is created. The following all belong to that key's workspace:

  • Creator credits and API balance are separate; API calls only debit the workspace's API wallet (see Credits and Top-up)
  • Image and video tasks
  • Reference uploads and generated assets
  • Model permissions, allowed models, and webhook delivery

Integration flow

  1. Switch to a personal or team workspace in the developer platform console and make sure its API wallet has balance.
  2. Create an API key and configure scopes and allowed models as needed; configure webhooks for the workspace on /console/webhooks.
  3. Call GET /v1/models to confirm the models available to the key.
  4. When using a reference image, call Image Upload first and pass the returned URL to generation.
  5. For image or video, call POST /v1/quote for estimated credits, then POST /v1/generations to create a task.
  6. Poll GET /v1/tasks/{task_id} for a terminal state or receive a webhook notification.

Do not switch workspaces with a header

/v1/* resolves the workspace exclusively from the API key in Authorization: Bearer; it does not read X-Aibubu-Workspace-ID. Supplying or forging that header cannot alter billing, task, or asset ownership.

To use another workspace, create and use an API key from that workspace.

On this page