You paste a long contract into a chatbot, ask about clause 14, and the answer is confident and wrong. Or a coding agent that was sharp for an hour suddenly forgets the file it edited ten minutes ago. Both usually come back to one limit most people never look at: the context window.
So what is a context window, and why does every model launch now brag about 1 million tokens? This explainer covers the plain definition, what fills the window up, the real sizes from OpenAI, Anthropic and Google’s own docs, and a price trap at 272K tokens that can double the cost of a single request. We ran the cost numbers in Python from the official price lists, so you can see where the money goes.
Quick answer: A context window is the maximum amount of text, measured in tokens, that an AI model can work with in one request. It includes your prompt, files, chat history, tool results and the model’s own reply. In November 2026, the main models from OpenAI, Anthropic and Google all list windows of about 1 million tokens.
- 1M tokens is roughly 555,000 words, by Anthropic’s own estimate for its current tokenizer.
- Everything counts: system prompt, history, documents, tool output and the answer.
- Bigger isn’t automatically better. Anthropic’s docs say accuracy and recall degrade as the token count grows.
- OpenAI’s GPT-6 models charge 2x input and 1.5x output for the whole request once a prompt passes 272K tokens.
What is a context window in AI?
Think of it as the model’s desk. Whatever is on the desk, the model can look at while it writes. Whatever isn’t, it can’t see at all.
Anthropic’s context windows guide puts it more formally: the context window is all the text a language model can reference when generating a response, including the response itself. It’s a working memory. It isn’t the training data, which is the huge pile of text the model learned from months earlier and can’t look up word for word.
That difference trips people up. A model “knows” a lot from training, but it only “sees” what’s in the window right now. Your company’s handbook, yesterday’s chat, the bug report you pasted: those exist for the model only while they sit inside the window.
Tokens, not words
Windows are measured in tokens, the chunks of text a model reads. A token can be a whole word, part of a word or a punctuation mark, and each vendor’s tokenizer splits text differently. Anthropic’s models overview gives a useful rule of thumb: 1M tokens is roughly 555,000 words on its current tokenizer, and 200K tokens is about 150,000 words. Code, tables and non-English text usually use more tokens per word than plain English prose.
What fills the context window
Your question is usually the smallest thing in there. According to Anthropic’s docs, everything in the request counts toward the limit:
- The system prompt (the hidden instructions an app adds before your message)
- Every earlier message in the conversation, both yours and the model’s
- Uploaded files, images and PDF pages
- Tool definitions and tool results, such as search results or file contents an agent read
- The reply being generated, including any thinking tokens a reasoning model produces
That last point is easy to miss. Input and output share the same space. A 1M window with a 990K prompt leaves very little room for the answer. OpenAI handles this with separate caps: its GPT-6.1 Sol model page lists a 1,050,000-token context window, but a maximum input of 922,000 tokens and a maximum output of 128,000.
Why a chat seems to forget
Models don’t remember earlier turns on their own. The app re-sends the whole conversation with every new message, and that history keeps growing. When it gets close to the limit, something has to give. Anthropic’s docs note that chat interfaces such as claude.ai can manage the window on a rolling “first in, first out” basis, which means the oldest messages drop out first. On the API, a prompt that’s simply too long gets an error. Newer tools can also summarise old turns to make space, which Anthropic calls compaction.
Context window sizes in 2026
Here’s what the official docs list today. We only included models whose numbers we could read on the vendor’s own page.

