# Why Are Input and Output Tokens Priced Differently?

> How providers price the two sides of a model call, how the bill splits in two, and why hidden reasoning pushes the output side up, explained simply for your AI interview.

**In short:** Input tokens are what the model reads and output tokens are what it writes. Output costs more per token on published price lists. The model writes one token at a time, with a full model run for each, while it reads the whole input in one parallel pass.

AI and LLM interview question Q030, LLM fundamentals. Beginner, common (our estimate). From Venkat R. Murty's free Interview Kit: https://designervenkat.online/interview/ai/why-are-input-and-output-tokens-priced-differently

## Say it in 30 seconds

Input tokens are the text the model reads, and output tokens are the text it writes. It reads the input in one parallel pass, but it writes the output one token at a time, and each token needs its own run of the model. That work is slower and heavier to run, and published price lists charge more per output token. Caching can cut the input bill, but it has no effect on output generation. So I watch output length first.

## Say it in 2 minutes

A model reads and writes in two different ways. When you send a prompt, it takes in all the input tokens in one parallel pass. When it answers, it writes one token, then the next, then the next. Every new token needs its own run of the model, and each run has to look back at everything written before it. That is slow and heavy work.

Published price lists show two prices. On Anthropic's pricing page, checked 26 November 2026, Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens, which is five times as much. Google's Vertex AI price list has the same two meters, one for input and one for output and thinking tokens. Reasoning models add hidden thinking tokens, and OpenAI bills those as output too.

Here is a made-up claims assistant. An adjuster sends 30,000 input tokens: the claim file and the policy wording. The reply is 1,500 output tokens. Output is about 5% of all tokens, but about 20% of the bill. So I track output length, cap how long answers can get, and switch on hidden reasoning only for hard cases.

Caching is the other lever, but it only touches input. Anthropic says prompt caching has no effect on output token generation. A cache can cut the cost of a long policy document that gets sent again and again. It cannot make the summary shorter or quicker to write.

## What are input and output tokens, in plain words?

A token is a small piece of text, often a word or part of one. Anthropic's glossary says a token can be a word, a subword, a character or even a byte. The model reads your prompt as tokens, and it writes its answer as tokens.

Think of a claims assessor at an insurer. Reading a 40-page claim file takes one sitting, and she can take in the whole thing at once. Writing the decision letter is slower: she writes a sentence, checks it against the file, then writes the next. A model works the same way. The prompt holds the claim file, and the answer is the summary the adjuster reads.

- **Token:** A small piece of text, often a word or part of a word, that a model reads or writes.
- **Input tokens:** Everything you send: the prompt, the documents and the chat history.
- **Output tokens:** Everything the model writes back, one token at a time.
- **Reasoning tokens:** Hidden thinking a model does before it answers. You don't see them, but they are billed.
- **Prompt caching:** Keeping a long, repeated prompt ready so the provider can reuse it, which cuts the input cost. It does not change output.

## Why does writing cost more work than reading?

The work happens in two phases. First the model reads the whole input in what NVIDIA calls the prefill phase, the reading step. Then it writes the answer in the decode phase, and that is where the extra work sits. Anthropic's glossary describes Claude as autoregressive: it predicts the next word from the text before it.

- **Input: Read in one pass.** All the input tokens go through the model together, so many can be handled at the same time.
- **Output: Written one at a time.** Each new token needs a full model run, and it has to look back at every token before it.

*Diagram, Reading once, writing one token at a time: The model reads the whole claim file in one parallel pass. Then it writes the reply one token at a time, and each token is a full model run. The two sides are billed apart.*
1. The whole claim file goes in at once.
2. The model reads it in one parallel pass, then starts writing.
3. Each token is written in its own run of the model.
4. The finished reply is billed, with output priced higher per token.

> "In the decode phase, the LLM generates output tokens autoregressively one at a time, until a stopping criteria is met." (NVIDIA technical blog, 2023)
>
> "Each sequential output token needs to know all the previous iterations' output states (keys and values)." (NVIDIA technical blog, 2023)

So a long answer is slow for a reason: every new token waits for the one before it.

## How does the bill split into two prices?

Anthropic and Google both meter the two sides apart, with a price for each. On Anthropic's page, prices are in US dollars per million tokens. For Claude Sonnet 5.5 the output price is $10 against $2 for input, so output is five times the input price.

*Diagram, One request, two meters: Counts from one made-up claims reply. Units are a simple price scale: 1 per input token and 5 per output token, matching the five-times gap on Anthropic's list. So 1,500 output tokens weigh as much as 7,500 input tokens.*
1. The 30,000 input tokens are counted at the input rate.
2. The 1,500 output tokens are counted at five times that rate.
3. The input part adds 30,000 units to the bill.
4. The output part adds 7,500 units, a fifth of the bill.

Here is the same split in a few lines of plain Python. The lines that matter are the price ratio and the two shares at the bottom. The adjuster types "Summarise claim 4471 for the adjuster in under 300 words." and the reply is the 1,500 tokens counted above.

