What actually fills the window
- System prompt and company instructions.
- The full chat history, which is resent on every turn.
- Pasted text and attached files after extraction. A 40-page PDF is roughly 25,000 to 30,000 tokens.
- Tool results in agent runs, such as web pages and search results.
- The space reserved for the answer (
max_tokens).
Five fixes, cheapest first
- Start a new chat for a new task. Long threads are the most common cause.
- Lower
max_tokensto what the answer needs, which frees room for input. - Summarize older turns and keep the summary instead of the raw history.
- For big document sets, retrieve only the relevant passages (RAG) instead of sending everything.
- Switch to a model with a larger window for the jobs that truly need it.
Long-context models with the lowest prices right now
Current models with at least 1 million tokens of context, cheapest first. Bigger windows cost more per request when you fill them, so use them for the jobs that need them.
| Model | Context | Input / Output per 1M |
|---|---|---|
| Qwen3.7 Flash | 1M | $0.03 / $0.13 |
| DeepSeek V4.1 Flash | 1.05M | $0.051 / $0.20 |
| DeepSeek V4 Flash 0423 | 1.05M | $0.09 / $0.18 |
| Qwen3.5-Flash | 1M | $0.065 / $0.26 |
| MiniMax M3.1 Flash | 1.05M | $0.075 / $0.30 |
| Llama 4 Scout | 1.31M | $0.10 / $0.30 |
| Gemini 2.5 Flash Lite | 1.05M | $0.10 / $0.40 |
| GPT-4.1 Nano | 1.05M | $0.10 / $0.40 |
Keep long context affordable
Filling a 1M-token window on every request is expensive even on a cheap model. Shared, reusable context helps: in Intrascope, company and project Manifests hold the background once, and teams pick a long-context model only for the projects that need it.