Glossary
Context window
The model's working memory, measured in tokens and paid for by the token.
By Roger Campos · Last updated: September 2026
TL;DR
A context window is the maximum amount of text, measured in tokens, that a language model can consider in one request — the instructions, the documents you include, the conversation so far and the model's reply together. Anything past it is cut off or refused, and everything inside it is billed.
Free plan, no credit card. 1,000 credits a month.
How it works
Tokens and limits
Models read tokens, not characters: pieces of words from a fixed vocabulary. For English text a token averages roughly four characters, so 1,000 tokens is about 750 words; code, URLs and non-Latin scripts use more. A model's context window is a hard limit on input plus output, and providers bill per token, so a bigger window is not a reason to fill it.
Long contexts also read worse. Models are measurably better at using information near the start and end of a long prompt than in the middle, so a page's key paragraph buried in 50,000 tokens of markup is easier to miss.
In practice
Where web pages go wrong
Raw HTML is the expensive way to give a model a page. Markup, inline scripts and styles dwarf the text: measured over pages URLpipe processes, a page's readable text is about 6% of its raw HTML. Send the HTML and you pay for the other 94% and dilute the part that matters.
URLpipe
With URLpipe
/markdown is the compact input: the rendered page's main content, at 1 credit. /summarize returns a short summary instead, for when that is the thing you want to produce. Both work on pages that need JavaScript. For agents, the MCP server exposes the same as fetch_markdown and summarize_page.
Try it
Context window, on a page you choose
Related terms
FAQ
Frequently asked questions
How many tokens is a web page?
Does the context window include the model's answer?
Is a bigger context window always better?
See it on your own pages.
Free plan, no card. Confirm your email and your API key is live — you'll be making real requests in minutes.