AM.
Back to Overview

When One More Input Token Changes the Price of an LLM Answer

Mandate & Focus

Published December 6, 2026 · 5 Min Read · Applied AI Systems

By Essay

The provider example cites the standard paid Gemini 3.1 Pro Preview table. The worked prices, token counts and results use a separate fictional rate card.

Executive Summary

See how a prompt-length threshold can change the cost of an entire LLM request. Two worked examples show how to estimate a monthly bill by price band.

Article Details
December 6, 2026
5 Min Read
Applied AI Systems

About the Author

AM

Anant Mishra

Global Head - Technology, AI & ICT | Technology & AI Transformation Executive

A team adds an appendix to the prompt its document assistant sends with every question. The change adds little text to the average request. Finance leaves the output budget alone, since nobody expects longer answers. Both decisions sound reasonable. They can still produce the wrong budget if prompt length determines the rate for everything the model reads and writes.

Take one question before the appendix was attached and one after. Which price applied to each? That is a question a daily token total cannot answer. For a model with a whole-request price threshold, assign each request to its price band first. Then add the input and output tokens in each band. The order of those two operations matters.

Find the threshold on the price sheet

On the date of this essay, the standard paid Gemini 3.1 Pro Preview table lists separate input and output prices for prompts up to and including 200,000 tokens and for prompts above that count. Its output line includes thinking tokens. The table attaches the output price to the size of the prompt. A short answer can therefore have a different unit price after a document is attached. Other models and service modes have their own terms. See Google’s Gemini API pricing.

Record three things alongside a budget estimate. Which quantity selects the band? Does a request at exactly the boundary belong to the lower band? Which charges change when the request crosses it? A model’s advertised context window tells you how much material it can accept. It gives you no price for doing so. A contract that charges only for excess tokens would also require different arithmetic from the example below.

What one extra token costs in a worked example

Use a fictional text API to keep the calculation small. Prompts of up to 10,000 tokens cost $2 per million input tokens and $8 per million output tokens. Above 10,000, the whole request costs $4 per million input and $12 per million output. Both examples produce 500 billable output tokens. All figures are in US dollars, with caching and other charges excluded.

  • At 10,000 input tokens: the input costs $0.020 and the output costs $0.004. The request costs 2.40 cents.
  • At 10,001 input tokens: the input costs $0.040004 and the output costs $0.006. The request costs 4.6004 cents.

The extra token explains only a small part of the 2.2004-cent difference. The first 10,000 input tokens now cost two cents more, and the same 500 output tokens cost another 0.2 cents more. The new token itself costs 0.0004 cents. This breakdown is a useful spreadsheet test. A formula that charges the higher rate only on the final token will miss almost the entire change.

Two workloads with the same average prompt

Imagine receiving two lines on a monthly usage report. Each line describes two requests, 20,000 input tokens in all, and 1,000 output tokens in all. In the first workload, both prompts contain exactly 10,000 tokens. Each answer uses 500. The two calls together cost 4.80 cents.

In the second workload, move one input token from the first prompt to the second. The lengths become 9,999 and 10,001. Each answer still uses 500 tokens. The shorter call costs 2.3998 cents and the longer call costs 4.6004 cents. Together they cost 7.0002 cents. An estimator that accepts only the two overall averages would have to give the same answer for both workloads.

You do not have to archive document text to retain this distinction. For the example, two rows per model and price version are enough after classification. Keep a request count, a sum of input tokens and a sum of billable output tokens for each band. The count of long requests alone leaves the amount of output billed at the higher price unresolved. Use more rows if the price sheet distinguishes cached reads, input media or other separately priced usage.

Measure the request that will actually be sent

A document’s token count can differ from the count for the finished prompt. The instructions, question, retrieved passages and conversation history may all take space. Count the assembled input using the model and request configuration you intend to use. After execution, compare that estimate with the returned usage. Google illustrates both steps in Understand and count tokens. For an internal service with restricted documents, store the minimum authorised usage fields needed for the comparison.

For a proposed template change, run the old and new assembly on the same authorised sample. Count how many requests would move bands in either direction. Keep output length explicitly fixed in the first estimate. Then vary it using observed output from similar tasks, especially if the longer prompt asks a different question. This gives a reviewer two separate assumptions to challenge. Reconcile an observed period to the effective price sheet and billing statement before using it to justify a purchase.

Use a monthly calculator one band at a time

In the LLM inference cost calculator, enter the daily volume and average input and output lengths for ordinary requests, with the ordinary prices in the large-model fields. Take the 30-day baseline. Repeat with the long requests and their prices, then add the two baselines. This estimates the two uncached token categories in the example. If a billing period has a different length, use its actual totals for the reconciliation.

When a team proposes splitting documents to stay below a threshold, ask what the reader must receive. Two extracts may still require a final call that reads both, follows a cross-reference and returns a single answer. The companion Design study prices that final call and identifies exactly how much rereading reverses the cost comparison in a fictional manual. It also supplies the question a reviewer would need to score before choosing a design.

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.

Article Discussion & FAQs

Does the output length select the long-context price in this example?
The full input length selects the band in the fictional rate card. At exactly 10,000 input tokens the call is ordinary, even with a large output. The selected output rate still applies to every billable output token.
What can I keep if I cannot retain request text?
After classifying each request against its effective rate card, keep the call count and total input and billable output tokens per model, price version and band. Track any additional priced categories separately under your retention policy.
Can I enter a single average prompt length in the calculator?
For this rate card, average within each price band, enter that band’s counts and rates, then sum the 30-day baselines. A single average is sufficient when every request uses the same rates for those token categories.

Ready to architect operational leverage?

Available for fractional executive leadership, enterprise architecture consulting, and board-level technical advisory.

Initiate Dialogue ↗