Independent analysis by NHI Mgmt GroupSource article: Alectura Labs, “How to Measure LLM Prompt Cache Savings” (November 21, 2026)

TL;DR: Prompt caching can make AI spend look lower than it is unless teams separate cache reads, cache writes and ordinary input pricing, according to Alectura Labs, and then reconcile that estimate against the provider bill. Cost governance now depends on token-class normalisation, not just a cheaper per-token rate.


At a glance

What this is: NHI Mgmt Group's analysis, drawing on Alectura Labs's blog post: Prompt caching requires separate accounting for cache reads, cache writes and ordinary input to estimate savings correctly.

Why it matters: Identity and AI teams need accurate token-class cost governance because mispricing cached prompts can distort margins, usage controls and procurement decisions.


Context

Prompt caching is a billing and measurement problem as much as a performance feature. The control gap appears when teams treat all input tokens as equivalent, even though cached prefixes, cache creation and ordinary input can carry different rates and different audit meanings.

That distinction matters because cost models, chargeback rules and model-usage reviews all depend on preserving the raw counters before aggregation. In AI operations, the right question is not whether caching exists, but whether the programme can reconcile cached and uncached usage cleanly across providers.


Key questions

Q: How should teams price prompt caching for accurate spend reporting?

A: Price cache reads, cache writes and ordinary input as separate billing classes, then compare the reconstructed total with the provider bill. That approach shows whether caching actually reduced spend or merely changed how the same tokens were billed. Keep the raw counters intact so later audit and margin checks can verify the calculation.

Q: Why can prompt caching improve hit rate without lowering total cost?

A: Prompt caching can raise the cache hit rate because repeated prompt prefixes are reused, while total cost stays the same when savings are offset by longer prompts, higher token volume, or unchanged spend on uncached requests. Track cacheable prefix length, prompt versioning, token counts, and cache-hit attribution so the reported efficiency does not hide higher underlying usage.

Q: How do provider usage fields affect AI billing reconciliation?

A: Provider usage fields are the metering attributes returned by an AI service, such as input tokens, output tokens, cached tokens, and model name, that finance teams use to reconcile invoices against internal logs. If those fields are inconsistent, missing, or mapped differently across systems, chargeback and forecast data will not match the provider bill.

Q: What should finance and platform teams track after a prompt-template change?

A: After a prompt-template change, finance and platform teams should track token counts, cache hit rate, model selection, request volume, and unit cost per request. A template edit can alter prompt length, break cache reuse, or shift traffic to a different model, so reconciliation needs before-and-after usage records and a clear change identifier.


Technical breakdown

Why cache reads and cache writes need separate pricing

Prompt caching changes the unit economics of repeated prompts because the provider may charge one rate to create cached context and another to read it back. A correct estimate has to reconstruct what the same input would have cost at the ordinary input rate, then compare that to the observed billed classes. If the system collapses those classes too early, the savings calculation becomes inaccurate and can understate real spend or overstate the benefit of the feature.

Practical implication: Preserve raw usage classes until after pricing so finance and engineering can reconcile cached and uncached spend.

Why task-level cost is a better control than token hit rate

A high cache hit rate does not automatically mean a lower cost per completed task. Prompt changes, output growth, retries and validation calls can all raise the true cost of doing the work even when prefix reuse improves. That is why task-level accounting matters: it measures the full cost of a successful completion, not just the prefix traffic that happened to be reused.

Practical implication: Track completed-task cost alongside cached-token share so prompt optimisation does not hide higher end-to-end spend.

How provider usage fields support audit-grade reconciliation

Provider usage records often separate ordinary input, cache creation and cache reads, but each endpoint can expose them differently. Reconciling those fields requires consistent mapping by endpoint, model, tier and billing period, plus preservation of the raw counters for audit. The technical issue is not just arithmetic. It is classification integrity across systems that may report the same prompt lifecycle in different field names and buckets. See the AI Infrastructure Workload Identity Guide.

Practical implication: Build endpoint-specific mapping rules and keep the unaltered counters so cost reports can be verified against provider invoices.


NHI Mgmt Group analysis

Prompt caching creates a cost-classification problem before it creates a savings problem. Teams that collapse cache reads, cache writes and ordinary input into one number lose the ability to explain their spend. That weakens both chargeback and engineering accountability because the reported saving may not match the actual billing mix.

Task-level cost is the governance metric that matters most. A shared prefix can look efficient while retries, longer outputs or validation traffic make the finished workload more expensive. AI programmes should treat per-completion cost as the control objective because that is what affects margin, not isolated token rates.

Cache-lifetime accounting becomes the named governance concept here. A cached prompt should be measured across the write event, the read events and the expiry window, not as a flat usage trend. That framing helps finance, platform and AI governance teams separate reuse benefits from billing artefacts.

Provider usage fields are only useful when endpoint mappings stay explicit. Different APIs expose cache activity in different buckets, so the same business prompt can be counted differently across services. The control failure is not missing data alone, but inconsistent classification across providers and tiers.

AI cost governance now needs the same discipline as identity audit trails. The programme has to preserve raw usage, billing class and effective price date so reconstructed spend can be checked later. Without that lineage, prompt optimisation becomes a reporting exercise instead of a defensible operational control.

From our research library:

What this signals

AI cost controls are moving from token efficiency to billing integrity. As organisations scale prompt caching, the harder problem is proving that each token was classified correctly across endpoints, tiers and billing periods. That makes usage lineage a governance requirement, not just a finance detail.

Prompt caching exposes a wider measurement gap in AI operations. Teams can have strong reuse economics and still lose control of real spend if retries, output growth and validation calls are not folded into task-level reporting. The programme signal is clear: cost optimisation now has to be audited at the workflow level.


For practitioners

  • Separate cached and uncached token classes Keep cache reads, cache writes and ordinary input distinct in cost models until after pricing is applied, then reconcile the result to the provider invoice. See the AI Infrastructure Workload Identity Guide.
  • Measure cost per completed task Compare before-and-after workloads on a completed-task basis and include output growth, retries and validation calls in the calculation.
  • Preserve endpoint-specific usage mappings Store the model, service tier, currency and effective price date for each request so billing-class mappings can be audited later.
  • Report cached-token share separately Track hit rate, cached-token share and dollar savings side by side so a high reuse rate does not mask a worse cost profile for a feature or tenant.

Key takeaways

  • Prompt caching only looks economical when cache classes are priced and reconciled correctly across the provider lifecycle.
  • Completed-task cost is a better governance metric than token hit rate because retries and output length can erase apparent savings.
  • AI teams need endpoint-specific usage mapping and raw counter preservation so margin reports tie back to provider invoices.

Related NHI Mgmt Group resources: AI Infrastructure Workload Identity Guide · AI Security Platform Buyer's Guide · Enterprise AI Copilot Security Guide


Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, workload identity and secrets management. It helps security and platform teams connect identity controls to the broader systems that depend on them.
NHIMG Editorial Note
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