Skip to main content

Context window explained

A model’s context window is the maximum number of tokens it can consider at once: your prompt, any files, the conversation so far, tool definitions and the answer it is writing. Think of it as working memory, not a library: it is separate from the data the model was trained on.

What counts toward it

Anthropic’s docs say everything in the request counts: the system prompt, every message (including tool results, images and documents), your tool definitions, and the output Claude generates, including extended thinking. As a conversation grows, each turn is added, so long chats eventually approach the limit.

What vendors publish (checked 2026-12-01)

Product Published window
Claude API: Fable 5, Mythos 5, Opus 5.5, Sonnet 5.5, Haiku 5.5 and several earlier models 1M tokens; a single request can produce up to 128k output tokens
Other Claude models 200k tokens
Claude paid plans (claude.ai) Newest models up to 1M; others 500K or 200K
ChatGPT Free (Instant) 27K total context window
ChatGPT Go and Plus (Instant) 54K
ChatGPT Pro (Instant) 128K
ChatGPT reasoning (Plus) 256K; Pro 400K

ChatGPT figures are from the comparison table on chatgpt.com/pricing. Anthropic says on models with a 1M window long requests are billed at standard pricing except Claude Haiku 5.5, where prompts over 100,000 tokens cost more.

Why a bigger window can cost more

  • You pay for every input token you send each turn, so resending a 100,000-token conversation 20 times means 2,000,000 input tokens (our arithmetic) unless you use prompt caching.
  • Some models bill long prompts at higher rates; check each vendor’s long-context pricing.
  • On subscriptions, Claude’s help page says longer conversations that trigger automatic context management consume more of your usage limit.

Managing context

  • Start a new chat when the topic changes.
  • Use projects or retrieval so only relevant content is loaded.
  • Remove unused files and shorten instructions; turn off tools you do not need.
  • Summarize long histories (Claude does this automatically for users with code execution enabled).

Estimate the cost impact with the context window cost calculator, and see tokens explained for the basics.

Sources

Anthropic context windows, Claude usage and length limits and chatgpt.com/pricing (captures in docs/completion/captures-2026-12-01/).

How we check

All sources were read on 2026-12-01 (Asia/Colombo). Prices are USD list prices as printed and may exclude tax. This is desk research from official pages, not a hands-on test. Corrections: [email protected]. See /methodology/.

Related: What is a token? · Reasoning token cost calculator

More buying guides