🔍 Read the full analysis: How Prompt Length Relates To LLM Attention And Cost on ThorstenMeyerAI.com
Get the latest gadgets delivered free with Prime
- Fast, free delivery on millions of items
- Prime Video, Amazon Music and more included
- Member-only deals all year
TL;DR
A November 22, 2026, explainer from ThorstenMeyerAI.com describes how longer prompts increase token costs and, with full attention, can raise attention computation roughly with the square of sequence length. It also cautions that million-token context windows do not guarantee reliable use of every detail; actual performance and charges depend on the model and provider.
ThorstenMeyerAI.com published an explainer on November 22 examining how prompt length affects large language models’ attention computation, memory use and running costs. The report says that although some flagship models list context windows of about one million tokens, a larger window can require more computation and expense and does not guarantee that a model will use every detail equally well.
A context window is the amount of text a model can reference while generating a response, including the prompt, chat history, attached material and the answer itself. The explainer cites Anthropic’s documentation describing the window as a model’s working memory. If the conversation and response exceed the available capacity, some information must be left out or otherwise managed.
The article distinguishes the window used during a conversation from training windows. Models process text as tokens, whose count depends on the tokenizer. In training, text is divided into fixed-length sequences, and the model learns to predict the next token at each position. The explainer cites the 2020 GPT-3 paper, which says training used sequences of the full 2,048-token context window, packing shorter documents together where needed.
For full self-attention, the amount of work grows roughly with the square of the sequence length, according to the Transformer paper’s scaling analysis. On that basis, doubling the text can mean about four times the attention work, with constant factors excluded. The article contrasts this with sliding-window attention, in which tokens attend to a limited neighborhood, and describes the KV cache as storing computations for earlier tokens so they need not be repeated for every generated token. The cache itself grows as tokens are processed.
Long Prompts Add Compute and Cost
The practical point for people submitting long contracts, reports or chat histories is that a model’s advertised maximum is not a promise of uniform recall. The source cites the “Lost in the Middle” study, which reported that GPT-3.5-Turbo answered correctly 75.8% of the time when relevant information appeared at the beginning of a document, compared with 53.8% when it appeared in the middle. The study’s reported result with no documents was 56.1%. These figures are specific to that study and model; they do not establish performance for current systems.
Prompt length can also affect the bill and response time. The explainer says providers generally charge for tokens submitted and generated, and that some charge higher rates above specified thresholds. It notes that caching repeated prompts can lower charges, but does not give a universal rate or estimate for a particular task. The amount a user pays depends on the provider’s pricing, tokenizer, model and use of caching.
For organizations processing large collections of material, these factors affect whether to send an entire document at once or retrieve relevant passages as needed. The source explains the trade-off, but does not test or recommend a single approach for every model or workload. Readers should treat context capacity, retrieval accuracy and price as separate questions.
Products Worth Considering

Amazon Kindle Paperwhite (2024, 16 GB) – 7-inch Display, Black

Sony WH-1000XM6 Wireless Noise-Canceling Headphones, Black

Apple MacBook Air 13-inch with M5 chip, 16GB Memory, 1TB SSD, Starlight
As an affiliate, we earn on qualifying purchases.
From GPT-3 to Million-Token Windows
The explainer’s timeline shows how advertised windows have expanded: GPT-3 listed 2,048 tokens in 2020, Longformer listed 4,096 that year, and Mistral 7B listed 8,192 in 2023. For 2026, the article lists about one million tokens for several Claude and Gemini models, and 1,050,000 for OpenAI’s GPT-6.2 Astra and Sol, with up to 922,000 tokens available for input. These are figures reported by the source from papers and vendor pages checked on November 22, 2026, not an independent comparison of model performance.
The source also cautions that token counts are not the same as word counts. Tokenizers split text into pieces, and the same passage can yield different token totals across models. It reports that Anthropic’s pricing page says its newer tokenizer produces approximately 30% more tokens for the same text than its previous one. That vendor-specific figure affects estimates based on text length.
The article is part two of a seven-part explainer series about how AI works. Its focus is the model’s text window, rather than a new product launch or a comparative benchmark of current systems.
“During training we always train on sequences of the full nctx = 2048 token context window, packing multiple documents into a single sequence when documents are shorter than 2048.”
— GPT-3 paper by Brown and co-authors, as quoted in the explainer
What Window Sizes Do Not Show
The source’s model-window figures reflect vendor pages and papers checked on November 22, 2026; model availability and published limits can change. A listed maximum does not, by itself, establish how accurately a model retrieves information at every position, how quickly it responds, or what a specific request will cost. The explainer does not provide a direct, current benchmark across the named million-token models.
The attention-cost comparison is based on scaling rules, with constant factors left out. Actual compute, latency and charges can vary with model architecture, implementation, input and output length, caching and provider pricing. The source also does not specify one price schedule or quantify the savings from caching. Its cited “Lost in the Middle” results concern GPT-3.5-Turbo and should not be read as a measurement of newer models.
Check Limits Before Sending Documents
The source gives no announced product milestone or follow-up test. For now, users can check their chosen model’s current documentation and pricing before sending large inputs, including the maximum input size, whether generated output counts toward the window, and whether repeated prompts qualify for caching. A tokenizer or provider change can affect token estimates even when the document itself is unchanged.
The article’s central cautions remain relevant as advertised windows grow: a larger capacity can make longer inputs possible, but attention costs, token charges and uneven recall still need to be checked for the specific model and task. Comparative tests of current systems, including performance by document position and the cost of representative workloads, would help clarify how those trade-offs differ.
Key Questions
What does an LLM context window include?
It includes the text a model can use while generating a response: instructions, the prompt, conversation history, attached material and the answer itself. The available space is measured in tokens, not a fixed number of pages or words.
Does a million-token window mean the model will understand every part?
No. A large window indicates how much text can fit, not how reliably the model will find or use every detail. The explainer cites a study in which GPT-3.5-Turbo performed differently depending on where relevant information appeared; those results do not establish performance for newer models.
Why can a longer prompt cost more?
Providers may charge for input and generated-output tokens. Longer inputs also require more processing, and the source describes full attention as growing roughly with the square of sequence length. Exact costs and response times depend on the model and provider.
What is a KV cache?
A KV cache stores computations for earlier tokens so a model can reuse them while generating more text, rather than recomputing everything at each step. The explainer says the cache grows as tokens are added; caching repeated prompts may reduce charges under some provider plans.
Source: ThorstenMeyerAI.com
