Skip to content

Finance & profit-and-loss

JARAI tracks the cost of every AI call and the revenue from every subscription and top-up, then rolls them into profit-and-loss dashboards at three levels. These live under Dashboards, and are also visible to the FinanceViewer role.

Read the P&L dashboards
Prefer to read? Open the step-by-step transcript
  1. Dashboards → Account P&L — revenue, AI cost and margin for a single account.
  2. Dashboards → Customer P&L — the same rolled up across a customer’s accounts.
  3. Dashboards → Platform P&L — the whole platform (admin-only): total revenue, cost, and margin.
  4. Each dashboard supports a date range and caches for performance; figures are aggregated across accounts (cross-account view).
Dashboard Scope Source
Account P&L One account AccountPL
Customer P&L All accounts under a customer CustomerPL
Platform P&L Entire platform (admin-only) PlatformCustomerPL / PlatformAccountPL

Costs come from per-step AI spend (each model’s cost basis × usage); revenue comes from subscriptions and extra-usage top-ups. The monthly roll-up is produced by the MonthlyPLCalculator background function.

Customer-facing cost can carry a markup over raw AI spend. Markup is configured per the platform’s pricing policy and is reflected in Customer/Account P&L margin.

  • Budget enforcement — accounts have a production budget; the BudgetEnforcementFunction gate rejects new productions for an account that has hit its monthly limit (the operator sees a clear “budget limit reached” message rather than a silent failure).
  • Token allowance — each tier (Creator / Pro / Atelier) includes a monthly token allowance; extra capacity can be purchased. Operators see remaining allowance in the Console billing banner.

Providers bill in different currencies. JARAI normalises spend using stored exchange rates (ExchangeRate) so all P&L figures present in a single currency. Rates are part of the platform bootstrap/seed data.