Cutting Your LLM API Bill: 5 Levers, Measured
The article proposes five ways to reduce an LLM API bill: prompt caching, batching, model routing, token discipline, and self-hosting. Each targets a different part of the cost equation: tokens used, the price charged for them, or whether a provider charges per token at all. Together, they challenge the costly default of sending every request to a frontier model, uncached and synchronously. In the example, caching stable input saves money by avoiding repeated full-price reads. Batching halves prices for work that can wait, while routing sends simpler requests to cheaper models. Token discipline reduces the amount sent, and self-hosting replaces per-token charges with the cost of owning a GPU. The first four levers take the monthly bill from $9,800 to $3,088, a 68.5% reduction. The article’s central point is to stack suitable levers rather than search only for a cheaper model. The savings depend on the workload: caching needs repeated stable content, and batching requires tolerance for delay. Self-hosting is another option, but the example’s $3,088 bill is reached before using it. The article does not give a measured self-hosting saving.
What five levers does the article suggest for lowering an LLM API bill?
The article proposes five ways to reduce an LLM API bill: prompt caching, batching, model routing, token discipline, and self-hosting. Each targets a different part of the cost equation: tokens used, the price charged for them, or whether a provider charges per token at all. Together, they challenge the costly default of sending every request to a frontier model, uncached and synchronously.
In the example, caching stable input saves money by avoiding repeated full-price reads. Batching halves prices for work that can wait, while routing sends simpler requests to cheaper models. Token discipline reduces the amount sent, and self-hosting replaces per-token charges with the cost of owning a GPU. The first four levers take the monthly bill from $9,800 to $3,088, a 68.5% reduction.
The article’s central point is to stack suitable levers rather than search only for a cheaper model. The savings depend on the workload: caching needs repeated stable content, and batching requires tolerance for delay. Self-hosting is another option, but the example’s $3,088 bill is reached before using it. The article does not give a measured self-hosting saving.
What is prompt caching, and why does it make repeated input cheaper?
Prompt caching lets a provider reuse stable text that appears repeatedly in requests, such as system instructions, tool definitions, or reference documents. Without caching, the model is charged to process that input again each time. With a cache hit, the provider skips the full-price re-read, making repeated input much cheaper.
The key mechanism is to put content that stays the same at the start of the context, before request-specific material. In the article’s example, 75% of input is a stable prefix. On Sonnet 5.5, a cache read costs $0.10 per million tokens, compared with $2.00 for standard input, or 5% of the usual price. That lowers the example’s monthly bill from $9,800 to $6,605.
Caching is not free to write: the article gives a write cost of 1.25 times the input price. It therefore works best when many requests reuse a prefix between writes. Even with 20% monthly cache-token rewrites, the example bill is $7,280, still 25.7% below baseline. At 50% churn, the bill reaches $8,630, so the benefit nearly disappears. One-off requests gain nothing from caching.
In the example workload, how much did the monthly bill fall after the four low-cost levers were applied?
The example’s monthly bill falls by $6,712 after the four low-cost levers are applied. It starts at $9,800 and ends at $3,088, which the article describes as a 68.5% reduction. The calculation uses a support agent handling one million requests each month.
The workload has 2,400 input tokens per request, including 1,800 stable tokens, plus 500 output tokens. Caching reduces the bill to $6,605; batching eligible work brings it to $5,449. The article then includes model routing and token discipline among the first four levers that reach $3,088. The stated total is cumulative, not a separate saving from each lever.
The figure is measured arithmetic from a companion notebook using published provider list prices checked November 30, 2026. It assumes the workload runs on Claude Sonnet 5.5 and applies the article’s stated lever assumptions. The $3,088 result does not include self-hosting. That option is presented as a fifth lever, but the provided figures do not quantify its additional savings.
Why can an organization's AI bill rise even while the price per token falls?
An organization’s bill depends on both how much it uses and what each token costs. If token prices fall but the number of tokens consumed rises faster, the total bill can still grow. The article highlights this arithmetic as a reason that cheaper models alone may not solve rising AI costs.
Agentic workflows burn five to 30 times more tokens per task than a chatbot query. A support agent may repeatedly send stable instructions and documents alongside fresh request details, and also generate an answer. In the article’s workload, each request uses 2,400 input tokens and 500 output tokens. At one million requests per month on Sonnet 5.5, the baseline comes to $9,800.
Enterprise generative AI spending reached $37 billion in 2025, up 3.2 times in a year. In a 2026 survey of 101 enterprise technology leaders, 43% said they were already spending more on AI than budgeted. The article’s response is to reduce tokens and apply lower-cost methods where they fit, rather than relying only on falling token prices.
Which kinds of work can use batch processing, and what do they give up in exchange for the discount?
Batch processing is for work that does not need an answer immediately. OpenAI’s Batch API and Anthropic’s Message Batches API offer 50% lower input and output token prices in exchange for a processing window of up to 24 hours. This makes batching a direct way to lower the price of suitable tasks without changing the model or tokens used.
The article lists model evaluations and offline test runs, bulk classification, document summaries that do not serve a live user, and nightly data enrichment as good candidates. In its example, 35% of requests can be handled asynchronously. Moving that work to batch reduces the cumulative bill from $6,605 to $5,449, with the same model and tokens and no quality tradeoff stated.
The exchange is delay: a task may take up to 24 hours rather than return a real-time response. Live chat, real-time agent responses, and interactive coding assistants are poor fits because users are waiting. The article’s practical warning is that teams may leave async-eligible work on synchronous APIs out of habit. If work can wait, it need not pay the synchronous price.
How does routing requests to cheaper models save money, and what quality risk should teams test for?
Model routing sends different requests to models with different prices. Simple tasks can go to a cheaper model, while requests needing multi-step reasoning can go to a frontier model. This matters because the article describes a roughly 100-fold price spread between the cheapest usable model and the frontier, and a 300-fold gap between two models listed in its notebook.
A team can set static rules in advance, such as routing extraction and formatting to a cheap model and complex reasoning to a frontier model. Or it can use a learned router to choose per request. The article cites RouteLLM, whose trained router cut costs by more than two times on benchmarks without compromising response quality. GPT-5 nano is listed at $0.05 per million input tokens, versus $15 for GPT-5 Pro.
Cheaper models may not handle every request as well as a stronger model, so teams should test quality on the kinds of requests they plan to route. The article’s benchmark result is evidence that routing can preserve quality in tested settings, not a guarantee for every workload. Its provided text ends while describing how results held up as underlying models were swapped, so it gives no further details about that test.
What are input and output tokens, and how does their per-token pricing determine an LLM API bill?
Input tokens are the text sent to a model, such as instructions, documents, and the user’s request. Output tokens are the text the model generates in reply. The bill is not one flat price: providers charge for each category, and the number of tokens in each category matters. In simple terms, total cost is input-token cost plus output-token cost.
The article’s support-agent example uses 2,400 input tokens and 500 output tokens per request. On Sonnet 5.5, input costs $2 per million tokens and output costs $10 per million. Across one million requests, that works out to $4,800 for input and $5,000 for output, for a $9,800 monthly baseline. Thus, the smaller number of output tokens contributes slightly more to the bill because each costs more.
This price difference explains why reducing tokens and choosing the right model or processing method can matter. Caching lowers the cost of repeated input, while batching halves input and output prices for eligible work. Token discipline aims to send fewer tokens. The exact bill depends on the quantities of input and output and the prices for the selected model; falling price per token does not guarantee a lower total if usage grows.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web