← all articles

Why output tokens dominate the bill

The line on the price list people skim past

Open almost any model provider’s pricing page and you’ll see two numbers per model: a price for input tokens and a price for output tokens. The output number is higher. On most published price lists it’s a multiple of the input price, and the multiple is large enough to matter.

People tend to focus on the input side, for understandable reasons. Input is where the big numbers live. Long system prompts, retrieved documents, conversation history and pasted files make input token counts large, and most cost-saving advice, especially prompt caching, targets input.

Then the invoice arrives, and a surprising share of it is output. No single call wrote an enormous amount. Every call wrote a bit more than it needed to, and every output token cost several times what an input token did.

This piece is about that side of the bill. Caching is the standard answer for input costs, and it’s covered elsewhere. Caching does nothing for output, because output is generated fresh every time. The levers for output are different: how you prompt, how you shape the response format, which settings you use, and whether you’ve turned on a reasoning mode that writes thousands of tokens you never see.

The short version: output is where verbosity turns into money, and most applications produce far more of it than their users or their code actually need.

Why output costs more

The price difference reflects how models actually do the work, and knowing why helps you reason about what to change.

When a model processes input, it can handle all the input tokens in parallel. The whole prompt goes through the network in one pass, and modern hardware is very good at that kind of batch computation.

Output is different. The model generates one token at a time. Each new token depends on all the tokens before it, so the model has to run a forward pass for every single output token, in sequence. A response of a thousand tokens means a thousand sequential steps. That’s slower per token and ties up hardware for longer.

Providers price accordingly. Input is cheap because it’s efficient to process. Output is expensive because it’s inherently sequential and occupies the model for the whole generation.

That also explains why output drives latency. Time to first token depends mostly on input size, and total response time depends heavily on output length. A long answer takes longer to arrive, which users notice, and costs more, which you notice.

So cutting output is a double win. Shorter responses are cheaper and faster. The only question is how to get them without losing what you actually need from the model.

How the multiple plays out

To see why output often dominates, it helps to walk through the arithmetic with symbols rather than specific prices.

Say input costs I per million tokens and output costs O per million, where O is some multiple of I. Call that multiple M, so O equals M times I.

A call with X input tokens and Y output tokens costs X times I plus Y times M times I, over a million. Output’s share of the cost is Y times M divided by (X plus Y times M).

If X is much larger than Y, input dominates. A retrieval query with a long context and a one-line answer is mostly input cost.

But the balance shifts fast. If the output is even a modest fraction of the input, the multiple M makes output a large share. Suppose output is a quarter of input in token count. With M around four, output cost equals input cost. With a larger M, output is the bigger half.

Now add caching. If a large part of the input is cached and billed at a discount, the effective input cost falls, and output’s share rises further. Teams that have worked hard on caching can find that output has quietly become the largest line on their bill.

Plug in your own provider’s current prices and your own typical token counts. For many applications, especially anything that writes prose, code or explanations, output is where most of the money goes.

Verbosity is the default

Models are verbose by default, and that’s a large part of the problem.

Chat-tuned models are trained to be helpful, and helpful often gets expressed as thorough. Ask a simple question and you’ll often get a restatement of the question, a short preamble, the answer, an explanation of the answer, some caveats, and an offer to help further. For a person chatting, some of that is pleasant. For an application that needs one fact, all of it except the answer is paid waste.

Common sources of excess output include restating or summarising the input before answering; preambles such as a line thanking you for asking or announcing that the information follows; explaining reasoning when you only wanted the result; caveats and disclaimers that don’t apply to your use case; closing offers of further help; markdown formatting, headings and bullet points your code strips out anyway; and repeating the answer in a summary at the end.

None of these is harmful on its own. Together they can double or triple the length of a response. At output prices, that’s a large multiplier on a large share of the bill.

The fix starts with telling the model what you actually want, and being specific about what you don’t.

Prompting for shorter answers

The simplest lever is the prompt itself, and it works better than people expect when the instructions are specific.

Vague instructions like “be concise” help a little. Specific ones help much more. Tell the model the exact form of the answer: “Reply with only the category name.” “Answer in one sentence.” “Return the corrected code only, with no explanation.” “Do not restate the question.”

Say what to leave out. “No preamble. No closing remarks. No caveats unless the answer depends on them.” Models follow explicit exclusions more reliably than implied ones.

Give an example. A single example of the desired response, short and bare, anchors the length and style more effectively than any description. If the example is one line, the model tends to reply in one line.

Put the instructions where they’ll be seen. In most APIs that means the system prompt for standing rules and the end of the user message for task-specific ones. Instructions buried in the middle of a long context tend to lose force.

Match the instruction to the consumer. If a person will read the answer, you may want a sentence of explanation. If code will parse it, you want nothing but the value.

