TL;DR: LLM cost reporting breaks down when provider totals, usage estimates and customer attribution are not recorded at the request level, according to Alectura Labs, because billing windows, retries and price versions can all shift the same spend across different records. Cost governance needs request identity and billing evidence, not just aggregate usage.
At a glance
What this is: NHI Mgmt Group's analysis, drawing on Alectura Labs's blog post: LLM cost reconciliation depends on request-level attribution, and provider totals alone cannot reliably explain customer spend.
Why it matters: Identity and usage governance matter because shared AI platforms need a defensible way to tie each request, billing event and customer to the right cost record.
Context
LLM cost governance fails when billing evidence is only available in aggregate. A shared provider total can show what was charged, but not which authenticated customer, feature or attempt created that spend.
The underlying problem is attribution drift across request logs, billing reports and pricing tables. In AI platforms that serve multiple customers from one provider account, finance controls need the request record to carry enough context to reconcile usage without collapsing distinct customers into one pool.
Key questions
Q: How do teams reconcile LLM usage cost with customer attribution?
A: Teams reconcile LLM cost by binding each provider attempt to the authenticated customer and then comparing estimated usage with the provider's cost report at the finest shared grain, such as project and billing day. The ledger must keep estimates, billed amounts, pricing version and missing usage separate so variance can be explained instead of hidden.
Q: Why do shared AI platforms need request-level cost records?
A: Shared AI platforms need request-level cost records so each prompt, tool call, and model response can be tied to a tenant, project, or workload for chargeback, budgeting, and abuse detection. A per-request record usually captures model, token usage, timestamp, and caller identity or API key, which lets teams explain bills, reconcile estimates, and investigate spikes or leaked access.
Q: How should teams handle missing usage events in provider billing?
A: Teams should treat missing usage events as an accounting gap and backfill them from authoritative request logs, gateway records, or provider exports, then flag any unresolved difference for manual review. The reconciliation process should preserve the original estimate, the later billed amount, and the reason for correction so billing reports stay auditable.
Q: What is the best way to separate estimated and billed AI costs?
A: The best way is to store estimated AI costs and billed AI costs as separate fields, then reconcile them by request ID or billing period rather than overwriting one with the other. That keeps forecast data distinct from provider invoices, supports variance analysis, and makes retries, delayed metering, and billing adjustments visible.
Technical breakdown
Request-level attribution for shared AI usage
A shared AI platform needs to bind each provider call to a customer identity before cost reporting can be trusted. The useful unit is not the monthly invoice, but the individual attempt with its customer, feature, model, request ID, attempt ID and billing timestamp. That lets teams separate who caused the request from who pays for the provider account, which is essential when one provider tenant serves many customers or features. Without that linkage, any roll-up becomes an estimate that cannot be defended against the provider's own report. See the AI Infrastructure Workload Identity Guide.
Practical implication: Capture the customer and attempt identifiers at request time so every cost record can be reconciled back to a real user or workload.
Why billing windows and retries distort LLM cost views
Billing reconciliation fails when the provider and the application do not use the same timing boundary. A request can span midnight, land in a different billing window, or appear twice if retries are not treated as separate attempts. Providers may also report usage on start time, completion time or ingestion time, so a daily ledger can be wrong even when the underlying request data is correct. Missing terminal usage events make the problem worse because the application sees work done without a matching final usage record.
Practical implication: Store the provider's timing basis and keep retries distinct so daily variance can be explained instead of mistaken for traffic change.
Why usage estimates must stay separate from billed cost
Estimated spend and billed spend are different measures, even when they come from the same request. List price, effective price, discounts and credits can all change the final cost without changing token counts, which means a single price assumption will eventually distort reporting. The same is true for text requests that split input, cached input and output into separate cost components. If teams do not preserve the original measure alongside the computed estimate, they lose the ability to explain why a margin number moved.
Practical implication: Keep estimate, billed amount and effective amount as distinct fields in the ledger so pricing changes do not erase auditability.
Threat narrative
Attacker objective: The operational objective is not theft but misstatement: to make usage and cost appear on the wrong customer, feature or reporting period.
- Entry occurs when a customer request is made through a shared AI provider account and the platform records only partial attribution for that attempt.
- Credential_harvested is not the issue here, but the same control gap appears when request identity, attempt identity and billing identity are not bound together.
- Escalation happens in reporting when retries, cutoff times and price changes collapse multiple requests into one cost view or move spend into the wrong billing day.
- Impact is misallocated spend, unexplained reconciliation variance and customer reports that cannot be defended against provider billing data.
Breaches seen in the wild
- DeepSeek database exposure 2025: An unauthenticated DeepSeek ClickHouse database exposed over a million log lines with plaintext chat history and API keys in 2025.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Request identity is now a finance control, not just an application log field. In shared AI services, the cost record is only as good as the request identity captured at the moment the provider call is made. If authenticated customer, feature, model and attempt are not tied together, finance teams inherit an unprovable estimate instead of a reconciled ledger. That makes cost governance part of identity governance for AI platforms, not a downstream accounting exercise.
Billing reconciliation exposes a new control gap: attribution drift. The real failure mode is not that usage exists, but that usage cannot be attributed to the correct customer or period after retries, window shifts and price changes. This is a governance problem around the lifecycle of a request record, and it parallels the way workload identity must remain intact across systems to preserve accountability.
Opaque organisation IDs and provider project IDs should be treated as identity primitives. The article's operational pattern shows that project-scoped billing is only meaningful when the platform preserves the owning customer, the provider account and the served model together. That is especially important in multi-tenant AI systems where platform identity, not just user identity, determines how spend is allocated.
Cost variance becomes a security-adjacent signal when attribution is incomplete. A reconciliation gap is not only a finance issue if it points to missing request metadata, cutoff mismatches or uncontrolled evaluation traffic. Attribution drift: the failure to preserve the link between request, customer and billing evidence across systems. Practitioners should treat that drift as a control deficiency because it obscures who used what, when and under which account.
From our research library:
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers, according to the State of Secrets Sprawl 2026.
- Read next: AI Infrastructure Workload Identity Guide
What this signals
Provider billing is becoming an attribution problem as much as a metering problem. When a shared AI service serves many customers, the operational risk is that request identity gets separated from charge identity. That creates reconciliation drift across finance, platform and security records, so teams need a ledger design that preserves attempt-level context from the start.
Attribution drift: the cost record no longer proves who initiated the request, who paid for it, or when it should be recognised. This matters because billing windows, retries and price changes can all move the same spend across reports, and those shifts can be mistaken for traffic or margin changes.
Finance teams should expect provider reporting to stay granular while customer allocation remains their responsibility, especially where a single account serves multiple products or tenants. The right response is to make request metadata, billing timestamps and ownership fields part of the control plane for AI usage accounting.
For practitioners
- Capture request identity at the source Record customer, feature, provider project, served model, request ID, attempt ID and billing timestamp for every provider call before the event leaves the application boundary.
- Keep billing measures separate Store estimated cost, billed cost and effective cost as distinct fields so discounts, credits and rate changes do not overwrite the original request record.
- Reconcile at the shared reporting grain Compare your ledger and the provider report at the finest common level, such as project and billing day, and investigate the variance before aggregating upward.
- Preserve retry-level evidence Treat retries, disconnected requests and late usage events as separate accounting facts so missing terminal usage does not disappear into a daily total.
- Assign ownership for attribution gaps Route missing customer IDs, missing usage records and unpaired provider charges to separate owners so finance, platform and instrumentation issues do not get merged.
Key takeaways
- Shared AI billing fails when customer identity is detached from the request record and only aggregate provider totals remain.
- Timing differences, retries and pricing changes can move the same spend across reporting windows without changing the underlying usage.
- The durable fix is to preserve request-level evidence and keep estimated, billed and effective cost as separate measures.
Related NHI Mgmt Group resources: AI Infrastructure Workload Identity Guide · LLM Provider API Key Security and LLMjacking Guide · AI Security Platform Buyer's Guide · AI Agent Memory Security Guide
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
CSA Cloud Controls Matrix and NIST CSF 2.0 set the technical controls, while ISO/IEC 27001:2022 defines the regulatory obligations.
| Framework | Control / Reference | Relevance |
|---|---|---|
| CSA Cloud Controls Matrix | DSP — Data Security and Privacy | Billing records and usage estimates are data governance artefacts in a shared AI service. |
| Recommendation — Separate estimated, billed and effective cost records so reporting can be reconciled without losing auditability. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | Customer attribution depends on preserved entitlement and tenant context for each request. |
| ID.AM-01 — Physical devices and systems are inventoried | The control mapping is approximate here; the article is about inventorying request evidence across systems. | |
| Recommendation — Bind each AI request to the authenticated customer and tenant context before cost allocation. Inventory request IDs, attempt IDs and provider project IDs so billing records can be matched to source events. | ||
| ISO/IEC 27001:2022 | A.5.9 — Inventory of information and other associated assets | The article depends on tracking billing artefacts and request evidence as governed information assets. |
| Recommendation — Catalogue the records needed to reconcile AI spend and assign clear ownership for each one. | ||
Key terms
- Provider Billing Window: A Provider Billing Window is the accounting period a cloud or AI provider uses to group usage for invoicing. It defines when requests are counted, how late events are included or excluded, and why internal estimates can differ from the final bill if metering arrives after the window closes.
- Attempt ID: An Attempt ID is a unique identifier assigned to one try at a request, job, or API call. It lets systems trace retries, duplicate submissions, partial failures, and the resulting usage or billing entries back to the same logical action.
- LLM Cost Reconciliation: LLM Cost Reconciliation is the process of matching large language model usage estimates to the charges that a provider actually bills. It compares request logs, token counts, model rates, and billing exports so finance and engineering can explain variances, correct missing events, and keep cost records auditable.
- Attribution Drift: A condition where the apparent owner or purpose of a wallet changes as it is reused across different actors, brokers, or contexts. The drift makes static labels unreliable and forces analysts to treat attribution as a living assessment rather than a fixed property.
Deepen your knowledge
NHI Mgmt Group covers identity security, NHI governance, and agentic AI through independent research, practitioner guides, and the NHI Foundation Level course. Explore the course when your programme needs a shared language for identity, access, and governance in AI systems.
Published by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org