Skip to content
AISpendbook

Finance

Accounting

Spend split into accounting classes by your rules, a journal CSV and an export with FOCUS column names.

The accounting page splits each month's AI spend into four classes: cost of revenue, research and development, sales and marketing, and general and administrative. Admins write the rules. The split is an allocation by share of telemetry cost.

Rules

  • A rule places telemetry with one exact value of one dimension into a class. The dimensions are feature, project, category, customer, provider and model.
  • Rules are tried in ascending position and the first match wins. Telemetry that no rule matches takes the default class, which starts as cost of revenue.

How spend is split

  • For each UTC day and provider, the spend (billed where billing exists, otherwise the usage estimate) is split across classes in proportion to that day and provider's classified request telemetry cost.
  • Spend on days with no telemetry cost for the provider can't be classified. It is placed in the default class and shown separately.
  • The class totals add up to total spend.

Journal

  • One debit line per class with spend, dated the last day of the month. Each provider's spend is credited in up to three parts: billed to accounts payable, still estimated to accrued liabilities, and credits drawn down to the prepaid asset. Total debits equal total credits.
  • An optional reversing entry on the first day of the next month reverses the accrued part.
  • Voice and telephony, speech, AI tool seats and infrastructure can each post as their own expense lines, and department, class and location can be set by rule. Both are described on journal and ERP posting.
  • The Standard CSV has the columns date, account, description, debit_usd, credit_usd, accounting_class, provider, entry, line_type, department, class, location and subsidiary, with six decimal places. Five ERP layouts round to cents.
  • Set the account codes the month needs in the accounting settings first. The export is refused until they are set.
  • The journal can be posted to NetSuite, QuickBooks Online, Xero, Sage Intacct or Business Central. Everything about it is on journal and ERP posting.
  • Rule templates (Templates on the Rules card, admins) add common rules after yours; their values must match your telemetry tags exactly.

FOCUS-column export

  • The export uses FOCUS column names (version 1.4) and has not been run through the FOCUS validator. It is not a conformance claim.
  • There is one row per day and provider, in US dollars.
  • It has the columns FOCUS requires, including BillingPeriodStart and BillingPeriodEnd (the calendar month), ChargePeriodStart and ChargePeriodEnd (the day), ProviderName, PublisherName, InvoiceIssuerName, ServiceName, ServiceCategory, ChargeCategory and BillingCurrency.
  • BilledCost is filled only on days with a provider bill. EffectiveCost is the bill where there is one, otherwise the usage estimate, and the added column x_CostBasis says which.
  • ListCost prices the day's usage at published list prices and ContractedCost at your contract rates. Both are left empty when the usage can't be priced, rather than guessed.
  • ChargeClass, PricingQuantity and PricingUnit are empty: a row covers several models and token types, so it has no single unit, and the export has no correction rows.

Both exports need the analyst role. Viewers can read the split. Rules and settings can also be changed by finance editors. The split is also available as CSV or Excel from the page's Export button (see exports and feeds).