AI models with the longest context window

The context window is how much text a model can read in one request: instructions, documents and conversation included. One million tokens is roughly 1,900 pages of text.

Updated September 30, 2026

Our picks

#ModelContextiOverall indexiInputiOutputiContexti
12M152.0$1.25$2.502M
22M—$1.25$2.502M
31.3M129.6$0.10$0.301.3M
41.1M166.6$10$501.1M
51.1M162.5$30$1801.1M
61.1M162.0$2$101.1M
71.1M159.3$2$121.1M
8
GPT-5.5OpenAI
1.1M159.3$5$301.1M
91.1M159.1$30$1801.1M
10
GPT-5.4OpenAI
1.1M156.9$2.50$151.1M

per 1M tokens · USD

Quick answers

Which AI model has the largest context window?
Grok 4.20 from xAI leads this ranking (Context: 2M). It costs $1.25 per million input tokens and $2.50 per million output tokens.

How we rank

Scores come from tests run independently by Epoch AI (CC BY 4.0), not from the companies’ own announcements. Prices come from OpenRouter’s public API. Both are refreshed automatically several times a day, so this ranking follows new releases and price changes.

Other rankings

CodingMathScienceCheapFreeOpen sourceImages & PDFsRankings →