Long Context Models
Models with context windows of 200K tokens or more — up to 2M — for whole-codebase and multi-document workloads
| Features | |||||
|---|---|---|---|---|---|
Z AI | $0.60 | $2.20 | $0.11 | ||
EmberCloud | $0.38 | $1.98 | $0.19 | ||
NovitaAI | $0.60 | $2.20 | $0.11 | ||
Cerebras | $2.25 | $2.75 | — | ||
Alibaba Cloud | $0.43 | $2.01 | — | ||
ByteDance | $0.60 | $2.20 | $0.11 | ||
Together AI | $0.45 | $2.00 | — | ||
Google AI Studio | $0.50 | $3.00 | $0.05 | ||
Google Vertex AI | $0.50 | $3.00 | $0.05 | ||
Azure | $21.00 | $168.00 | — | ||
OpenAI | $21.00 | $168.00 | — | ||
Azure | $1.75 | $14.00 | $0.17 | ||
OpenAI | $1.75 | $14.00 | $0.17 | ||
AWS Bedrock(eu) | $1.10 | $5.50 | $0.11 | ||
AWS Bedrock | $1.00 | $5.00 | $0.10 | ||
AWS Bedrock(us) | $1.10 | $5.50 | $0.11 | ||
AWS Bedrock(au) | $1.10 | $5.50 | $0.11 | ||
Anthropic | $1.00 | $5.00 | $0.10 | ||
AWS Bedrock(jp) | $1.10 | $5.50 | $0.11 | ||
AWS Bedrock(global) | $1.00 | $5.00 | $0.10 | ||
AWS Bedrock(jp) | $3.30 | $16.50 | $0.33 | ||
Anthropic | $3.00 | $15.00 | $0.30 | ||
AWS Bedrock | $3.00 | $15.00 | $0.30 | ||
AWS Bedrock(us) | $3.30 | $16.50 | $0.33 | ||
AWS Bedrock(eu) | $3.30 | $16.50 | $0.33 | ||
AWS Bedrock(au) | $3.30 | $16.50 | $0.33 | ||
AWS Bedrock(global) | $3.00 | $15.00 | $0.30 | ||
Moonshot AI | $1.15 | $8.00 | $0.15 | ||
AWS Bedrock | $5.00 | $25.00 | $0.50 | ||
AWS Bedrock(eu) | $5.50 | $27.50 | $0.55 | ||
AWS Bedrock(us) | $5.50 | $27.50 | $0.55 | ||
Vertex AI (Anthropic) | $5.00 | $25.00 | $0.50 | ||
Anthropic | $5.00 | $25.00 | $0.50 | ||
AWS Bedrock(global) | $5.00 | $25.00 | $0.50 | ||
OpenAI | $0.25 | $2.00 | $0.02 | ||
Azure | $0.25 | $2.00 | $0.02 | ||
xAI | $0.20 | $0.50 | $0.05 | ||
Azure AI Foundry | $0.20 | $0.50 | — | ||
Azure AI Foundry | $0.20 | $0.50 | — | ||
xAI | $0.20 | $0.50 | $0.05 | ||
Azure | $1.25 | $10.00 | — | ||
OpenAI | $1.25 | $10.00 | — | ||
OpenAI | $15.00 | $120.00 | — | ||
Azure | $1.25 | $10.00 | $0.13 | ||
OpenAI | $1.25 | $10.00 | $0.13 | ||
Alibaba Cloud | $0.57 | $2.29 | — | ||
Moonshot AI | $0.60 | $2.50 | $0.15 | ||
Alibaba Cloud(cn-beijing) | $0.57 | $2.29 | — | ||
Vertex AI (OpenAI-compatible) | $0.60 | $2.50 | $0.06 | ||
ByteDance | $0.60 | $2.50 | $0.12 |
Every model on this page accepts at least 200,000 tokens of context — roughly 150,000 words — and the largest stretch much further: Grok 4.1 Fast at 2 million tokens, with Gemini, Claude Sonnet 5, GPT-5.4, DeepSeek V4, and GLM-5.2 at or above the million-token mark. That's enough to fit an entire codebase, a legal document set, or months of chat history into a single prompt.
Advertised size isn't everything: retrieval quality can degrade well before the window is full, and long prompts get expensive fast. Cached input pricing — shown in the list — matters more than the headline price when you re-send large contexts on every request.
Frequently asked questions
Which LLM has the largest context window?
Grok 4.1 Fast currently leads with a 2 million token window. Gemini models run just over 1 million, and Claude Sonnet 5, GPT-5.4, DeepSeek V4, GLM-5.2, and Qwen3.7 also offer million-token windows.
How many words fit in a 200K context window?
Roughly 150,000 English words — about 600 pages. A million-token window fits around 750,000 words: several full-length books, or a mid-sized codebase.
Do models actually use the full window well?
Not uniformly. Most models recall the start and end of a prompt better than the middle, and effective context is often smaller than the advertised maximum. For critical retrieval over huge inputs, test with your own data and consider chunking plus retrieval instead of one giant prompt.
How do I keep long-context costs down?
Use cached input pricing: providers charge a fraction of the normal rate for re-sent, unchanged prefixes, which is exactly the shape of chatting over a large document or codebase. Structure prompts so the big static context comes first and only the question changes.