Topic 2 of 6 · 4 min read
Discounts, surcharges and tool fees
Goal: Pick the cheapest pricing option for a workload from its latency needs, context size and tool calls.
The list price is only the starting point: waiting longer usually earns a discount, asking for speed or sending a very long prompt can add a surcharge, and built-in tools carry their own fees. Match the option to what the job really needs.
Check yourself · 1 of 3
Which job is the best fit for a batch discount?
Why it matters
Two teams can use the same model and pay very different bills. The cheaper team chose the right pricing option for each job. The other paid the interactive price for work nobody was waiting on.
The common options
- Batch processing. You submit many requests and get results later, often within 24 hours. Anthropic and OpenAI both offer a batch discount of about half the normal price. Check each provider's table for the exact figure. It suits overnight jobs: labelling 50,000 support tickets, summarising an archive, running an evaluation.
- Flex or lower-priority tiers. Some providers sell slower, cheaper capacity that may be queued or retried. Good for background work that can tolerate delay.
- Priority or fast tiers. You pay more per token for faster, more reliable responses. Good for a customer-facing chat where a few seconds matter.
- Long-context surcharges. Some models charge a higher rate once a prompt passes a size threshold. A prompt just over the threshold can cost noticeably more per token than one just under it.
- Tool fees. Web search, code execution and file search are often billed per call or per session, on top of the tokens they use. A search-heavy agent can spend more on tool fees than on tokens.
- Stacking. Many modifiers combine. A batch job with cache reads may stack both discounts, while some options exclude each other. Read the rules.
How to choose
Ask three questions. Does anyone wait for the result? How big is the prompt compared with the surcharge threshold? How many tool calls does one task make?
Before and after
Before: A nightly job that tags 20,000 documents calls the model live, one at a time, at the standard rate.
After: The same job runs through the batch API at about half price. The tags arrive by morning, which is all the business needs.
What goes wrong
- Putting latency-tolerant work on the interactive tier.
- Sending a prompt that is a few thousand tokens over a long-context threshold when trimming would keep it under.
- Counting only tokens and forgetting a per-search fee on an agent that searches many times.
Prices and thresholds change, so read the current page before you commit.
Examples
Overnight classification
A company labels 30,000 reviews each night. Nobody reads the labels until 9 am. The batch option fits: same model, about half the price, results by morning.
A search agent's hidden fee
An agent answers each question with eight web searches. The token cost is small, but eight search fees per answer, multiplied by thousands of questions, is the largest line on the invoice.
Key points
- Batch and flex options trade speed for a lower price and suit work nobody is waiting on.
- Priority tiers cost more per token and suit interactive, customer-facing use.
- Some models charge a higher rate for prompts above a size threshold.
- Built-in tools such as web search can carry per-call fees on top of tokens.
- Check whether discounts stack or exclude each other before relying on them.
Common mistakes
- Using the interactive tier for background jobs.
- Ignoring a long-context threshold when sizing prompts.
- Counting tool calls as free.
- Assuming every discount stacks with every other.
Check yourself · 2 of 3
An agent uses web search eight times per answer. Tokens cost $0.02 per answer and each search costs $0.01. What is the cost per answer?
Check yourself · 3 of 3
Your prompt averages 205,000 tokens and the model charges a higher rate above 200,000. What is the most useful first step?
Practice items, not counted towards your mastery.
Start here
- Claude API pricing (opens in a new tab)DocsFree
Anthropic's price table with cache, batch, long-context and tool-fee sections to practise reading.
- OpenAI API pricing (opens in a new tab)DocsFree
OpenAI's per-model table, including cached input and batch prices.
- Gemini API pricing (opens in a new tab)DocsFree
Google's price table with free and paid tiers and separate rates for long prompts.