What Is a Context Window?

The AI "memory limit" that trips people up — explained simply

A context window is the maximum amount of text an AI model can consider at once, measured in tokens. Think of it as the model's short-term memory: everything in your prompt, plus the conversation history and the model's reply, all has to fit inside it. Go over the limit and the oldest text gets dropped — the model simply "forgets" it.

Context windows of popular models

ModelContext windowRoughly equals
GPT-3.5 Turbo16K tokens~12,000 words
GPT-4o128K tokens~96,000 words
Claude 3.5 Sonnet200K tokens~150,000 words
Gemini 1.5 Pro1M tokens~750,000 words

Rule of thumb: 1 token ≈ ¾ of an English word, or ~4 characters.

Why it matters

How to stay within the limit

🧮 Check your context usage

Related guides