How much do 1,000 LLM chat requests cost?
Estimate the API cost of 1,000 chat requests from input and output tokens. Work through short chats, repeated history and retries using dated model prices.
- Author
- Salon Rai
- 4 min read
At a rate of USD 1 per million input tokens and USD 5 per million output tokens, 1,000 chat requests averaging 800 input tokens and 200 output tokens cost USD 1.80 in model token charges. Keep the output the same and send 3,200 input tokens each time, and the cost becomes USD 4.20. Request count alone leaves out the most important part of the estimate: what the model reads and writes on each call.
Pick a rate card and a unit of work
The examples use the published base prices for Claude Haiku 4.5 on Anthropic’s direct application programming interface (API), checked on November 26, 2026. They assume ordinary uncached text input and output. Other models, cached tokens, batch processing, platform fees and separately billed tools can have different rates. The token counts below are illustrative workloads. Anthropic pricing
One chat request here means one model call. A conversation with six user turns may make six calls, and an application that calls a model again after a tool result may make more. Decide whether you are pricing calls, conversations or resolved customer issues before comparing two designs.
Follow the arithmetic for a short chat
Multiply 800 input tokens by 1,000 requests. The total is 800,000 input tokens, or 0.8 million. At USD 1 per million, that contributes USD 0.80. On the output side, 200 tokens per call add up to 200,000 tokens. At USD 5 per million, the replies contribute USD 1.00.
| Example workload for 1,000 calls | Input tokens per call | Output tokens per call | Input charge | Output charge | Total |
|---|---|---|---|---|---|
| Short support turn | 800 | 200 | USD 0.80 | USD 1.00 | USD 1.80 |
| Same reply, longer history | 3,200 | 200 | USD 3.20 | USD 1.00 | USD 4.20 |
| Short input, longer reply | 800 | 500 | USD 0.80 | USD 2.50 | USD 3.30 |
The second row adds USD 2.40 by sending 2,400 extra input tokens on every request. The third puts the extra cost on the output side. A limit of 500 output tokens is a ceiling. Use the number actually generated when reconstructing a bill.
Account for history and retries
Suppose a client sends 800 input tokens on turn one, 1,400 on turn two and 2,000 on turn three. If each turn resubmits the earlier conversation in its input, the three requests report 4,200 input tokens in total. Counting only the final turn drops 2,200 tokens from the calculation. The same reasoning applies to retrieved documents or long instructions included on every turn.
A retry is another attempt. If 20 additional fully billed attempts have the short-turn usage above, they add USD 0.036, bringing the total for 1,000 successful turns to USD 1.836. A failed connection does not tell you how many tokens were billed. Reconcile the provider’s usage records before charging every network error as a complete response.
Apply the calculation to usage rows
This Python example needs only the standard library. The input rows summarize attempts with identical usage. For individual response records, set the count to one. Decimal arithmetic lets you retain fractions of a cent until the final display.
from decimal import Decimal
input_rate = Decimal("1")
output_rate = Decimal("5")
million = Decimal("1000000")
usage = [
# attempt count, uncached input tokens, output tokens
(1000, 800, 200),
(20, 800, 200),
]
input_total = sum(count * incoming for count, incoming, outgoing in usage)
output_total = sum(count * outgoing for count, incoming, outgoing in usage)
cost = (input_total * input_rate + output_total * output_rate) / million
print(f"{input_total:,} input; {output_total:,} output; USD {cost}")
For real traffic, save the model identifier, usage counters and request ID from the response. Keep a separate application-level ID for the user turn so you can count additional attempts. Group by model and billing category before multiplying by rates. For prompt caching, apply the provider’s read and write rates to the corresponding usage fields. The definition of ordinary input tokens matters when adding cache usage to avoid counting the same tokens twice. Anthropic prompt caching documentation
Price a change before rolling it out
Suppose a proposed history summary removes 600 uncached input tokens from each of 1,000 subsequent requests. At the example input rate, that saves USD 0.60. Now include the cost of producing the summaries. If the application makes 100 extra calls, each reading 2,000 input tokens and generating 200 output tokens, those calls cost USD 0.20 for input and USD 0.10 for output. Net token savings in this scenario are USD 0.30.
That conclusion depends on reuse. A conversation that ends immediately after a summary pays the full summarization cost and never uses the shorter history. Group sessions by length when evaluating the change. A small group of long sessions might justify summarization even if applying it to every session would cost more.
Also keep a quality measure beside the cost calculation. For support chat, record whether the customer had to repeat an order number or whether the agent lost the original question. A summary that drops a required detail can create additional calls and change both the input volume and resolution rate you used in the estimate.
Next steps
Take one representative day and calculate both cost per 1,000 model calls and cost per 1,000 completed conversations. Compare the sum with the provider’s usage report for the same period. If long conversations dominate spend, price a shorter-history version on those conversations and recheck answer quality. A cheaper turn that requires two follow-ups can raise the cost of resolving the original issue.

Written by