Test it. Run a batch of real inputs, look at the output lengths, and compare with and without the new instructions. The change can be large, and it costs nothing to try.

Setting a hard ceiling

Prompts shape the average. A maximum output setting caps the worst case.

Most APIs have a parameter for the maximum number of output tokens per call. When the model reaches it, generation stops, and the response is marked as truncated. You pay only for what was generated.

This is a guardrail, not a style tool. Setting the limit too low cuts off answers mid-sentence, which is usually worse than a long answer. The right value depends on the task: a classification needs a handful of tokens, a short summary a few hundred, a code change possibly more.

The value of a ceiling is in catching the outliers. Occasionally a model will produce a runaway response, repeating itself, listing far more items than asked, or generating long code when a small change was wanted. Without a limit, that one response can cost as much as dozens of normal ones. With a sensible limit, it’s capped.

Check how your code handles truncation. Most APIs report a stop reason, telling you whether the model finished naturally or hit the limit. Log that. A rising rate of truncated responses means either the limit is too tight for the task or the model has started rambling, and both are worth knowing.

Stop sequences are a related tool. You can tell the API to stop generating when a particular string appears. If your format has a natural end marker, stopping there prevents the model from adding extra material after it.

Structured output and the shape of the schema

When your code consumes the output, structured output is one of the strongest tools for shortening it, if you design the schema with length in mind.

A schema constrains the response to specific fields, so the model can’t add preambles, explanations or closing remarks. That alone removes a lot of waste.

The schema’s design matters too. Field names are output tokens, generated on every call. A field called customer_sentiment_classification_label costs more than one called sentiment, on every single response. Over millions of calls, verbose keys add up.

Enums help twice. They keep the value short and they keep it valid. A sentiment field with an enum of three short values produces a token or two. A free-text sentiment field might produce a sentence.

Ask for identifiers instead of text. If the model is choosing from a list of options you provided, have it return the option’s ID rather than repeating the option’s full text. If it’s pointing to a passage in a document, return the passage number or offsets rather than quoting it.

Avoid optional explanation fields unless you use them. A reasoning field that your code ignores is pure output cost. If you want the reasoning for debugging, include it only on a sample of calls.

Keep nesting shallow. Deeply nested structures repeat keys and brackets. Flat structures are shorter and, as a bonus, tend to validate more reliably.

Reasoning modes and the tokens you don’t see

Reasoning modes have changed the output side of the bill more than anything else in the last couple of years.

Many models can now think before answering, generating a chain of intermediate reasoning that improves accuracy on hard problems. On most APIs, those reasoning tokens are billed as output tokens. Some providers show you the reasoning, some show a summary, and some hide it entirely. Either way, you pay for it.

The amount can be large. A question with a short visible answer might generate several thousand reasoning tokens first. On a model where reasoning is always on, every call carries that overhead.

This is the single most important thing to check when output costs look higher than expected. Look at the usage figures in the API response. Many providers report reasoning tokens separately from visible output. If reasoning tokens are a large multiple of the visible answer, that’s where the money is going.

The controls vary. Some models let you set a reasoning effort level, a thinking budget in tokens, or turn reasoning off for specific calls. Use the lowest setting that gives acceptable results for each task. Routine classification, extraction and formatting rarely benefit from extended reasoning. Multi-step problem solving, hard maths and complex code often do.

We’ve covered when reasoning pays off in more detail separately. The output-cost point is simple: reasoning is output, it’s priced as output, and leaving it on everywhere is one of the fastest ways to inflate a bill.

Agents write more than their answers

Agent workloads have their own output profile, and it’s easy to underestimate.

At each step of an agent loop, the model produces output: its reasoning about what to do next, the arguments for a tool call, and sometimes a running commentary on progress. Tool call arguments are output tokens. If an agent writes a long search query, a large block of code to execute, or a full file to save, every character of that is billed at output rates.

Then the loop resends it. Each step’s output becomes part of the context for the next step, billed again as input. So an agent that writes verbose plans or restates its progress at every step pays output price once and input price on every subsequent step.

Several patterns inflate agent output. Planning text that restates the whole task before each action. Tool calls that pass large payloads when a reference would do, such as passing a whole document to a tool when a file path would work. Narrating every step for a user who isn’t watching. Final answers that summarise everything the agent did.

The fixes mirror the ones for single calls. Tell the agent to keep its reasoning between steps brief. Design tools to accept identifiers and paths instead of full content. Turn off progress narration for background tasks. Ask for a final result in a specific, short format.

Where the model supports it, reasoning effort settings matter even more in agents, because the reasoning overhead repeats at every step. An agent running twenty steps with high reasoning effort can generate far more hidden output than visible work.

Multiple candidates and regenerate buttons

Some patterns generate several outputs for every one that gets used, and each of them multiplies the output bill directly.

