By Anant MishraEssay
The 200 calls and USD rates are fictional. The calculation holds token lengths constant across routes. A real budget needs observed usage, eligible destinations and effective prices.
Executive Summary
Price a two-model LLM workload by input and output tokens on each route. The same 200 fictional calls cost $2.28 or $6.12 at the same rates.
About the Author
Anant Mishra
Global Head - Technology, AI & ICT | Technology & AI Transformation Executive
Suppose a team routes half its document requests to a lower-priced model. Finance has the call count, the total number of tokens and both models’ prices. Can it work out the token bill? Only if it also knows how the tokens were divided between the models. In the worked example below, the same 200 calls and the same 1.1 million tokens can cost either $2.28 or $6.12. A budget using the average of the two prices gives $4.20 in both cases.
This matters even when the router behaves exactly as intended. A short acknowledgement and a reply to a long case file each count as one request. A router that chooses a model by document length or task complexity also chooses which prices apply to the bulk of the work. Counting the decisions is a poor substitute for counting the tokens those decisions send to each destination.
Price the same 200 calls two ways
Take a fictional text service with two fixed prices. The economy route costs $1 per million input tokens and $4 per million output tokens. The premium route costs $5 and $20 respectively. There are 100 short calls, each with 1,000 input and 300 output tokens, and 100 long calls, each with 9,000 input and 700 output tokens. For this calculation, either route can do either job and the token counts stay fixed. The prices are invented. The choice to count input and output separately follows the structure of the OpenAI API pricing tables.
- Send the long calls to the premium route. Their 900,000 input tokens cost $4.50 and their 70,000 output tokens cost $1.40. The short calls cost $0.22 on economy. Total for the 200 calls is $6.12.
- Send the short calls to the premium route. Their 100,000 input tokens cost $0.50 and their 30,000 output tokens cost $0.60. The long calls cost $1.18 on economy. Total for the same 200 calls is $2.28.
The premium route handles half the calls in each scenario. In the first one it handles 90% of input and 70% of output. In the second it handles 10% and 30%. The $3.84 difference comes entirely from which route carries which tokens. The example holds response lengths constant to isolate that effect. Whether either route produces an acceptable response is a separate question that requires observed outputs.
Build a blended rate that someone can reproduce
Start with one row per serving model and price category. Multiply each row’s input tokens by its input price per million, do the equivalent for output, divide by a million and add the rows. If a budget needs one blended input rate, divide the total input charge by total input tokens and multiply by a million. Repeat for output. A zero-token category has zero charge and no meaningful average rate.
In the first scenario the effective input rate is $4.60 per million. For output, 70% at $20 and 30% at $4 gives $15.20 per million. The one million input tokens cost $4.60 and the 100,000 output tokens cost $1.52, bringing the total to $6.12. Reversing the routes gives effective rates of $1.40 for input and $8.80 for output. The same token volumes then cost $1.40 plus $0.88, or $2.28. A 50/50 blend of the posted prices gives $3 and $12. That shortcut can work when the routes see the same average work per call in each category. It deserves a check whenever the routing rule selects for length.
Ask engineering for a small extract
For one agreed period, ask for the serving model, the number of calls and the input and output totals per model. Keep currency, effective price date and service tier with the rates. Prefer the model that answered the request when a gateway can change destinations. Count a paid follow-up attempt in the cost population even if the application presents the user with a single task. A finance worksheet can perform this calculation without a copy of anyone’s prompt.
Providers expose different categories. OpenAI’s organisation usage endpoint can group completions by model and reports model requests, input tokens and output tokens. Its input total includes cached tokens. If cached input has its own price, identify the relevant subset before applying an ordinary input rate. Retain the original counters so the treatment can be checked later. See the completions usage reference.
If a team proposes moving long documents between destinations, establish which records can use each destination. An internal service handling restricted material might permit only one model or processing region for that workflow. Keep those calls on the eligible route in any comparison. Where an alternative is permitted, collect representative output lengths and assess whether the answers satisfy the task. A low price for a response a reviewer must redo belongs in a different budget.
Use the calculator with the evidence you have
The LLM inference cost calculator accepts one average input length and one average output length for its routing scenario. With reasonably similar route averages, it gives a quick sensitivity check. When the averages diverge, run a separate scenario for each route. Enter that route’s daily volume and average token lengths, put its input and output prices in the large-model price fields, and read the large-model-only baseline. Add the two 30-day baselines. This procedure prices ordinary uncached tokens. Keep separately priced categories in their own calculation.
Sometimes a team has all the token quantities but the model label is missing on a few calls. Ask whether an independent count shows how many calls reached each route in the same window. It may be possible to put defensible limits on the missing charge while the billing owner recovers the labels. The four-call Design study shows exactly which evidence narrows those limits. A useful purchasing note records the observed split, the price assumptions and the one missing fact most likely to change the decision.
Sources
- API pricing by token category — OpenAI · checked 5 December 2026
- Organisation completions usage — OpenAI · checked 5 December 2026
Related reading
Read the publishing standards or suggest a correction.
Continue the conversation
Putting a design decision into practice?
If this essay raises a question for your organisation, discuss the constraints, evidence and implementation choices with Anant Mishra. This is an invitation to talk, not a claim that the examples represent delivered client work.