# Context window vs output limit: what each caps

Canonical: https://llmcostbot.com/en/guides/context-window-vs-output-limit
Verified: 2026-12-02
License: CC BY 4.0 with attribution to LLMCostBot

A context window is the most tokens a request can hold; a maximum output is the most tokens the model will write back. They are recorded separately, and a model can be generous on one and tight on the other. Of 30 records, 23 reach 1M tokens of context, but only 22 of those also allow 100K output tokens.

## Two ceilings, two failure modes

Exceed the context window and the request is rejected or must be chunked. Exceed the maximum output and the answer is truncated, even if the context had room. A document summariser mostly cares about context; a coding agent that writes whole files cares about both.

A model page lists both numbers and their source. Neither is inferred from the other: a large context does not imply a large output ceiling, and the catalog never fills one from the other.

Recorded models by context and output threshold

| Threshold | Models that pass |
| --- | --- |
| Context ≥ 128K tokens | 30 |
| Context ≥ 500K tokens | 25 |
| Context ≥ 1M tokens | 23 |
| Max output ≥ 32K tokens | 28 |
| Max output ≥ 100K tokens | 26 |
| Both: context ≥ 1M and output ≥ 100K | 22 |

Counts across 30 records verified 2026-12-02.

## The largest contexts do not always allow the largest outputs

Sorting by context alone can hide a tight output ceiling. The table below lists the five largest recorded context windows with each model's maximum output, so the second ceiling stays visible.

Five largest context windows and their output ceilings

| Model | Context | Max output | Input / 1M |
| --- | --- | --- | --- |
| Llama 4 Scout | 1,310,720 | 16,384 | $0.1 |
| GPT-6.2 Astra Pro | 1,050,000 | 128,000 | $8 |
| GPT-6.2 Sol | 1,050,000 | 128,000 | $2 |
| GPT-6.1 Terra | 1,050,000 | 128,000 | $1 |
| Gemini 4 Carbon | 1,048,576 | 943,718 | $4 |

## Agents usually hit both

A tool-using agent resends repository context on every step and writes whole files. The coding template therefore requires 1M tokens of context and a 200K output ceiling, which narrows the eligible set before price is considered. If either requirement is relaxed, the cheapest answer can change completely.

Check the workload's constraints first, then the price. A model that is cheaper but fails the output ceiling is not a near miss; it is a different product.

## Estimate tokens for a document

Page counts and word counts are not tokens. A rough starting point is one page of English prose at about five hundred words, and one word at roughly 1.3 tokens, but tables, code, footnotes and non-English text break that shortcut quickly. Use it to choose a candidate range, then measure a real sample with the provider's tokenizer or usage report.

The context-fit page exists for this step: paste a document, load a text file or set a page count, and it estimates tokens and shows which recorded models fit in one request. The estimate is labelled as an estimate because the conversion is approximate; it is good enough to exclude models that clearly cannot hold the document, not to promise an exact bill.

## Chunking is not free

When a document exceeds the context window, the obvious answer is to split it. Each chunk then carries its own instruction block, often an overlap with the previous chunk, and a separate call. The token count rises, the call count rises, and the output may need a second pass to merge partial answers.

That does not make chunking wrong; it makes it a different workload. Compare the chunked total with a single-request model before assuming the smaller context is cheaper. A model that fits the whole document can be more expensive per token and still cheaper per document once overlap and repeated instructions are counted. The context-fit page prices both paths so the comparison is arithmetic rather than intuition.

## Output ceilings in agent loops

An agent does not send one request. It sends a step, reads a tool result, appends it to the history and sends again. The context ceiling limits the growing history, while the output ceiling limits how much the model can write at each step. A model with a large context but a small output ceiling can still fail when it tries to write a whole file.

The coding template captures both requirements for that reason. Before choosing a model for an agent, write down the largest file the model must emit in one response and the longest history it must hold, then filter on both. A failed output ceiling is not a tuning problem; it truncates the answer.

