Guide
Why context length matters: how much your AI can read at once
Context length is how much text a model can keep in view at once: your instructions, your files, the conversation and its own reply. Top subscription plans offer up to a million tokens. Local tools often start at 4,000 to 32,000, and going higher costs memory and time. Our Qwen 3.8 27B template runs 256,000.
Last reviewed November 12, 2026 · By OpenLLM Buddy
| What you want to load | 4KOllama default under 24 GB | 32KOllama default, 24-48 GB | 256KSelf Deploy | 1MTop subscription plans and APIs |
|---|---|---|---|---|
| A 10-page reportabout 7K tokens · about 5,000 words | Does not fit | Fits | Fits | Fits |
| A one-hour meeting transcriptabout 12K tokens · about 9,000 words | Does not fit | Fits | Fits | Fits |
| A 50-page contractabout 35K tokens · about 25,000 words of text | Does not fit | Does not fit | Fits | Fits |
| 5,000 lines of codeabout 100K tokens · about 20 tokens a line | Does not fit | Does not fit | Fits | Fits |
| A 300-page bookabout 125K tokens · about one novel | Does not fit | Does not fit | Fits | Fits |
| 25,000 lines of codeabout 500K tokens · about 20 tokens a line | Does not fit | Does not fit | Does not fit | Fits |
- 4K Ollama default under 24 GB
- 32K Ollama default, 24-48 GB
- 256K Self Deploy
- 1M Top subscription plans and APIs
Sizes are rough: one token is about three quarters of a word. A tick means the item fits with a fifth of the window left for instructions and the reply. Scanned PDFs and files with images use more.
What a context window is
A model has no memory between messages. Each time you send something, it re-reads everything it is allowed to see: its instructions, the files you attached, the whole conversation so far, and then it writes its reply into the same space. That space is the context window, and its size is the context length, counted in tokens.
When the window is full, something has to go. Depending on the tool, the oldest messages are dropped, the middle is cut out, or the request fails. The model does not tell you what it can no longer see. It just answers as if that text never existed.
- Instructions and tool definitions count, before you type anything.
- Every earlier message and reply in the chat counts, every turn.
- Attached files count in full, not just the part you ask about.
- The reply counts too, and so does the model's hidden reasoning. OpenAI suggests keeping at least 25,000 tokens for them.
How big your files are in tokens
A token is about four characters, or three quarters of an English word. That gives rough sizes for everyday documents. Use them to plan, then check the real count in your tool.
| Document | Rough size | How it's worked out |
|---|---|---|
| One page of plain text | 600-700 tokens | About 500 words |
| One page of a PDF sent as a file | 1,500-3,000 tokens | Text plus an image of the page |
| A one-hour meeting transcript | About 12,000 tokens | 150 words a minute |
| An hour of audio sent as audio | About 115,000 tokens | 32 tokens a second |
| 1,000 lines of code | About 20,000 tokens | About 20 tokens a line |
| A 300-page book | About 125,000 tokens | Google counts eight novels as a million tokens |
| A spreadsheet | Varies widely | Every cell and comma is text; a few thousand rows can run to hundreds of thousands of tokens |
- Other languages and code-heavy or number-heavy text use more tokens per word than plain English.
What ChatGPT, Claude and Gemini plans give you
The million-token window is real, but it depends on the plan. The models behind ChatGPT, Claude, Gemini, Grok and DeepSeek accept up to about a million tokens through their developer APIs. The chat apps often give you much less on the cheaper tiers.
| App | Lower tiers | Top tiers |
|---|---|---|
| ChatGPT | 27K on Free and 54K on Go and Plus for instant replies; 256K for reasoning on Go and Plus | 128K instant and 400K reasoning on Pro |
| Claude | No fixed figure published for the free plan | Paid plans: 200K to 1M, depending on the model |
| Gemini | 32K with no plan; 128K on AI Plus | 1M on AI Pro and Ultra |
- Through the API, long prompts can cost more: OpenAI doubles the input price above 272K tokens, and xAI bills prompts of 200K or more at twice the rate.
- Plans change often. These figures are from each company's own pages, read in November 2026.
Sources: OpenAI, Anthropic, Google, OpenAI, Anthropic, OpenAI, xAI, DeepSeek
What a laptop or desktop can hold
Open models are not the limit. Qwen's 27B model handles 262,144 tokens natively and Gemma 3 27B takes 128,000. The limit is the machine, in three ways.
First, the default. Ollama picks the window from your memory: 4,000 tokens under 24 GB, 32,000 from 24 to 48 GB, and 256,000 only at 48 GB or more. Many people never change it, and a prompt longer than the window is cut down to fit.
Second, memory. The model itself is about 17 GB at 4-bit. On top of that the model keeps working notes for every token in the window, and those grow with its length: for a typical 27B to 32B model, a 128,000-token window can need from 9 GB to over 30 GB more, depending on how the notes are compressed. A MacBook Pro comes with 36 to 128 GB, shared with everything else you run.
Third, time. Before it answers, the model has to read the whole prompt. An M3 Ultra Mac Studio was measured reading about 260 tokens a second with a 32B model. At that rate a 100,000-token document takes more than six minutes before the first word of the answer.
- The six-minute figure is our arithmetic from a measured 13,000-token prompt, not a direct measurement. Newer chips read faster.
- The memory range is an estimate from the model's layer count. Models built differently, including the Qwen 3.8 build we run, need less.
Sources: Hugging Face, Hugging Face, Ollama, GitHub, Hugging Face, Rost Glukhov, Apple, DEV Community
How to plan a task around your context window
A bigger window is not automatically better. Studies of 18 models found that answers get less reliable as the input grows, and that facts in the middle of a long prompt are recalled worst. So the goal is a window that fits the job with room to spare, not the biggest number.
- Add it up first: instructions, files, the chat so far and the reply you expect.
- Keep about a fifth of the window spare. A full window is where quality and speed drop.
- Put the most important material at the start or the end of the prompt.
- For work that will not fit, split it: one chapter, one folder or one month of data at a time, then combine the summaries.
- Start a new chat for a new task. Old history uses the window on every turn.
What you get on Self Deploy
On Self Deploy we run a 256K-token context with Qwen 3.8 27B on its smallest GPU, the RTX 5090. Other models have their own limits, shown on each model's page, and replies slow down as the window fills.
That is enough for a whole book, a few thousand lines of code or a long agent session in one request. The window belongs to your instance alone, and the same template also runs on larger GPUs with more memory to spare. You can try the model in the Playground before you deploy.
| Subscription AI app | Laptop or desktop | Self Deploy GPU | |
|---|---|---|---|
| Window | 27K to 1M, by plan | Often 4K to 32K by default; more if memory allows | 256K with Qwen 3.8 27B on an RTX 5090 |
| What limits it | The plan you pay for | Memory, shared with your other apps | The GPU's memory, used only by your instance |
| A 100,000-token document | Fits on higher plans | Fits with enough memory; minutes to read | Fits, with room for the conversation |
| When it is full | Old messages drop out of view | The prompt is cut or the request fails | Send less, or split the job |
| Who sets the rules | The provider | You | You, within the law and our Terms |
- In our tests the model wrote 77 tokens per second on short chats and 35 near a full window.
- These are our own measurements, not a service guarantee.
Sources: OpenLLM Buddy
FAQ
What is context length in an AI model?
It is the amount of text the model can keep in view at once, counted in tokens. It covers the instructions, your files, the whole conversation and the reply. One token is about three quarters of a word.
How many pages fit in a 256K context window?
About 190,000 words, or roughly 380 pages of plain text. In practice keep a fifth spare for instructions and the reply, which leaves room for a 300-page book or about 10,000 lines of code.
Do ChatGPT, Claude and Gemini all give a 1M context window?
Not on every plan. Their APIs accept up to about a million tokens, but the chat apps vary: ChatGPT ranges from 27K on its entry tier to 400K on Pro, Gemini from 32K to 1M, and paid Claude plans from 200K to 1M depending on the model.
Why does my local model forget the start of the conversation?
The conversation has outgrown the context window, so the oldest text was dropped. Local tools often default to a small window, such as 4,000 tokens in Ollama on machines with less than 24 GB. Raise the setting if you have the memory.
Can a Mac run a long context window?
With enough memory, yes. The window needs memory on top of the model, and a long prompt takes time to read: at a measured 260 tokens a second, 100,000 tokens takes more than six minutes before the answer starts.
What context length do I get on Self Deploy?
We run a 256K-token context with Qwen 3.8 27B on its smallest GPU, the RTX 5090. Other models have their own limits, shown on each model's page, and replies slow down as the window fills.
Is a bigger context window always better?
No. Research shows answers get less reliable as the input grows, and replies get slower. Use a window that fits the task with about a fifth to spare, and split very large jobs into parts.
Sources
- OpenLLM Buddy: Our own template notes and tests: Qwen 3.8 27B on an RTX 5090 (256K context; 77 tokens/sec on short chats, 35 near a full window) (2026-11)
- OpenAI: ChatGPT pricing: context window by plan (read 2026-11)
- OpenAI: API models: context windows (read 2026-11)
- OpenAI: API pricing: long-context rates (read 2026-11)
- Anthropic: How large is the context window on paid Claude plans? (read 2026-11)
- Anthropic: Context windows (read 2026-11)
- Google: Gemini Apps limits and upgrades (read 2026-11)
- xAI: Models and pricing (read 2026-11)
- DeepSeek: Models and pricing (read 2026-11)
- Ollama: Context length (read 2026-11)
- GitHub: Ollama issue 10368: input prompt truncated at the context limit (2025-04-22)
- LM Studio: Prediction config: context overflow policy (read 2026-11)
- Hugging Face: Qwen3.6-27B model card (262,144 tokens natively) (2026-04)
- Hugging Face: Gemma 3 27B model card (128K input) (read 2026-11)
- Hugging Face: Gemma 3 27B GGUF file sizes (16.55 GB at Q4_K_M) (read 2026-11)
- Rost Glukhov: KV cache memory for long context (read 2026-11)
- Apple: MacBook Pro technical specifications (read 2026-11)
- DEV Community: Mac speed comparison: M2 Ultra vs M3 Ultra (prompt processing, 32B and 70B models) (2025-03-12)
- Google: Understand and count tokens (read 2026-11)
- Google: Long context (read 2026-11)
- Anthropic: PDF support (1,500-3,000 tokens per page) (read 2026-11)
- Chroma: Context rot: how increasing input tokens impacts LLM performance (2025-07-14)
- arXiv: Lost in the middle: how language models use long contexts (2023-07-06)
- OpenAI: Reasoning models: reserving space for reasoning and output (read 2026-11)