Requesty
Back|NOV '26COST OPTIMIZATION / AI GATEWAY
5 MIN READ|

How to reduce LLM API costs

Last updated

As of November 2026, start with prompt caching, then compare models on cost per solved task and set output limits for work that does not need long answers. From September 21 to November 23, 2026, Requesty's production rankings showed that caching removed 76.5% of the bill across 40 models and 28 providers. Our coding benchmark measured $0.07 per solve for gpt-6-luna and $3.90 for claude-fable-5.1.

Repeated input is the first place to look. Then test models on the tasks you need them to solve: a lower price per token can still lead to a higher cost per result.

Start with repeated input

Prompt caching reduces the cost of repeated prompt content. Check it first because instructions and other context can appear across many requests.

Across Requesty production traffic from September 21 to November 23, 2026, the cache hit rate was 79.6%, while caching removed 76.5% of the bill. The two rates vary by model:

ModelCache hit rateShare of bill removed
gpt-6.1-sol92.1%90.0%
claude-opus-5-586.2%81.9%
gemini-3.8-flash53.9%44.0%
gemini-3.1-flash-lite9.6%6.4%

Source: Requesty rankings, September 21 to November 23, 2026.

A high hit rate does not remove the same share of the whole bill. Check both numbers for your models and workload; our guide to cache read prices across providers covers another part of that calculation.

For OpenAI workloads, cached prefixes must match exactly. Put stable instructions, tool definitions and shared context at the start of the prompt, and place changing content (such as user input) after them. See the OpenAI prompt caching guide and, for Anthropic models, the Anthropic prompt caching documentation.

Reuse stored responses

Exact response caching returns a stored answer when an identical request repeats; semantic caching does so when a new request is close enough in meaning. Prompt caching works differently: it discounts repeated input while the model still generates a fresh answer.

For a public FAQ, you can reuse a stored answer when the product, locale and documentation version match. Our guide to prompt caching versus semantic caching covers permission boundaries and freshness controls.

Compare cost per solved task

In Requesty production traffic from September 21 to November 23, 2026, claude-opus-5-5 handled 10.4% of tokens but accounted for 29.1% of spend. Compare each model's share of spend with its share of tokens to find workloads where a model swap is worth testing.

A low token price does not guarantee a cheaper task if the model uses more tokens. Cost per solve puts the bill next to the number of successful results.

Our coding benchmark, updated October 29, 2026, tested 25 models on 129 private Go backend tasks. Selected results:

ModelCost per solveSuccess rate
gpt-6-luna$0.0765.1%
claude-haiku-5-5$0.1481.4%
gpt-6.1-sol$0.3086.8%
claude-sonnet-5-5$0.5987.6%
claude-opus-5-5$1.0192.2%
gpt-6-astra$2.4087.6%
claude-fable-5.1$3.9089.1%

The cheapest model per solve, gpt-6-luna, also solved a smaller share of tasks than the other models in this table. Which trade-off makes sense depends on which failures your application can accept.

What a model swap could save

Take gpt-6-astra and gpt-6.1-sol: the former cost $2.40 per solve and solved 87.6% of benchmark tasks; the latter cost $0.30 per solve and solved 86.8%.

If those benchmark costs held for a workload needing 1,000 solved tasks, the model cost at $2.40 per solve would be $2,400; at $0.30, it would be $300. That is a difference of $2,100, or 87.5%. Test both models on your own tasks and decide whether the difference in success rate is acceptable before switching.

Token usage deserves a check too. In the October 2026 coding benchmark, gpt-6.1-sol and gemini-4-argon had the same list prices: $2 per million input tokens and $10 per million output tokens. Yet their costs per solve were $0.30 and $2.43, and they used 1.33 million and 5.21 million tokens per task respectively.

For mixed workloads, test a cheaper model on simpler requests and reserve a more expensive model for work that needs it. Our guide to auto routing covers setting routing rules.

Put a limit on output

Output tokens are generated by the model. Both their price and the number generated can change the cost of a task, even when input prices look similar.

In the coding benchmark, gpt-6.1-sol had 5,600 reported output tokens per task and gemini-4-argon had 57,700. Set output and reasoning token limits for tasks that do not need long answers, then test whether the answers remain usable.

Batch work that can wait

OpenAI's Batch API provides a 50% discount and has a 24-hour completion window. If a workload does not need an immediate response, compare the batch price with your current cost before changing models.

Keep batch savings separate from caching and model selection when estimating a bill. A discount on one portion of a workload does not automatically apply to every request.

Put the savings to work

Start with one workload and record its cost per successful task. After each change, compare the same task set again:

LLM cost review

0 of 7 done

Requesty gives you one OpenAI-compatible API with auto caching, auto routing and cost tracking included. Requesty charges 5% on top of model costs. Use the measurements from your first workload to decide which change to apply next.

Frequently asked questions
How can I reduce LLM API costs?
Start with prompt caching, then compare models by cost per successful task and route simpler work to cheaper models. Requesty production traffic recorded 76.5% bill savings from caching between September and November 2026.
How much can prompt caching save on an LLM bill?
Across 40 models and 28 providers in Requesty production traffic from September 21 to November 23, 2026, prompt caching removed 76.5% of the bill. For example, savings were 6.4% for gemini-3.1-flash-lite and 90.0% for gpt-6.1-sol.
How should I compare LLM costs for coding tasks?
Compare cost per solved task alongside the success rate. In Requesty's 129-task Go coding benchmark, gpt-6.1-sol cost $0.30 per solve at an 86.8% success rate, while gpt-6-astra cost $2.40 at 87.6%.
Can batch processing reduce OpenAI API costs?
OpenAI's Batch API provides a 50% discount and has a 24-hour completion window, according to OpenAI's Batch API guide. It is an option for workloads that do not need an immediate response.
How much does Requesty charge?
Requesty charges 5% on top of model costs, with all features included, and is free to start.
Related reading

Start building with Requesty

One line of code. 600+ models. Full control.

Speak to founders