```python
# Made-up claims assistant: input and output tokens are counted and priced apart.
INPUT_TOKENS = 30000    # claim file, policy wording and the question
OUTPUT_TOKENS = 1500    # the summary the adjuster reads
OUTPUT_PRICE_RATIO = 5  # output costs 5x input per token (Sonnet 5.5 list: $10 vs $2)

input_units = INPUT_TOKENS * 1
output_units = OUTPUT_TOKENS * OUTPUT_PRICE_RATIO
total_tokens = INPUT_TOKENS + OUTPUT_TOKENS
total_units = input_units + output_units

print(f"Tokens in all: {total_tokens:,}")
print(f"Output share of tokens: {OUTPUT_TOKENS / total_tokens:.1%}")
print(f"Output share of the bill: {output_units / total_units:.1%}")
```

Output:

```text
Tokens in all: 31,500
Output share of tokens: 4.8%
Output share of the bill: 20.0%
```

> **Tip:** Asked how you'd lower the bill? Start with output. Measure output tokens per reply, cap the length, and keep hidden reasoning for the questions that need it.

## Why do reasoning models push the output bill up?

A reasoning model thinks before it answers. That thinking uses reasoning tokens. OpenAI's guide says these take up space in the context window (the text the model can hold at once) and are billed as output tokens, even though you cannot see them through the API.

Made-up example: a contract review agent at a law firm writes a 2,000 token answer for the lawyer, but first thinks for 12,000 reasoning tokens. The bill counts 14,000 output tokens, seven times the answer the lawyer reads.

1. **Cap the output:** A limit on output tokens stops one reply from running on for pages. Less output means a smaller output bill.
2. **Use reasoning for hard cases:** Turn on hidden thinking for the questions that need it, and keep the easy ones fast.
3. **Cache the long input:** Caching cuts the cost of a long prompt that repeats. It does nothing to the output side.

### How would you cut a support bot's output bill?

A support bot that writes long, polite replies can cost more than its input suggests. I would measure the output tokens per reply for a week first, then set a cap and ask for shorter answers. Then I would check that the shorter replies still solve the customer's problem before I roll them out.

## What does the interviewer want to hear?

**A strong answer covers**

- [ ] Input tokens are read in one parallel pass, output tokens are written one at a time.
- [ ] Each output token needs its own model run, so output is slower to produce.
- [ ] Anthropic and Google bill the two sides apart, and Claude Sonnet 5.5 on Anthropic's list charges five times more per output token than per input token.
- [ ] Reasoning tokens are billed as output, so hidden thinking raises the bill.
- [ ] Caching cuts input cost, but has no effect on output generation.
- [ ] Measure both sides, then cap output and use reasoning only where it pays.

**Common traps**

- Trap: "Every token costs the same, so a long answer is just more of the same." Better: Published price lists charge more per output token, and each output token needs its own model run.
- Trap: "Caching makes the whole bill cheaper, including the answer." Better: Caching helps the input side. It has no effect on how output tokens are generated.
- Trap: "Reasoning is free because you can't see the tokens." Better: Hidden reasoning tokens are billed as output, so you pay for thinking you never read.

## Can you spot the right explanation?

**Spot the right explanation:** A support bot reads a 6,000 token prompt and writes a 900 token reply. Which explanation is right?

A. Both sides cost the same, because a token is a token.
B. Output is written one token at a time, with a full model run each, and it is priced higher per token.
C. Input costs more, because the model reads it one token at a time.
D. Output is cheaper, because the model only writes what the user reads.

**Answer:** B. Output tokens are written one at a time, each with a full model run, and published output prices are higher per token. Input is read in one parallel pass.

**Quick check:** Your agent's bill is mostly output, and its replies are long. Which change cuts the output side most?

A. Add prompt caching to the system prompt
B. Cap the reply length and use hidden reasoning only for hard questions
C. Send a longer system prompt
D. Use a bigger context window

**Answer:** B. Caching helps the input side and has no effect on output generation. Shorter replies and less hidden reasoning cut the tokens billed as output.

## Can you answer these from memory?

**Flash cards**

- **Input vs output tokens?** Input: what you send, read in one parallel pass. Output: what it writes, one token at a time.
- **Why is output slower to produce?** Each output token needs its own full model run and a look back at the tokens before it.
- **Who bills hidden thinking?** Reasoning tokens are billed as output tokens, even though you can't see them.
- **Does caching cut output cost?** No. Prompt caching has no effect on output token generation. It helps the input side.
- **What is a token?** A small piece of text, often a word or part of one, that a model reads or writes.
- **Output share in the worked example?** About 5% of the tokens, but about 20% of the bill, with output at five times the input price.

## Likely follow-up questions

- Q029 What do stop sequences and max tokens do? https://designervenkat.online/interview/ai/what-do-stop-sequences-and-max-tokens-do
- Q040 How do you estimate the token count of a text? https://designervenkat.online/interview/ai/how-do-you-estimate-the-token-count-of-a-text
- Q065 Prefill vs decode phases? https://designervenkat.online/interview/ai/prefill-vs-decode-phases
- Q088 What is prompt caching, and how does it save money? https://designervenkat.online/interview/ai/what-is-prompt-caching
- Q187 How do you control agent cost? https://designervenkat.online/interview/ai/how-do-you-control-agent-cost

## Learn it in depth

- [Tokens](https://designervenkat.online/learn/ai-engineering/tokens)
- [Watching cost and speed](https://designervenkat.online/learn/ai-engineering/cost-latency-monitoring)