Many APIs let you request more than one completion per call. That’s useful for picking the best of several drafts or for voting across answers to improve reliability. It also means paying for every candidate. Three candidates is three times the output cost, and the input is often billed once, so the output share jumps.

Self-consistency techniques, where the model answers the same question several times and the most common answer wins, work the same way. They can improve accuracy on some tasks, and they multiply output.

Regenerate buttons in user interfaces are the consumer version. Every regeneration is a full new output. If users regenerate often, that’s a signal the first answer isn’t good enough, and fixing the prompt may be cheaper than paying for the retries.

Retries on failed validation are another source. If structured output fails your schema check and you retry, you pay for the failed output and the new one. A high retry rate on a feature with long outputs can be a noticeable cost.

None of these is wrong. Best-of-several and voting can be worth it where quality matters. The point is to know they’re there. Log how many completions each feature generates per useful result, and check that the multiplier is earning its keep.

Code generation and the full-file problem

Coding tools are a particularly heavy source of output, and there’s a specific pattern that makes it worse.

When a model is asked to change a file, the naive approach is to have it return the whole file with the change applied. For a small change to a large file, that means regenerating hundreds of lines that didn’t change. Every one of those lines is output, billed at output rates.

The alternative is asking for only the change. That can be a diff, a search-and-replace block, or an instruction naming the function to replace along with its new body. The model generates only what’s new, and your code applies it.

Most mature coding assistants already work this way, using edit formats that express changes rather than whole files. If you’re building your own code-generation workflow, it’s worth doing the same. The output savings on large files are substantial, and latency drops with them.

The trade-off is reliability. Diff-style formats are easier for models to get subtly wrong, such as mismatched context lines or incorrect line numbers. You need code that applies the edit and checks it, and a fallback when it fails. For small files, returning the whole file may be simpler and cheap enough.

The same principle applies beyond code. Anywhere you ask a model to revise a document, asking for the changed sections rather than the whole document cuts output a lot.

Summaries, rewrites and the length of the input

Some tasks have output length tied to input length, and those need specific handling.

Translation, rewriting, reformatting and proofreading all tend to produce output roughly as long as the input. A document of ten thousand tokens in produces something close to ten thousand tokens out. At output prices, that’s much more expensive than the input side of the same call.

For these tasks, the first question is whether you need the whole thing regenerated. Proofreading, for example, can return a list of corrections instead of a corrected copy. Reformatting can sometimes be done in code, with the model only handling the parts that need judgment.

Summaries are the opposite: long input, short output. The risk there is summaries that aren’t really summaries, running to half the length of the original. Specify the length you want in concrete terms, such as a number of sentences or bullet points, and give an example.

Then there’s the choice of model. For tasks where output length is inherently high, such as translation or bulk rewriting, a smaller, cheaper model may be good enough, and the output-price difference between tiers compounds with the high output volume.

Batch endpoints are also worth a look for these jobs. Many providers discount batch processing, which applies to output as well as input, in exchange for slower turnaround. For bulk rewriting that doesn’t need an answer in seconds, that can cut the bill significantly.

Streaming, cancellation and wasted generation

Streaming changes how output feels to users, and it can also change how much of it you pay for, if you use it well.

When a response streams, tokens arrive as they’re generated. Users start reading sooner, which improves perceived speed. The cost is the same as a non-streamed response of the same length, since you pay for every token generated.

Where streaming helps cost is cancellation. If a user stops reading, navigates away or clicks a stop button, you can close the connection. On most APIs, generation stops soon after, and you’re billed for the tokens produced up to that point rather than the full response. Check your provider’s documentation on how cancellation is handled and billed, because details vary.

That matters for interfaces where users often don’t need the full answer. A user who got what they needed from the first paragraph doesn’t need the next five. Giving them an easy way to stop, and actually closing the connection when they do, saves output on every such case.

The flip side is generation that nobody sees. A background task that streams to a log, or a response the user abandoned while your server kept reading, costs the same as one that was read in full. Make sure your code stops consuming the stream when the result is no longer needed.

Streaming also lets you apply your own stop conditions. If your code detects that the response has reached its useful end, such as a closing tag or a complete JSON object, it can stop reading and close the connection rather than letting the model add trailing material.

Chat products and conversation length

In chat applications, output costs grow in a way that’s easy to miss.

Each assistant reply is output on the turn it’s generated. It then becomes part of the conversation history and is sent as input on every following turn. So a verbose reply costs output price once and input price again on every subsequent turn for the rest of the conversation.

That means verbosity in chat is doubly expensive. A long reply at turn three is paid for at output rates at turn three, then at input rates on every turn after that.

Caching softens the input side, since the conversation history is a stable prefix. But the output cost at generation time is unavoidable, and long replies also make the context grow faster, so conversations hit context limits sooner.

