23 November editorial batch, published on 24 November.
Record each provider attempt once. Attribute a call that belongs to one SaaS feature directly. For a shared call, allocate the cost with a documented rule or keep it in a shared cost pool. Compare the sum of direct, allocated and unresolved charges with the provider total for the same account and billing period.
Define the unit that carries cost
Start with a ledger at the provider-attempt level. Store the provider account, model, reported usage, time, estimated cost and the application operation that created the attempt. Keep the rate version with the estimate, especially when cached input, ordinary input and output have different unit rates. For a direct call, stamp a server-generated feature identifier when you create the operation. Keep that identifier when the job moves to a queue. A worker that handles several features has too little context to infer ownership from its own name.
For a shared call, log the beneficiaries in a separate allocation record. Keep the original ledger amount and references to its distribution entries. If a support export needs one row per feature, export the distributed amounts and exclude the original shared row from the sum. This prevents a feature rollup from counting both the original call and each share of it.
The FinOps Foundation describes direct attribution, proportional or fixed splits, and central funding for shared costs. Pick an assignment rule that matches the decision the report supports. FinOps Foundation allocation guidance
Split a hypothetical shared extraction job
Suppose your SaaS application extracts text once from an uploaded document. The extracted data serves analytics and compliance review. Over a billing window, analytics uses $42 in direct model calls, review uses $18 and shared extraction uses $30. A separate provider charge of $10 has no application attribution yet.
| Allocation method | Analytics | Review | Shared | Unresolved | Total |
|---|---|---|---|---|---|
| Central funding | $42 | $18 | $30 | $10 | $100 |
| Equal split | $57 | $33 | $0 | $10 | $100 |
| Usage split, 80% analytics | $66 | $24 | $0 | $10 | $100 |
An 80% share could come from the number of documents each feature requested. If long documents dominate cost, count the extracted input tokens attributable to each feature when you have that evidence. For a document requested by both features, specify whether its token count is split between them or charged to the originating feature. Set the rule before you compare teams. Keep the denominator and allocation version so that a reader can reproduce the period.
Keep central funding when the feature assignment would imply precision you cannot defend. A finance report can show both a direct-cost column and an allocated-cost column. A feature owner can then see whether an optimization reduced the provider bill or simply moved cost between product lines.
Close the period against provider billing
Use the provider account, billing interval and currency as reconciliation keys. OpenAI's organization Costs API can group billed amounts by project and line item. A project that serves two product features still needs application evidence for a split. Fetch the billing buckets for the period and compare them with the ledger totals. OpenAI Usage and Costs API
Investigate an unassigned charge before distributing it. A revised export, an uninstrumented job or a contract rate can produce different gaps. Mark the period provisional while you expect late usage. If you transfer a charge from unresolved to a feature after close, keep the original attribution and record the adjustment. If the provider shows an aggregate credit that you cannot trace to particular calls, keep it visible as a separate adjustment or use a documented policy to distribute it.
Alectura reports list-price spend by request tags such as feature. Keep application-side allocation for shared calls and reconcile with provider billing before using the numbers in a close. If you also need a customer dimension, start with LLM cost tracking per customer. Review Alectura inference limits and usage before deciding which measurements to collect in the gateway.
Source documents (2)
Trace a request through Alectura.
Bring a sample prompt and a customer policy. See what reaches the model and which decisions appear in the request record.