TL;DR: Prompt caching changes AI cost accounting when cache reads, cache writes and ordinary input are priced differently, according to Alectura Labs. Teams need reconciled token classes and task-level comparisons or margin reporting will drift from actual spend.
Editorial analysis by NHI Mgmt Group, based on content published by Alectura Labs: “How to Measure LLM Prompt Cache Savings”.
Key questions
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.
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.
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.
Practitioner guidance
- 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.
- 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.
Bottom line: Prompt caching only looks economical when cache classes are priced and reconciled correctly across the provider lifecycle.
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full 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.
A few things that frame the scale:
- 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.
A question worth separating out:
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.
👉 Read our full editorial: Prompt caching needs separate accounting to measure AI savings