The same prompting techniques help here. A system prompt that sets a default length, such as a few sentences unless the user asks for more, reduces both costs. So does trimming or summarising older assistant replies before resending them.

For products where users genuinely want detailed answers, you can’t and shouldn’t cut too far. But there’s often a lot of room between what users want and what the model produces by default, especially in preambles and closing remarks that nobody reads.

Choosing models with output price in mind

When a workload is output-heavy, the way you compare models should change.

Most model comparisons lead with the input price, or quote a blended figure that assumes a typical input-to-output ratio. If your workload writes a lot, that blend understates the difference between models. Compare output prices directly, and weight them by your actual ratio.

Output multiples differ between providers and between tiers. Two models with similar input prices can have quite different output prices. For a translation service or a code generator, the output price is the one that decides the bill.

Verbosity differs between models, too. Given the same prompt, some models write more than others. A model with a lower output price that writes twice as much can cost more per task than a pricier model that writes concisely. The only reliable comparison is cost per task on your own prompts: run a sample through each candidate, record input and output tokens, and multiply by each model’s prices.

Smaller models deserve a look for output-heavy tasks where quality needs are modest. Bulk rewriting, reformatting, simple summaries and translation of routine text are often handled well by cheaper tiers, and the output-price difference compounds over high volume.

And consider splitting the work. A larger model can do the hard part, such as deciding what to change, and a smaller one can write out the result. That keeps the expensive model’s output short and moves the bulk of the writing to cheaper tokens.

Measuring where your output goes

Before optimising, measure. Output cost is usually concentrated in a few places, and finding them is straightforward.

Every API response includes usage figures: input tokens, output tokens, and often cached tokens and reasoning tokens separately. Log them for every call, along with which feature or endpoint made the call.

Then group by feature. For each one, calculate total output tokens, average output per call, and the share of total cost that comes from output. You’ll usually find one or two features responsible for most of the output spend.

Look at the distribution, not just the average. A feature with a modest average and a long tail of very long responses has a different problem from one where every response is a bit too long. The first calls for a ceiling. The second calls for prompt and format changes.

Read a sample of actual responses from the heaviest features. It’s the quickest way to spot patterns: preambles, restated inputs, unneeded explanations, verbose formatting, full-file rewrites.

Track reasoning tokens separately where your provider reports them. If a feature’s reasoning tokens far exceed its visible output, check whether that feature needs reasoning at all.

Once you know where the output goes, the fixes are usually obvious. The measurement is the part people skip.

Where shorter output hurts

Cutting output isn’t free in every case, and it’s worth knowing where to stop.

Some tasks genuinely need length. A detailed technical explanation, a full piece of code, a long-form draft: truncating these to save money produces something less useful. The goal is removing waste, not removing content.

Reasoning helps accuracy on hard tasks. Turning it off to save output tokens can make answers worse, which costs more in retries, corrections or user frustration than the tokens saved. Measure accuracy before and after any reasoning change.

Asking for extremely terse output can hurt quality on some tasks, too. Models sometimes produce better answers when allowed to work through a problem in their visible response, even without a formal reasoning mode. If a very short format lowers accuracy, a slightly longer one may be the better deal.

Explanations can have value beyond the immediate answer. For user-facing features, a brief explanation can build trust. For debugging, a short rationale field can save hours. Keep those where they earn their cost and drop them where they don’t.

And too tight a ceiling leads to truncated responses, retries and a worse experience. Set limits with headroom above the typical length.

The right approach is to trim deliberately, measure the effect on quality, and keep the output that actually serves the user or the code.

What to do this week

If output tokens are a large part of your bill, here’s a sequence that usually finds the savings.

Log usage per call with the feature name, including output and reasoning tokens where they’re reported. Group by feature and find the two or three with the largest output spend.

Read twenty responses from each. Note the preambles and restatements, plus any unneeded explanations or whole-document rewrites.

Rewrite the prompts with specific length and format instructions and a short example. Add explicit exclusions for preambles and closings.

Move any code-consumed output to structured output with short keys, enums and IDs instead of quoted text.

Check reasoning settings on every feature, and use the lowest effort that keeps accuracy acceptable.

Set a maximum output ceiling with sensible headroom, and log the stop reason.

Then compare a week of usage before and after, feature by feature, along with whatever quality measure you trust.

We compare model pricing with input, output and reasoning costs broken out, so you can see what the multiple really is for each model, at AI Tool Gazette.

for builders
Running agents or scrapers at scale?

AI pipelines that crawl, research, or automate the web hit rate limits and geo-blocks fast. Singapore Mobile Proxy runs real 4G/5G mobile IPs that carriers still trust.

see plans →
read on
More from the Gazette

Tool reviews, model and pricing news, and build guides for people shipping real things with AI.

browse all articles →