Why do output tokens cost more than input tokens, and how should that shape how you build?
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Because they cost the provider more to produce. Input tokens are processed in parallel during prefill - one compute-efficient pass amortised across the whole prompt. Each output token requires its own full sequential forward pass through the model, monopolising memory bandwidth, and long generations occupy KV-cache memory (and a batch slot) for their entire duration. Providers price accordingly: output tokens typically cost ~4-8× input tokens across OpenAI, Anthropic, and Google price lists (check the current list for your model, since ratios shift between generations). And on reasoning models, hidden chain-of-thought/reasoning tokens bill as output tokens - a "one-sentence answer" can carry thousands of billed reasoning tokens behind it.
Full worked answer
Because they cost the provider more to produce. Input tokens are processed in parallel during prefill - one compute-efficient pass amortised across the whole prompt. Each output token requires its own full sequential forward pass through the model, monopolising memory bandwidth, and long generations occupy KV-cache memory (and a batch slot) for their entire duration. Providers price accordingly: output tokens typically cost ~4-8× input tokens across OpenAI, Anthropic, and Google price lists (check the current list for your model, since ratios shift between generations). And on reasoning models, hidden chain-of-thought/reasoning tokens bill as output tokens - a "one-sentence answer" can carry thousands of billed reasoning tokens behind it.
Design implications:
- Be terse on output, generous on input. Moving work from generation to context is usually cheaper: few-shot examples, retrieved docs, schemas in the prompt are input-priced (and cacheable); verbose generated prose is output-priced.
- Cap
max_tokensper feature and tune prompts to answer concisely; ban "let me explain step by step" boilerplate where you don't need it. Tune reasoning-effort settings per task on reasoning models. - Prefer structured, minimal output formats - a JSON object with short fields, not markdown essays. Enum/ID answers instead of restated content.
- Don't make the model echo its input (classic waste: "return the full document with edits" vs returning a diff or edit list).
- Combined with prompt caching - which discounts cached input dramatically - the economics push toward architectures with large stable cached prefixes and small generated outputs.
Sanity-check example: at $3/M input and $15/M output, a request with 4K in / 1K out costs $0.012 + $0.015 - the 1K of output costs more than the 4K of input.
What a good answer covers
- Because they cost the provider more to produce
- Input tokens are processed in parallel during prefill - one compute-efficient pass amortised across the…
- Each output token requires its own full sequential forward pass through the model, monopolising memory…
- Providers price accordingly
- And on reasoning models, hidden chain-of-thought/reasoning tokens bill as output tokens - a…
Key terms: bill as output tokens · Cap max_tokens per feature · Prefer structured, minimal output formats
In the glossary: Prefill · Reasoning model · Few-shot · Prompt caching
Interviewer follow-ups to expect
How do reasoning tokens change your cost model for an agentic loop?
When is it worth paying more output tokens for chain-of-thought?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep