Start with the part of the bill that changed. A larger monthly total can come from more requests, larger input, longer output, cache misses, a different service tier or repeated failed work. Changing the model before separating those causes makes it difficult to tell whether an optimization actually helped.
Build a baseline that can explain the increase
Group usage by feature and exact deployment, not only by account. Keep request counts, total and cached input, cache writes where billed, output, reasoning convention, tier, extra fees, retries and accepted outcomes. Preserve the period and rate date. Do not mix a production month's usage with a hypothetical cache-hit percentage and call the result a measured saving.
| Observed change | Check | Candidate experiment |
|---|---|---|
| More input for the same task | Conversation history, retrieved chunks, duplicated documents and tool schemas | Remove irrelevant material or retrieve a smaller, evaluated set of evidence. |
| More output or thinking | Actual usage, effort settings, stop reasons and answer completeness | Test a smaller output budget or effort while retaining the same acceptance rules. |
| Fewer cache hits | Prefix stability, TTL, minimum length, write timing and usage counters | Separate stable content from changing values and compare cold and warm requests. |
| A higher price band | Per-request context, service tier, geography and price-effective date | Price the real request distribution and test whether context can be reduced safely. |
| More attempts per accepted result | Failure classes, retry policy, tool loops and validation errors | Fix the repeated failure before substituting a cheaper model. |
Shorten context without deleting the evidence
Remove duplicated instructions, unused tool definitions and irrelevant retrieval results. Keep requirements that the model needs to avoid a wrong action. Evaluate retrieval and summarization against questions with known supporting passages, including cases where the answer is absent or conflicting. A shorter prompt that omits a critical constraint is not a successful cost reduction.
In a growing chat, define which prior turns remain necessary. A summary can preserve a decision but omit the evidence or exact identifier behind it; retain access to the original record when the next task needs those details. Compare the complete workflow, including the model calls and storage needed to retrieve or summarize history.
Measure output limits and reasoning separately
An output cap bounds a request's generation allowance; it does not make the requested artifact shorter and complete. Inspect stop reasons, syntax validity, missing fields and tool completion. If the answer is truncated, a repair call can cost more than the tokens removed from the first response.
Use the exact model's reasoning controls. Do not copy a setting named “extra” or “max” to every model, or assume an effort name has the same behavior across providers. Reasoning may already be included in the reported output total. The calculator makes that accounting convention explicit so it is not billed twice in an estimate.
Tokenizer changes are another source of different usage for identical visible text. Count the representative request on the actual model; a provider's approximate tokenizer comparison is not a fixed multiplier for every document. Keep the old deployment's usage when comparing historical invoices.
Test caching as a sequence of real opportunities
Caching affects eligible repeated input, not every output token or separate tool fee. The current OpenAI guide distinguishes newer models with cache-write charges and explicit breakpoints from earlier implicit-cache contracts. The Claude guide describes model-specific minimums, cache lifetime and separate creation/read counters. Neither establishes that a particular request hit the cache.
Record a cold write, reuse within the TTL and reuse after expiry. Hold the reusable prefix constant, then inspect the returned categories. Repeated unique timestamps or changing content before the intended breakpoint can defeat reuse. Parallel calls sent before a cache entry exists are not the same experiment as sequential warm requests.
Keep a write in its own input category rather than charging ordinary input and a write for the same tokens. The Claude pricing examples and Kimi TTL example show different documented contracts. Compare their assumptions before reusing a formula.
Use batch only when the job can tolerate its behavior
Batch can offer a lower documented rate for eligible work, but adds asynchronous status, partial results and a completion boundary. Preserve request identities, successful outputs and error records. Retry a failed subset rather than every item in an expired job.
Check whether caching, service tier and endpoint features actually combine on the selected product. A discounted cache-read unit is not a discount on an entire workload. Concurrent batch processing does not guarantee a warm cache, and an output that passes JSON validation can still fail the task.
Route tasks with an acceptance test
Select a candidate lower-priced deployment and replay the same tasks, including ambiguous cases and failures. Keep prompt versions, tools, permissions and budgets fixed where possible. Count accepted results, repairs, escalations, latency and review burden. A cheap first call followed by an expensive fallback must include both attempts.
Report total cost divided by accepted outcomes. Keep the denominator honest: a workflow that returns no acceptable result does not have a cheap cost per accepted task. Distinguish provider-reported evaluations from your own acceptance tests and local subjective ratings. Labs can retain the latter without presenting them as independent benchmark measurements.
Control a loop before it starts spending
Bound agent turns, input, output, elapsed time, concurrent work and tool side effects in the application. Stop after repeated identical failures. Validate inputs before invoking a model, and make retry decisions from the actual error class. Retrying an invalid request unchanged does not repair it.
Use account spending controls as another layer. OpenAI's current spend-limit documentation separates alerts from enforced limits and warns that enforcement can lag. An alert does not stop requests, and a provider limit does not replace an application-level session budget. Test the error path without sending paid requests.
Keep the experiment and its limitations
Save the original and revised request shapes, actual usage, rate sources, output evidence and acceptance rules. Report the workload on which a saving occurred and which costs remain outside the calculation. The workload cost examples are explicit scenarios; they are not typical production averages or a promise of a particular percentage saving.