Own Weights

Input vs output tokens: why output costs more

Input vs output tokens cost: output costs more because the model writes it one token at a time. Learn which side of your bill to cut first, and why.

Updated

Input and output tokens are both billed, and output costs more per token. At Claude list prices, Opus is $4 per million input tokens and $20 per million output tokens, so the same number of tokens can make very different bills depending on which way the text flows. Your own split depends on how long your prompts are compared with your answers.

Do input tokens cost money?

Yes. Every token in a prompt is billed on every call. That includes the system prompt, the task instructions, retrieved documents, tool definitions and earlier turns of a chat. At Claude list prices, Opus is $4 per million input tokens and Haiku is $0.10 per million. Input is the cheaper side of the bill, but a long prompt sent with each of millions of calls is a real line item. Look at your invoice and find the input line before you assume it is small.

Why are output tokens more expensive?

A model reads its input in one pass and can process the whole prompt in parallel. Output works differently. The model produces one token, feeds that token back in, and then computes the next. Each new token needs its own step through the model, and those steps cannot run side by side the way prompt processing can. That sequential work is the expensive part, and it is one reason providers price output higher.

Claude list prices show the gap. Opus is $20 per million output tokens against $4 for input. Haiku is $0.50 against $0.10. Haiku’s prices apply to prompts up to 100K tokens. Anthropic’s Batch API is half price on either side, which matters for work that does not need an answer in real time. For other vendors, check their current pricing page, since rates change.

What share of my LLM bill is output tokens?

There is no typical split, so do not trust a rule of thumb. The mix depends on how long your prompts are compared with your answers. A classification call with a long document and a one-word label is mostly input. A drafting tool that returns pages of text is mostly output. Here is a hypothetical with round numbers. A call sends 1,000 input tokens and gets 1,000 output tokens back, on a made-up model priced at $4 per million input and $20 per million output. The input side costs $0.004, the output side costs $0.02, and output is most of the $0.024 total. Most API responses report input and output token counts separately, usually in a usage field. If your logs drop those counts, add them. Without per-call numbers, your split is a guess. Run the same arithmetic on your own usage logs, one row per call type, and you will know your split.

How to reduce output tokens

Start with a limit. Set a maximum output length that fits the longest good answer your task needs, so one runaway reply cannot drive up the cost of a whole batch. Then ask for less in the prompt. A fixed format helps: a short list, a set of named fields or a one-line label. When the model fills only the fields you asked for, it writes less. Test each change on real examples. A limit set too low cuts answers off mid-sentence and forces retries, and retries can cost more than the tokens you saved. For more tactics, see how to cut tokens per call without hurting output quality.

Which savings work for your input and output mix

Match the lever to the side that dominates. If output is most of the bill, cap and shorten answers first. If the work can wait, move it to the Batch API for half price. If input dominates, trim the system prompt, send fewer retrieved passages and cache the prefix that repeats on every call. Caching only pays when the same text recurs, so check the pattern first. The details are in prompt caching: what it saves and when it doesn’t. Timing trade-offs are in batch APIs vs real-time calls.

Cutting output has limits. Shorter answers can drop detail a reader needs, and a tight cap can break structured output. Measure quality on your own examples before any change ships. Owning a model changes the math too. A self-hosted model is paid for as capacity rather than per token, so it makes sense when volume is high and steady. At low or uneven volume, a per-token API is often the simpler choice.

If you want to see your own input and output split, start with the free AI cost audit. It runs on your machine, reads your code as text, and lists each AI call with its model, estimated cost and whether output length is capped. If the output side is one high-volume task, a call with Own Weights can tell you whether a trained model is worth testing on it. A hosted API is often the simpler choice at low or uneven volume.

Questions

Do input tokens cost money?

Yes. The system prompt, instructions, retrieved text and earlier chat turns are billed as input on every call. At Claude list prices the input side is the cheaper rate, but a long prompt sent with millions of calls still adds up.

Why are output tokens more expensive?

Output is generated in sequence, so the expensive work cannot be spread across the whole answer the way reading a prompt can. Providers price that side higher to reflect it. Check your provider's current pricing page for exact rates, since they change.

How to reduce output tokens?

Set a maximum output length sized to your longest good answer, and ask for a fixed format such as a short list or named fields. Test each change on real examples, because a limit set too low cuts answers off and triggers retries.

What share of my LLM bill is output tokens?

There is no typical split. It depends on how long your prompts are compared with your answers, so measure it from your own usage logs and invoice rather than guessing.