| Model | Context window | Max output | Long-prompt pricing |
|---|---|---|---|
| GPT-6.1 Sol / Terra, GPT-6 Luna | 1,050,000 (922K max input) | 128K | 2x input, 1.5x output above 272K |
| Claude Opus 5.5 / Sonnet 5.5 | 1M | 128K | Same rate across the full window |
| Claude Haiku 5.5 | 1M | 128K | Higher rate above 100K |
| Gemini 4 Argon / Carbon / Hydrogen | 1M | 64K | Single rate listed |
Sources: OpenAI’s model pages, Anthropic’s models overview and pricing page, and Google AI Studio’s models and pricing pages, all checked on 16 November 2026. For a fuller tour of OpenAI’s lineup, see every OpenAI GPT model explained.
A few years ago, these numbers varied wildly between vendors. Now the big three have converged on roughly a million tokens. The differences that matter today are price and how well each model actually uses that space.
Why 1M tokens matters
By the 555,000-words estimate, a million tokens holds about 1,100 pages of plain prose at 500 words a page. In practice that opens up a few jobs that used to need extra plumbing:
- Whole codebases. A coding agent can keep many files, test output and its own earlier edits in view during a long session.
- Long documents. A full contract set, a year of meeting notes or a thick technical manual in one request, without chopping it up first.
- Long agent runs. Agents pile up tool results fast. A big window lets them work longer before they need to summarise or restart.
Before million-token windows were common, the usual workaround was retrieval: split documents into chunks, search them, and paste in only the relevant parts. That still works, and it’s often cheaper. A big window just means you don’t always have to build it.
What long context costs
Every token in the window is billed as input on every request. We wrote a short Python script (saved with this post) that prices one request at different prompt sizes, with a 2,000-token answer, using each vendor’s official standard rates.
| Model | 100K prompt | 272K prompt | 273K prompt | 900K prompt |
|---|---|---|---|---|
| GPT-6.1 Sol | $0.22 | $0.56 | $1.12 | $3.63 |
| GPT-6.1 Terra | $0.11 | $0.28 | $0.56 | $1.82 |
| Claude Opus 5.5 | $0.44 | $1.13 | $1.13 | $3.64 |
| Claude Sonnet 5.5 | $0.22 | $0.56 | $0.57 | $1.82 |
| Claude Haiku 5.5 | $0.011 | $0.14 | $0.14 | $0.46 |
| Gemini 4 Hydrogen | $0.17 | $0.42 | $0.42 | $1.37 |
Look at the jump between 272K and 273K for GPT-6.1 Sol. One thousand extra tokens and the request costs twice as much, because OpenAI’s model pages say prompts over 272K input tokens are priced at 2x input and 1.5x output for the full request. Claude Opus 5.5 and Sonnet 5.5 don’t have that cliff: Anthropic’s pricing page says a 900K-token request is billed at the same per-token rate as a 9K one. Haiku 5.5 has its own step at 100K, which we covered in Claude Opus vs Sonnet vs Haiku.

The quiet cost of long chats
Because the app re-sends the history each turn, a chat’s cost grows much faster than its length. Our script models a chat with a 2,000-token system prompt, 300-token questions and 700-token answers. After 50 turns the window holds about 52,000 tokens, but the API has billed 1.34 million input tokens in total. After 100 turns that’s 5.18 million, or about $11 on Sonnet 5.5 at standard rates once you add the answers. Prompt caching cuts this a lot, since cached reads on Sonnet 5.5 cost 5% of the normal input price.
The part the “1M tokens” headline leaves out: fitting into the window isn’t the same as being used well. Anthropic’s own context window guide says that as token count grows, accuracy and recall degrade, and it calls this context rot. So a model can accept your 800K-token dump and still miss the one paragraph that matters. Sending less, but the right less, often gets better answers and costs less too.
Common myths about context windows
“A bigger window means a smarter model.” No. Window size is capacity, not reasoning skill. A small, cheap model with 1M tokens is still a small, cheap model.
“The model remembers me between chats.” Not through the context window. Each request starts from whatever the app sends. Memory features in chat apps work by saving notes and adding them back into the window later.
“Context window and context length are different things.” Mostly they’re the same idea with two names. Some docs use “context length” for the total limit and “max input” for how much of it a prompt may use, so read the model page closely.
“If it fits, send it all.” You’ll pay for every token, on every turn, and quality can drop. Trim first.
What to do with this today
- Start new chats for new tasks. A fresh thread is free context and cheaper per message.
- Paste the relevant section, not the whole file, when you know where the answer lives.
- On the OpenAI API, watch 272K. Splitting one 300K request into two smaller ones can be cheaper than crossing the threshold.
- Use prompt caching when the same long prefix (docs, codebase summary, instructions) repeats across calls.
- Count before you send. Anthropic offers a token counting API, and every response reports what it used.
Our verdict: 1M-token windows are genuinely useful for code agents and huge documents, and you no longer have to pick a vendor for its window size. Pick on price at your typical prompt size and on quality in your own tests. For most chat use, you’ll never come close to the limit.
Next: choosing between OpenAI’s three current models? Our GPT-6.1 Sol vs Terra vs GPT-6 Luna comparison works through task costs, including that 272K cliff.
FAQ
What is a context window in Claude?
It’s the total tokens Claude can handle in one request, including its reply and any thinking. Claude Opus 5.5, Sonnet 5.5 and Haiku 5.5 each have a 1M-token window and up to 128K output tokens, per Anthropic’s models overview.
What happens when an LLM reaches its context limit?
On Claude’s API, a prompt that’s already too long is rejected with an error. If the reply runs out of room, generation stops early. Chat apps usually drop or summarise the oldest messages, which is why long chats seem to forget early details.
How big is a 200K context window?
Anthropic estimates 200K tokens at about 150,000 words, or roughly 300 pages of plain text. The exact figure depends on the tokenizer and on the content, since code and other languages use more tokens.
Is a larger context window always better?
No. It lets you send more, but recall can drop as the window fills, and you pay for every token. For most tasks, a focused prompt beats a full one.