Input and Output Tokens

What are input and output tokens?

Input tokens are the tokens sent to a language model in a request, and output tokens are the tokens it generates in response. Most AI services price output tokens several times higher.

Updated November 2026 · 5 min read


Every call to a language model has two sides. Input tokens are everything the model reads: the system instructions, the user's question, any conversation history and any documents or data included in the prompt. Output tokens are everything the model writes back, including the visible answer and, for some models, internal reasoning that is billed but not shown. AI providers count the two separately and charge a different price for each.

The distinction matters because input and output tokens behave differently and are reduced in different ways. Output tokens are usually priced several times higher than input tokens, because generating text takes more computation than reading it. Input tokens, however, are often far more numerous, especially in applications that send long documents or conversation histories. For IT financial management, separating the two is essential for explaining AI costs accurately and knowing which optimizations will make the biggest difference.

Definition of Input and Output Tokens

Input tokens, also called prompt tokens, are the AI tokens in the request sent to a model. Output tokens, also called completion tokens, are the tokens in the model's response.

Providers report both counts with each response and publish separate prices for each, usually per million tokens. The total cost of a call is the input tokens multiplied by the input price, plus the output tokens multiplied by the output price.

Why Output Costs More

A model reads all of its input tokens in one parallel pass, which uses GPU capacity efficiently. It then generates output one token at a time, with each new token requiring another pass through the model.

This sequential generation takes more time and occupies more GPU capacity per token, so providers charge more for it. Output prices are commonly three to five times input prices, and sometimes more.

Output tokens also determine how long a user waits for a complete answer, so they affect latency as well as cost. An application that produces long answers will feel slower to users and cost more to run, which gives teams two reasons to keep outputs focused.

Variations in Pricing

Many providers offer a reduced price for cached input, meaning content that was recently sent and can be reused, such as a standard system prompt. Cached input is often billed at a small fraction of the normal input rate.

Some models charge higher rates once a request exceeds a certain length, and some count reasoning tokens as output, even though they do not appear in the answer.

Batch processing, where requests are submitted to run within a longer time window, is often priced at around half the standard rate for both input and output.

Importance of Input and Output Tokens in IT Financial Management

Knowing the split between input and output tokens explains where AI costs come from. Two applications with the same total token count can have very different costs if one is input-heavy and the other output-heavy.

The split also changes which optimizations are worth pursuing. Caching and prompt trimming reduce input costs, while output limits and model choice reduce output costs.

Without this split, teams often optimize the wrong side of the bill. Effort spent trimming prompts may achieve little if most of the cost comes from long answers, and the reverse is equally common.

Input-Heavy and Output-Heavy Workloads

Applications that read a lot and write a little, such as document classification, retrieval-based question answering and data extraction, are input-heavy. Their costs are driven mainly by the size of the documents and context they send.

Applications that write a lot, such as drafting reports, generating code or producing long-form content, are output-heavy. Their costs are driven mainly by output length and the output price.

Agents that call a model repeatedly, each time sending the growing history of the task, tend to become strongly input-heavy as the task goes on.

Forecasting and Pricing

Accurate forecasts need separate assumptions for input and output tokens per request, since each is multiplied by a different price.

Products that pass AI costs on to customers, or that set usage limits, also need to understand the split, because a customer's usage pattern determines their cost per token in practice.

Tracking both measures over time shows whether changes in cost come from longer prompts, longer answers or more requests. Each has a different owner and a different fix, so the distinction speeds up the response when costs rise unexpectedly.

How to Manage Input and Output Tokens

Managing input and output tokens involves measuring each separately, then applying the optimizations that fit each side.

The goal is to send the model only what it needs and to ask it to produce only what is useful.

Reducing Input Tokens

Keep system prompts concise, using prompt compression where needed, and move repeated instructions into cached content where providers support prompt caching.

Send only the most relevant documents or passages, rather than whole files, and limit conversation history to what the model needs to answer well.

For agents, summarize earlier steps rather than resending the full history with every call. A short summary of what has been done so far usually gives the model enough context to continue, at a fraction of the input tokens.

Reducing Output Tokens

Set maximum output lengths suited to each use, and ask the model for concise answers or structured formats when long prose is not needed.

Choose models that reach good answers without excessive reasoning for simpler tasks, and reserve reasoning-heavy models for problems that need them.

Review output length alongside quality measures. Shorter answers that remain accurate and useful reduce both cost and waiting time.

Examples of Input and Output Tokens in IT Financial Management

The examples below show how separating input and output tokens guides decisions.

Both use illustrative prices of $3 per million input tokens and $15 per million output tokens. The first examines an input-heavy workload, and the second an output-heavy one.

In each, the split showed where savings were available. Looking only at total tokens would have pointed elsewhere.

An Input-Heavy Workload

A legal team's contract review tool sends 20,000 input tokens per contract and receives 800 output tokens. Per contract, input costs $0.06 and output costs $0.012, so input is 83% of the total.

The team sends only the clauses relevant to each review question instead of the full contract, reducing input to 6,000 tokens. Cost per contract falls from $0.072 to $0.03.

Shortening the output would have saved little, because output was already a small share of the cost.

An Output-Heavy Workload

A marketing team's content tool sends 1,500 input tokens per request and receives 3,000 output tokens. Input costs $0.0045 and output $0.045, so output is 91% of the total.

The team changes its prompts to request outlines first and full drafts only for approved outlines. Average output falls to 1,400 tokens per request.

Cost per request falls from about $0.050 to about $0.026, roughly halving the tool's monthly bill without reducing the number of finished pieces.

Conclusion

Input tokens are what a model reads and output tokens are what it writes. They are counted and priced separately, with output usually costing several times more per token, while input is often much larger in volume.

In IT financial management, separating input and output tokens explains where AI costs come from and which optimizations will work. Measuring both, trimming context and history to reduce input, limiting length and choosing models carefully to reduce output, and tracking each over time help organizations manage AI costs precisely.