KarexiaDocumentation Français
In this view

Administration

AI credits management: top-up, per-member budgets, estimates, 402 and spend report

Track the credit wallet (1 credit = 0.01 USD), anticipate each cost with estimate badges, top up or enable auto-refill, cap each member, handle a 402 block and audit consumption by service, task and model.

Summary

Trigger
An AI action is blocked for lack of balance, or you want to frame the team's AI spending.
Duration
10 to 20 minutes

Who does what, step by step

AI credits management: top-up, per-member budgets, estimates, 402 and spend reportWho does what, step by step: Organization owner-administrator, Editor / publisher, System, Platform superadminOrganizationEditor / publisherSystemPlatform superadmin12345678
Plain circle: normal step · bold outline: step with a guardrail (approval, consent or confirmation).

Steps

  1. 1

    Read the wallet Organization owner-administrator

    Settings > Credits (alias « Billing »: /settings/billing). « Wallet » tab: « Total balance », « Available », « Reserved » (in-flight runs) and « Alert threshold ». All members read the balance and history; purchase is reserved to the owner.

  2. 2

    Know the cost before acting Editor / publisher

    Next to each AI button a badge shows « up to N credits » (metered at real cost) or « ~N credits » (fixed vendor price). The number comes from the server price list, the same the credit gate requires; nothing shows for an unlimited account.

  3. 3

    Buy credits or enable auto-refill Organization owner-administrator

    « Buy credits » opens the pack choice: payment happens at the payment provider (never inside the app). « Auto-refill »: tick Enable, set the available-credits threshold and the pack, then save.

    /settings/credits Confirm card
  4. 4

    Cap each member Organization owner-administrator

    « Per-member budgets » tab (/settings/credits/budgets): pick the member, enter the monthly cap (monthly_credits) and save; « Remove the budget » deletes the cap. Month-to-date usage shows against the cap; the cap applies on top of the shared wallet.

  5. 5

    Insufficient balance: the 402 block System

    If the balance or the member's cap is insufficient the call is refused (402) before any spend. A dialog offers to top up (owner) or « Ask an admin »; the « Insufficient AI credits — top up your balance » message also shows on the page concerned.

    → Editor / publisher
  6. 6

    Request more credits Editor / publisher

    The member opens the detailed request (optional amount and note): an admin receives it. As soon as the balance is topped up, the paused-runs panel offers « Top up and continue » and automatically resumes parked executions.

    /settings/credits → Organization owner-administrator
  7. 7

    Audit consumption Organization owner-administrator

    Sections « Usage (last N days) », « By service », « By task », « By model », « Per-request detail » (100 most recent) and « Transaction history » with balance after, source and note. Reload the page: the numbers are those actually recorded.

  8. 8

    Platform operator: manual top-up and margin Platform superadmin

    Platform superadmin only: /admin/credits offers « Manual AI-credit top-up » (tenant_id, amount, idempotent refund key, note; confirmation above 1,000 credits) and the « Global default gross margin ». A manual top-up is never available on the customer side.

    /admin/credits Confirm card

Collaboration

  • Owner-admin: buys, enables auto-refill and sets caps. Editor: consumes and requests credits when blocked.
  • Platform superadmin: credits a tenant after an incident or a goodwill gesture, traced in the tenant's history.
  • A viewer sees the balance but has no purchase right nor AI spending.

With the AI Copilot

  • « « How many credits do I have left? » (credits_get_wallet) and « Which feature consumes the most? » (credits_usage_by_feature). »
  • « « Cap Marie at 500 credits a month » (set_user_budget, confirmed). »
  • « « Enable auto-refill under 100 credits » (update_auto_refill); buying a pack opens payment at the provider after confirmation. »

Outcome

A controlled AI budget: costs announced before each action, per-member caps, explained blocks and fully traceable consumption.

Pitfalls

See also