## A pre-flight checklist

Before you commit to a model for a document or agent workload, run the same checks in order. They are quick and they prevent the expensive mistake of optimising price on a model that cannot do the job.

- Estimate the document or history tokens from a real sample.
- Set the context floor and the output ceiling as hard requirements.
- Confirm the input modality the workload actually needs.
- Only then rank the eligible models by recorded price.
- Record the source and verification date with the decision.

## Context and cost are not the same axis

A large context window is a capability, not a price tier. Two models can both hold a million tokens and sit at very different input prices. Conversely, a model can be cheap per token and unable to hold the document at all. Sorting by context answers whether a model can do the job; sorting by price answers what the job costs. They are separate questions and should be asked in that order.

The model table makes the separation visible. Read the context column as a filter, then read the price column only across the rows that survived the filter. A single combined score would hide which requirement caused a model to drop out.

## What about retrieval?

Retrieval adds tokens to the prompt. The retrieved chunks count toward the context window even though the user did not type them, and they can change on every request. A model that fits the question but not the retrieved context will fail in production even though a small demo worked.

Retrieval does have a cost advantage: the instruction block and stable document preamble can be cached, while only the retrieved chunks vary. That is exactly the pattern the RAG template models. Measure the retrieved token count before choosing a context floor; the answer is usually larger than the demo suggests.

## A worked document decision

Suppose the document is a three-hundred-page report. At roughly five hundred words per page and 1.3 tokens per word, the first estimate is about 195,000 tokens. That is a range, not a measurement, but it is enough to exclude models below 200K. The context-fit page turns the same estimate into a shortlist and a chunk count.

For the shortlist, compare a single-request model against the chunked path: repeated instructions, overlap, and a merge step. If the chunked total is higher, the larger context is the cheaper option even if its unit price is higher. If the chunked total is lower, the smaller model can win. The comparison is arithmetic, not a preference.

## Choosing between a bigger context and chunking

When a document sits just above a model's limit, the choice is not only which model to use but whether to split the document at all. A model with a slightly larger context can take the document in one request, while a cheaper model needs two chunks, two instruction blocks and a merge step. The totals decide, not the headline context number.

The decision changes with the document mix. A pipeline that mostly handles short documents may be fine with the cheaper model and occasional chunking; a pipeline that handles long contracts every time may prefer the larger context. Model the mix, not the extreme case.

## How to check a record

Open the model page and read the context window, maximum output, modalities and the linked source. The model page also lists cost examples and alternatives, so a failed constraint can be replaced without leaving the catalog. If a field reads Not collected, treat it as unknown rather than assuming support.

- Context is a per-request ceiling, not a monthly quota.
- Maximum output is a per-response ceiling, separate from context.
- A large context does not imply a large output limit.

## Takeaways

- Context window and maximum output are independent recorded fields.
- Long-document work is limited by context; agent work often hits both.
- Filter on both ceilings before comparing price.
- A missing field is Not collected, not an inferred capability.

## FAQ

### Is a 1M context window the same as a 1M output limit?

No. The context window is the total tokens a request can hold; maximum output is how many tokens the model can return in one response. They are recorded and displayed separately.

### What happens if my input exceeds the context window?

The request is rejected or needs chunking. This catalog does not simulate chunking costs on these pages; the long-document template assumes the document fits in one request.

### Can I send a PDF directly to any model?

No. File input is a recorded modality, and it is not inferred from a large context window. If the record does not list file input, this catalog treats the capability as Not collected rather than assuming it.

### Does a larger context window always cost more per token?

No. Context size and price are separate recorded fields. Some large-context models are priced below smaller-context models, and some are far above. Filter on the context you need, then compare the recorded prices of the models that pass.

### Can output be truncated even when context has room?

Yes. Maximum output is its own ceiling, so a model can have room for a long prompt and still cap the answer. Check both numbers before choosing.
