Most OpenAI and Anthropic bills come down with four changes: cache the part of the prompt you send on every call, batch work that can wait, send and ask for fewer tokens, and move easy steps to a cheaper model. If one narrow task still runs at high volume on a top-tier model after that, the bigger saving often comes from replacing the model for that task.
The prices in this guide come from OpenAI's and Anthropic's own pricing and documentation pages as of October 29, 2026. They change often, so check the current rates before you plan around them.
Where the bill actually goes
You pay per token, and output tokens cost more than input tokens. Prices as of October 29, 2026. Anthropic lists Claude Opus 5.5 at $4 per million input tokens and $20 per million output tokens, and Claude Sonnet 5 at $2 and $10. OpenAI lists gpt-6.1-sol at $2 per million input tokens and $10 per million output tokens. A long answer can easily cost more than a long prompt.
Input is where the quiet waste builds up. Most production calls resend the same system prompt, tool definitions, examples and retrieved documents every time, and you pay for all of it on every call. Agent loops make this worse, because each step resends the conversation so far.
Retries and failed parses mean you pay for the same work twice. And many teams send every step of a workflow to their most capable model, including classification or extraction steps that a cheaper tier may handle just as well.
Switching models can move the bill too. Anthropic notes that Claude 4.7 and later models use a newer tokenizer that produces approximately 30% more tokens for the same text, depending on content and workload. Compare cost per task, not just the price per token.
Here is a worked example with made-up round numbers. It is an illustration, not Orchestra or customer data. Say a workflow makes 1 million calls a month on a model priced at $2 per million input tokens and $10 per million output tokens. Each call sends 4,000 input tokens, 3,000 of which are the same instructions and examples every time, and gets back 500 output tokens. That is 4 billion input tokens ($8,000) and 500 million output tokens ($5,000), or $13,000 a month. The repeated 3,000 tokens alone cost $6,000.
If those repeated tokens were read from a cache at a tenth of the input price, the rate on most OpenAI models, they would cost $600 plus the occasional cache write. Models that charge a twentieth for cache reads, such as GPT-6.1 Sol, would bring that to $300. The other 1,000 input tokens per call still cost $2,000. If the answers could be half as long, output would fall to $2,500. Together that takes the month from $13,000 to $5,100 plus cache writes, before any change of model.
Fixes to try first
Start with prompt caching. OpenAI turns it on by default for supported models. When a request starts with the same prefix as a recent one, you pay the cached-input rate for those tokens, which OpenAI says is discounted up to 95%. On GPT-5.6 and later, cache reads cost 0.1 times the normal input rate on most models and 0.05 times on GPT-6.1 Sol and GPT-6.1 Terra, writes cost 1.25 times for the default 30-minute lifetime, and the prefix has to be at least 1,024 tokens long.
Anthropic's prompt caching is opt-in. You add cache_control to the request, either once at the top level or on specific content blocks. Cache hits cost 0.1 times the base input price on most Claude models, and less on a few newer ones. Writing to the default 5-minute cache costs 1.25 times the base input price, and the 1-hour cache costs 2 times.
Caching only works on an exact prefix, so order matters. Put what never changes first, such as tools, the system prompt and examples, and what changes on every call last, such as the user's input and retrieved documents. A timestamp or request ID near the top of the prompt can break every cache hit after it.
Next, batch anything that doesn't need an answer right away. OpenAI's Batch API costs 50% less than the synchronous APIs, comes with a separate pool of higher rate limits, and completes each batch within 24 hours. Anthropic's Message Batches API also charges 50% of standard prices. Most of its batches finish in under an hour, one batch holds up to 100,000 requests or 256 MB, and a batch that isn't done in 24 hours expires. Evals, classifying large datasets and bulk summaries are typical fits.
If batched requests share a long prefix, Anthropic suggests the 1-hour cache, because batches can take longer than 5 minutes to process.
Then send less and ask for less. Trim the system prompt to what the model needs for this step, retrieve fewer and shorter documents, and summarize or drop old conversation turns instead of resending them in full. On the output side, ask for exactly the format you need, such as a label or a short JSON object, and set a sensible maximum length.
Don't set that maximum too tight. In Orchestra's study of 39,962 YouTube comments, the most restrictive prompt cut some answers off before the JSON was finished, which left rows the application couldn't use. The fix was to keep the structured prompt and give the model more room.
Last, move easy steps to a cheaper tier. The price gaps inside one vendor's lineup are large. Anthropic lists Claude Haiku 5.5 at $0.10 per million input tokens and $0.50 per million output tokens for prompts up to 100,000 tokens, against $4 and $20 for Claude Opus 5.5. OpenAI lists gpt-6-luna at $0.10 and $0.50, against $2 and $10 for gpt-6.1-sol. Before you switch a step, test the cheaper model on a few hundred real examples from your own traffic, scored the way your team already judges the work.
When routing helps and when it doesn't
A router sends each request to a model picked by rules or by a small classifier. It helps when traffic is mixed, with many easy requests and a few hard ones, because the easy ones stop paying top-tier prices.
It helps less when the traffic is one narrow task. If every request is the same kind of work, you don't need a decision per request. You need the right model for that task. A router that calls a model to decide also adds its own cost and latency, and one that picks the cheap model too often moves the cost into retries and human fixes. Judge routing the way you'd judge any model change, by the cost of an acceptable result on your own examples.
When to replace the model on a repetitive task
Once caching, batching and trimming are in place, look at what's left. If most of the remaining spend is one narrow task running at high volume, such as classifying messages, extracting fields or choosing the next tool, a smaller model trained for that task can be the larger saving. Orchestra has written about this in four essays.
Stop paying frontier prices for repetitive AI tasks makes the case that a small model fine-tuned for one narrow job can cut its cost sharply. How AI startups keep inference costs from outgrowing revenue argues for measuring the full cost of an acceptable result, corrections included, before moving work. Open-weight models let you keep what your AI learns explains why, at production scale, the value moves to the learning loop around the model. Why rented AI stops compounding covers how your team's everyday corrections can become a model that keeps getting better at your work.
Where Orchestra fits
Orchestra starts by measuring this work. It turns production traces into evals and shows which tasks need a frontier model and which a smaller model could handle. When the numbers justify it, Orchestra can train a specialist model on your own examples.
Orchestra's published success stories show what that can look like. Cedar reduced its model costs by 83%, with per-task savings of 83% to 97.5% on a range of tasks after a second round of optimization. In a CRM agent study on seven AutomationBench tasks, Qwen 3.6 Plus with a revised prompt cost 75.5% less per run than Sonnet 4.6 and scored 13.1% higher on mean task score, over 10 runs for Qwen and 3 for Sonnet. In a purchase-intent study, a 30B open model post-trained by Orchestra processed 39,962 comments for $2.82 in model cost, against $12.48 on Sonnet, with 13 outputs to retry.
Does prompt caching reduce OpenAI costs?
Yes, when requests share the same prefix. OpenAI turns prompt caching on by default for supported models and bills reused tokens at a cached-input rate it says is discounted up to 95%. On GPT-5.6 and later, cache reads cost 0.1 times the normal input rate on most models, cache writes cost 1.25 times for the default 30-minute lifetime, and the prefix must be at least 1,024 tokens long.
How does Anthropic price prompt caching for Claude?
Caching on the Claude Messages API is opt-in through the cache_control field. Cache hits cost 0.1 times the base input price on most Claude models, and less on a few newer ones. Writing to the default 5-minute cache costs 1.25 times the base input price, and writing to the 1-hour cache costs 2 times.
Is the Batch API cheaper?
Yes, for work that can wait. OpenAI's Batch API costs 50% less than its synchronous APIs, and each batch completes within 24 hours. Anthropic's Message Batches API charges 50% of standard prices, most batches finish in under an hour, and batches that don't finish within 24 hours expire.
When is a fine-tuned small model cheaper than GPT or Claude?
Often when one narrow task runs at high volume and your team can say what an acceptable result looks like. Compare the full cost of an acceptable result, including retries and human corrections, not just the price per token. In one Orchestra study, a post-trained 30B open model processed 39,962 comments for $2.82 in model cost, with 39,949 valid outputs.
Follow the evidence.
- OpenAI API pricing
- OpenAI prompt caching guide
- OpenAI Batch API guide
- Anthropic pricing
- Anthropic prompt caching
- Anthropic Message Batches API
- Cedar reduces model costs by 83%
- Teaching a CRM agent to finish the job
- Finding purchase intent in 40,000 comments
- Stop paying frontier prices for repetitive AI tasks
- How AI startups keep inference costs from outgrowing revenue
- Open-weight models let you keep what your AI learns
- Why rented AI stops compounding, and how to get it back