Promptwatch Logo

Context Window

A context window is the maximum number of tokens an LLM can consider at once, covering input and output. Frontier models offered about 1 million tokens in 2026.
Updated November 15, 2026
AI

Definition

A context window is the maximum amount of text, measured in tokens, that a language model can take into account in a single request. It covers everything the model sees: system instructions, the conversation so far, retrieved documents, tool results and, depending on the provider, the response it is generating. Anything outside the window does not exist for the model during that request.

Window sizes have grown by more than two orders of magnitude. ChatGPT launched in November 2022 on a GPT-3.5 model with about 4,000 tokens of context. As of November 2026, the current models from the largest labs all sit around 1 million tokens:

  • Anthropic's Claude Fable 5.2 (released November 9, 2026), Opus 5.5, Sonnet 5.5 and Haiku 5.5 have a 1 million token window and up to 128,000 output tokens. Anthropic notes that 1 million tokens is roughly 555,000 English words on its current tokenizer.
  • OpenAI's model list gives GPT-6 Astra, GPT-6.1 Sol and GPT-6 Luna a 1.05 million token window and 128,000 output tokens.
  • Google describes Gemini 4 Argon as having a unified 1 million token window with long outputs of up to 1 million tokens. Gemini 4 Carbon, generally available since November 10, 2026, uses the same 1,048,576-token window, shared by input, thinking and output tokens, with 65,536 output tokens per synchronous response unless long decode is used (Google).
  • Smaller and open-weight models reached the same size in November 2026: Meta's Muse Ember has a 1 million token window with up to 512,000 output tokens (Meta), and Moonshot AI's open-weight Kimi K3.1 Pro supports 1,048,576 tokens (Hugging Face).

A large window does not mean the model uses all of it equally well. Research such as 'Lost in the Middle' (2023) and Chroma's 'Context Rot' study (2025) found that accuracy drops as inputs get longer and that information buried in the middle of long inputs is recalled less reliably. Long inputs also cost more and take longer to process, because every token in the window has to be handled during inference. That is why context engineering, choosing the smallest set of relevant material for each step, matters even with million-token windows.

When a conversation or agent run approaches the limit, applications handle it in a few ways: they drop the oldest messages, summarize earlier turns into a shorter version (often called compaction), or store notes outside the window and reload them when needed. Chat products usually do this automatically, which is why a long conversation can 'forget' details from the start.

For AI search and GEO, the context window explains a step that is easy to overlook. An answer engine does not read the whole web for each question. It runs searches, fetches a set of pages, and places selected passages from them into the model's context, then generates the answer from that material (retrieval-augmented generation). Some systems filter aggressively before anything reaches the model: Anthropic's newer web search tool versions have Claude write code that filters search results first, so only relevant content enters the window. Pages compete for that limited space with every other retrieved source; our data on how many sources AI search engines cite per response shows how few make it into a typical answer.

Practical implications for content: put the direct answer to a question at the start of the relevant section, keep each section understandable on its own so a single extracted passage still makes sense (content chunking), state key facts such as prices, dates and specifications in plain text, and keep pages focused on one topic so the relevant passage is easy to find. These habits help whether a model has a 128,000 or a 1 million token window, because the limiting factor is usually the engine's selection, not raw capacity. Promptwatch's free page token inspector shows how a page's text breaks into tokens, a quick way to see how much of a retrieval budget a page would use.

Examples of Context Window

  • A legal team loads a full contract set of about 600,000 words into a model with a 1 million token window and asks for every clause that conflicts with a new regulation.
  • A coding agent working on a large repository summarizes its earlier steps into a short progress note when the conversation nears the context limit, then continues from that note.
  • A user notices a chatbot no longer remembers instructions from the start of a very long session, because older messages were summarized or dropped to stay within the window.
  • A deep research agent fetches 40 web pages but passes only the most relevant passages from 12 of them into the model's context before writing its cited report.

Terms related to Context Window

Tokens

Tokens are the units of text a language model reads and writes, such as word pieces or punctuation. They set context window limits, API prices and rate limits.

AI

Context Engineering

Context engineering is the practice of choosing what goes into an LLM's context window (instructions, retrieved content, tools, memory) to get reliable outputs.

AI

Large Language Model (LLM)

A large language model (LLM) is a neural network trained on vast text to predict tokens. LLMs such as GPT-6, Claude and Gemini power AI search and assistants.

AI

Retrieval-Augmented Generation (RAG)

Retrieval-augmented generation is a technique that pairs a language model with a retriever, so each answer is written from documents fetched for that query.

AI

Content Chunking

Content chunking is splitting text into smaller segments: a step retrieval systems run before indexing, and a writing practice of self-contained sections.

GEO

Transformer Architecture

Transformer architecture is the neural network design behind modern LLMs. It uses self-attention to weigh how every token in a sequence relates to every other.

AI

Deep Research

Deep research is an AI agent mode that plans a multi-step web investigation, reads many sources and returns a long report with citations.

AI

AI Grounding

AI grounding ties a model's answer to verifiable sources, such as live search results or supplied documents, so each claim can be traced and cited.

AI

AI Inference

AI inference is running a trained model to produce output from new input. Every ChatGPT reply, AI Overview and agent step is inference, usually billed by token.

AI

Frequently Asked Questions about Context Window

Learn about AI visibility monitoring and how Promptwatch helps your brand succeed in AI search.

Be the brand AI recommends

Monitor your brand's visibility across ChatGPT, Claude, Perplexity, and Gemini. Get actionable insights and create content that gets cited by AI search engines.

Promptwatch Dashboard