What every token costs
Your team wants a chat assistant to write a summary of every meeting’s notes for the finance team, about a thousand times a month. Before anyone approves it, someone asks what it costs, and someone else asks why last week’s trial ignored the rule about bullet length that was in the instructions. Both answers come from counting tokens. In this lesson we price a short prompt and a long one on a small model and a large one. Then we find the rule that a long instruction file buried.
The lesson on what the model can see counted a page of text in tokens. This lesson puts a price on each one.
The same task, asked twice
Section titled “The same task, asked twice”The short prompt states the task, the format and the audience, then gives the notes.
Summarize these meeting notes in five bullet points for the finance team.Keep each bullet under 20 words.
Meeting notes, project Lantern, 14 March.Present: Ana, Bram, Chidi. The supplier moved the delivery of the sensorboards from April to June. Ana will confirm the June date in writing byFriday. The installation guide needs a shorter version with one photo perstep. The pilot in the Utrecht warehouse moves to July. Next meeting on28 March.The long prompt asks for the same summary of the same meeting. It opens with a greeting, explains what project Lantern is, says why the finance team is busy, apologizes for the trouble, gives the notes in full sentences and closes with thanks. It is the kind of prompt people write when they treat the assistant as a colleague. Counted with the same rule of thumb as the last lesson, about four characters per token, the two come out like this, with the answer the model writes added for the price table below. Both counts are estimates, and the vendor’s own tokenizer gives the exact number.
short prompt: 111 tokens (estimate)long prompt: 343 tokens (estimate)difference: 232 tokensanswer: 120 tokens (assumed)The long prompt is three times the short one, and every extra token is a token the model reads before it writes a word. Most of the extra text is about you and your feelings about the task. The summary comes out the same without it.
What a token costs
Section titled “What a token costs”A vendor charges by the million tokens, with one price for the tokens the model reads (input) and a higher price for the tokens it writes (output). The model reads the whole prompt in one pass, and then each token of the answer takes a pass of its own through the model. A written token costs the vendor more than a read one for that reason. The table below uses round example numbers for “a small model” and “a large model”, chosen for this lesson. They follow the pattern on the market in 2026, where a vendor’s large model costs several times its small one and output costs about five times input. The current prices are on the vendor pricing pages [1], and they change more often than this page does.
| Example prices, per million tokens | Input | Output |
|---|---|---|
| A small model | $0.60 | $3 |
| A large model | $6 | $30 |
A call is the prompt going in and the answer coming out. Suppose every summary is the same five bullets, about 120 tokens of output. Priced at the example numbers, once and for the thousand summaries a month the team at the top of the page wants, the two prompts come to this.
one call 1,000 callssmall model, short prompt $0.0004 $0.43small model, long prompt $0.0006 $0.57large model, short prompt $0.0043 $4.27large model, long prompt $0.0057 $5.66Read the table down and then across. Down, the choice of model moves the price by ten times. Across, the extra 232 tokens of politeness move it by about a third. One call costs a fraction of a cent on either model, which is why nobody notices the price of one chat. At a thousand calls a month the summaries cost the team under a dollar on the small model and about five on the large one, which answers the first question from the top of the page. The same table for a support team that makes a hundred times as many calls has two more zeros in every row, and there the choice of model is a line in the budget.
The answer is often the expensive part of a call, because output costs more per token, so asking for five bullets instead of a page saves more than trimming a greeting. A document you paste is input, so a 3,000-token report attached to every call costs more than any prompt you would write by hand. A long chat sends the whole conversation again with every message, so the tenth turn of a chat costs the tokens of the ten turns before it, on top of the new ones [2].
Which change saves the most?
Section titled “Which change saves the most?”The lesson prices a call as input tokens (the prompt) at one price and output tokens (the answer) at a higher price, and shows a table where the same task costs a third more with a verbose prompt and ten times more on a large model.
A colleague runs a summary call many thousands of times a month and wants to lower the bill. Which one change saves the most money?
Which tokens carry the higher price, and how many of them does each change remove?
Small model or large
Section titled “Small model or large”Vendors publish models in a family with several sizes, and the sizes share a name and a release date but differ in price and in what they can do. The larger model follows a complex instruction more reliably and reasons through more steps, and it costs more per token and produces each token more slowly [3]. The smaller one is cheaper and faster, and for a narrow task with a clear instruction, such as a five-bullet summary in a fixed format, it is often good enough [4].
The time you wait has the same structure as the price. A model produces its answer one token at a time, as the lesson on how models work showed. So a long answer takes longer than a short one on any model, and a large model takes longer per token than a small one. A long prompt adds a smaller delay up front, while the model reads it. Cost and latency both grow with every token, and both grow faster on a larger model.
Which model fits which task is a decision of its own, and the course on using agents has a lesson that puts a small and a large model side by side on the same inputs. Here the point is only what changes when you switch: the price moves by a factor of several, and the wait changes too.
What does the switch change?
Section titled “What does the switch change?”The lesson follows a team that sends a short prompt asking for a five-bullet summary of meeting notes, and prices it on a small and a large model from the same vendor family.
The team moves the meeting summaries from the large model to the small one. The prompt and the five bullets stay the same. What happens to the price and the wait of each call?
The token counts stay the same. Does the price or the speed of a token depend on the model?
The rule that got buried
Section titled “The rule that got buried”Now the second question from the top of the page. Last week’s trial used an instruction file, a page of rules the team wrote once and pasted at the start of every chat. Rule seven said “keep each bullet under 20 words”. The summary that came back had bullets of 40 words. The file below is illustrative, written for this lesson, and shortened to twelve rules from the twenty-two the team had.
You summarize meeting notes for the finance team of project Lantern.1. Write in plain English for readers outside the project.2. Use the past tense for what happened and the future tense for what is planned.3. Start with the decision that affects the budget most.4. Name the person who owns each action, as in the notes.5. Give every date as day and month, as in "14 March".6. Do not mention people who were absent.7. Keep each bullet under 20 words.8. Use "supplier" rather than a company name.9. Put open questions in a final bullet that starts with "Open:".10. Do not add facts that are not in the notes.11. If a meeting had no decision, say so in the first bullet.12. Write "sensor boards", never "sensors" or "boards".Every line of the file is a token in the context window like every other, and a rule stated once competes with everything that comes after it: the other eleven rules, the notes, and the answer the model is writing. The model has no list of rules it checks off. It predicts the next token from the whole window, and a rule in the middle of a long file weighs less in that prediction than the same rule at the top or at the bottom. Liu and colleagues measured the effect on facts: models found a fact in the middle of a long context less reliably than the same fact at either end [5]. The lesson on how models work named this instruction dilution, and the lesson on the system prompt showed that a system prompt is subject to it too.
Dilution here is about one prompt or one file, where an instruction competes with the text after it. A long chat has a second, separate effect: the window fills, early turns fall out or get summarized, and the model loses the facts rather than weighing them less. The last lesson covered that under when the early facts fall out, and a later lesson on memory returns to it.
Shorten the file first. A rule the model keeps anyway (“write in plain English”) doesn’t help and dilutes the rules that matter. Then look at the rules that are left and ask, for each one, what happens when the model drops it. A rule you can live without once in a while stays in the file, near the top. A rule that must hold every time belongs in a check that a person or a program runs on the answer, such as counting the words in each bullet, because prose in an instruction file is a strong default and never a guarantee [4].
Why did rule seven fail?
Section titled “Why did rule seven fail?”A team's instruction file has twelve rules. Rule seven, about bullet length, was ignored in the last summary. The lesson explains that every rule is tokens in the context window and that a rule competes with everything after it.
The instruction file above was pasted as the first message of a new chat, followed by the notes. The summary ignored rule seven. Which explanation fits?
How does the model treat a rule, and what does it treat the rest of the window as?
Which two are dilution at work?
Section titled “Which two are dilution at work?”Instruction dilution is the weakening of an instruction as more text piles up after it in one prompt or file. A separate effect, in a long chat, is that early messages fall out of the context window.
Which two of these are instruction dilution?
In each case, is the rule still in the window and competing with more text, or has it left the window?
Which token is the cheapest?
Section titled “Which token is the cheapest?”Vendors charge per million tokens, with one price for input tokens (what the model reads) and a higher price for output tokens (what the model writes), and a larger model in a family costs several times a smaller one.
At the example prices in this lesson, which of these tokens costs the least?
Which price is lower, input or output, and which model in a family is cheaper per token?
Why is this answer slow?
Section titled “Why is this answer slow?”A model writes its answer one token at a time. The lesson says that the wait for an answer grows with the answer length and with the size of the model, and that a long prompt adds a smaller delay up front.
A colleague asks the large model for a two-page report and waits a long time for it. Which explanation fits?
Count what the model writes, and ask how long each token takes on this model.
Exercise
Open a chat assistant and find the longest prompt you sent this week. Paste it into a new chat and ask the assistant for an approximate token count, or use the token counting page your vendor publishes. Then count the tokens of the answer you got the same way. Price the call at the example numbers from this lesson, for the small model and the large one, once and for a thousand calls a month. Rewrite the prompt with only the task, the format, the audience and the material, count it again and price it again.
A good result is two lines: the token counts of your prompt and the answer with the two monthly prices, and the token count of the rewrite with its two prices. The counts are approximate, because the assistant estimates them the way the rule of thumb does. Then answer this: of the money in your line, how much is the answer, and what would change if you asked for half as much of it?
Stretch: Take an instruction file or a long list of rules you use with a chat assistant, count its rules, and mark each one as a default you can live without now and then or a rule that must always hold. Move one of the second kind into a check you run on the answer, and cut two of the first kind.
Recap
- A vendor charges per million tokens, with a lower price for the tokens the model reads and a higher one for the tokens it writes, and a large model in a family costs several times a small one [1].
- One call costs a fraction of a cent, and the bill comes from the number of calls. The choice of model moves the price by a factor, the length of the prompt and the answer by a share, and a long chat pays for every earlier turn again [2].
- The wait grows the same way, because a model writes one token at a time. A long answer on a large model is the slow case.
- A rule in an instruction file is tokens like everything else and competes with all the text after it, so a rule in the middle of a long file weighs less than one at either end [5]. Shorten the file, and move a rule that must always hold into a check on the answer.
You can now
- Explains tokens, context and sampling in plain words
References
Section titled “References”- Anthropic. Pricing. Claude Platform documentation. Reference.
Claude docs pricing - Addy Osmani, Ivar Soares Urdalen, Leo Simons. How agents think: tokens and context, reasoning strategies, model choice, system prompts. Agent Engineer Course. Course.
AEC-02 - Anthropic. Models overview. Claude Platform documentation. Reference.
Claude docs models-overview - Anthropic. AI capabilities and limitations. Claude Academy. Course.
Academy ai-capabilities-and-limitations - Nelson F. Liu, Kevin Lin, John Hewitt and 4 others. Lost in the Middle: How Language Models Use Long Contexts. Transactions of the Association for Computational Linguistics 12 (2024), 157-173. Paper.
Liu 2024