In the FinOps for AI guide
Work it out from the tokens in every call
What does one AI task cost?
Calculator
What one task costs, token by token
Enter the tokens in each model call and how many calls one task takes. The calculator shows the cost per task, where it comes from, and what it adds up to.
Model
Tokens in each call
Instructions cached
Cost per task
$0.256
$38,362 a month and $460,339 a year at 150,000 tasks a month. 80% of the cost is input the application sends.
Per task
- Tokens per task
- 99,200
- Cost per 1,000 tasks
- $256
- Share of cost that is input
- 80%
Prices are per million tokens. The model tiers use December 2026 list prices from major providers. Starting values are Halden Freight's support assistant, which is fictional and illustrative. Nothing you enter is stored or sent.
This LLM cost calculator works out what one AI task costs, such as one support conversation or one processed document, from the tokens in each model call. It splits the cost into instructions, retrieved content, conversation history, the user's message, and the output, so you can see where the money goes. Then it multiplies by your monthly volume.
How to use the calculator
- Pick a model tier, or enter your own input and output prices per million tokens.
- Enter the tokens each call carries. Your gateway or provider logs show these. If you do not have them, start from the defaults.
- Enter how many model calls one task takes. A chat answer is 1. An agent task is often 5 to 20.
- Say whether the instructions are cached, and enter your retry rate and tasks a month.
How it works
Cost per task = (tokens of each kind × its price) × calls per task × (1 + retries). Cached instructions are billed at a tenth of the input price, the cautious end of what the major providers charge for a cache hit. The tiers use December 2026 list prices: $0.10 / $0.50, $2 / $10, $4 / $20, and $8 / $40 per million input and output tokens.
A worked example
Halden Freight's support assistant makes 8 calls per conversation, each carrying 11,800 input tokens and producing 600. At $2 and $10 per million, with 8% retries, one conversation costs $0.256. At 150,000 conversations a month, that is about $460,000 a year. 80% of it is input the application chose to send. The full example is in AI tokenomics.
What to do with the result
Look at the largest line. If it is retrieved content or history, trimming context is the first saving. If it is instructions, turn on caching. Then compare cost per task with what the same work costs another way, in AI unit economics.
Questions leaders ask
How do you calculate the cost of an LLM request?
Multiply the input tokens by the input price and the output tokens by the output price, using prices per million tokens. For a task that takes several calls, add up every call, including retries. Cached input is billed at a much lower rate where the provider supports caching.
How many tokens does a typical AI request use?
It varies widely. A short chat answer may use a few hundred tokens. An application that retrieves documents and resends conversation history often sends 5,000 to 20,000 input tokens per call, and an agent task can use hundreds of thousands of tokens in total.
Why is my AI cost per task higher than expected?
Usually because each call carries more than the user's message: instructions, retrieved documents, and the whole conversation so far, resent every time. Multi-step tasks multiply that. The calculator's breakdown shows which part is largest, which is where to look first.
Keep going
- Free toolsFree FinOps for AI calculators and templates6 tools and 2 downloads, free to use
- The TBM guideWhat is Technology Business Management (TBM)?A way to run technology like a business
- The Operating model guideWhat is an operating model?How a company is set up to deliver its strategy
Last reviewed