Credits and Top-up
Use prepaid credits for API generation requests.
Aibubu API uses workspace wallets. Personal workspaces buy subscriptions, while team workspaces buy permanent credit packs.
- List products and prices with
GET /api/billing/catalog?workspace_type=teamfor the active team workspace. - Create checkout with
POST /api/billing/checkoutusingproduct_id,price_id, andprovider. - Confirm payment and fulfillment separately with
GET /api/billing/orders/{id}. - Confirm granted credits with
GET /api/billing/walletandGET /api/billing/ledger.
Successful purchases emit credits.granted. Insufficient generation balance returns HTTP 402, insufficient_credits, and X-Aibubu-Balance; top up before retrying.

