Is Prompt Caching Actually Lowering Your AI API Bill?

Illustrated infographic summarizing: Is Prompt Caching Actually Lowering Your AI API Bill?

By Greg Nowak. Updated 14 November 2026.

Prompt caching can reduce the cost of repeatedly sending the same opening instructions or reference material to an AI model. The business question is whether those savings survive the rest of the workflow.

An agency needs a brief ready for editorial review. An operations team needs a record that passes validation. Neither gets much value from a cheaper response that needs another attempt. Before scaling an automation, test one recurring workflow and measure the cost of an accepted result. Cache hits help explain that number; they are not the finish line.

Start with what counts as finished

Choose an acceptance rule before changing anything. For document extraction, that might mean all required fields pass validation. For a draft, it might mean an editor accepts it for the next production stage.

API cost per accepted result = all workflow API charges ÷ accepted results.

Include research calls, failed attempts, retries and any requests sent specifically to warm the cache. Count each accepted business result once. For agencies, use a boundary that reflects the deliverable you sell: a single model response may be only one step in producing a client brief.

Track review minutes alongside API spend. If useful, apply an agreed hourly rate to compare total delivery cost. Keep the acceptance rule fixed so that cheaper but less complete work does not appear to be an improvement.

Price the writes as well as the reads

Use the rates for your exact model, processing tier and retention setting. OpenAI's current tables separate ordinary input, cached input, writes and output. For GPT-6.1 Sol and Terra, cached reads cost 0.05 times ordinary input; 30-minute writes cost 1.25 times and 12-hour writes cost 2.5 times. Check the selected tier in the OpenAI pricing tables.

Anthropic's five-minute writes cost 1.25 times base input, while one-hour writes cost twice base input. Reads normally cost 0.1 times, with lower multipliers on some models. Its prompt caching documentation lists the exceptions.

As an illustration, a prefix written once at 1.25 units and read once at 0.1 costs 1.35 units, compared with 2 units for two ordinary input passes. That calculation covers only the reused prefix. Changing input, output and other charges still belong in the workflow total. Longer retention needs enough additional reuse to earn back its higher write price.

Make the reusable opening genuinely reusable

Put stable instructions and shared reference material first, followed by the current assignment. Keep tool definitions in a consistent order. Look for timestamps, random identifiers or changing content near the start that could prevent a match.

OpenAI requires at least 1,024 visible input tokens for a cacheable prefix on GPT-5.6 and later; earlier models differ. On newer models, a shared opening may need an explicit prompt_cache_breakpoint after the stable content. Merely caching a complete request containing changing task data can leave that opening unavailable for reuse. Follow the model-specific OpenAI caching guide.

For recurring briefs, keep editorial rules together and place the new assignment afterwards. Record a prompt version and check representative outputs after rearranging content. Avoid adding filler just to reach an eligibility threshold: assess any expansion against its extra cost and effect on quality.

Test at the pace your team actually works

Compare the existing request construction with one targeted revision. Hold the model, output settings and acceptance criteria steady, and use comparable mixes of routine and difficult tasks.

Include quiet periods, cold starts, bursts and normal concurrency. Replaying requests rapidly can demonstrate reuse while overstating the savings for a workflow used only a few times each afternoon.

Agree on rollout criteria beforehand: lower cost per accepted result, acceptable completion time and no increase in correction work. Record task counts as well as averages; a handful of easy examples should not decide the economics of a larger rollout.

Keep enough usage detail to explain the result

Store the raw usage response with a task identifier, prompt version, model, processing tier, elapsed time, retry count and acceptance status. This lets you trace expensive tasks back to their individual calls.

For OpenAI Responses, record usage.input_tokens_details.cached_tokens and, where applicable, usage.input_tokens_details.cache_write_tokens. Subtract reads and writes from total input before pricing ordinary input, and split writes by lifetime when both are used. See the documented accounting calculation.

Anthropic's usage.input_tokens excludes cache reads and writes. Price cache_read_input_tokens and cache_creation_input_tokens separately, splitting creation by duration where necessary. Applying OpenAI's subtraction formula here would undercount input. The Anthropic usage guidance explains the distinction.

Use the workflow results to choose your next step
What you observe What to investigate Next step
Task cost falls; quality holds Whether timing and task mix were realistic Roll out gradually and monitor.
Reads rise; task cost stays flat Writes, output charges and retries Address the largest remaining expense.
Writes rise; reuse stays low Breakpoints, changing prefixes and request gaps Revise cache configuration.
API spend falls; review time rises Total delivery cost and acceptance quality Resolve the tradeoff before scaling.
Estimates differ from billed costs Missing calls, reporting dates and project scope Reconcile before claiming savings.

Reconcile the bill and set operating limits

Compare application records with provider cost reporting over the same period and project scope. OpenAI's organization Usage API reference includes monetary cost reporting grouped by project and line item. Investigate missing calls and charges outside your token estimate.

If you use LiteLLM, budget_duration controls the reset period. Budget enforcement requires a connected database, and team keys follow team and team-member budgets rather than the owner's personal budget. Check the LiteLLM budget documentation and test a limit being reached.

Assign someone to review spend and exceptions. Repeat the comparison when prompts, models or traffic patterns change.

Get a clear answer for one workflow

I can help inspect request construction, test a focused change and reconcile the charges. Bring a representative workflow and the usage records you have. The aim is a repeatable cost comparison your team can use when deciding what to scale. Discuss an AI cost review with Greg.

Related on GrN.dk

Need help with this kind of work?

Discuss an AI cost review with Greg Get in touch with Greg.

Sources

Latest articles

Let’s Encrypt moves to 64-day certificates on 10 February 2027. Check when each site renews, test the reload and verify the certificate visitors receive.

Work out which Drupal 10 sites can move to Drupal 11 by 9 December, who can resolve each blocker and how to test publishing and rollback before launch.

See how SharePoint access changes reach internal AI search, and test how long revoked content can still appear in results, generated answers, and citations.

At month-end, reconcile Shopify Payments against your bank statement and e-conomic. Use the payout ID to trace fees, refunds, and payouts that reach your bank the following month.

Trace an intermittent NGINX 502 through Cloudflare, upstream attempts, and application logs so you can see where the request failed and who should pick it up.

Find the apps, scripts and printers that still send mail through Microsoft 365 with a mailbox password, then test a replacement before the December 2026 change.

Find subscriptions and insurance expenses in e-conomic that should be spread over several months. See how AI reads the supporting documents and how your finance lead approves the proposed allocations.

Before relying on an AI project briefing, check which files it covered. A practical workflow for tracking documents, recording gaps and verifying key claims.

Check whether your contact form rejects missing or invalid Turnstile tokens, handles failed checks for genuine users and delivers accepted enquiries to your team.

Compare Bing citations, identifiable AI visits and verified enquiries to see which pages deserve attention before you increase your AI search marketing budget.