Long-context leaderboard

LLMs with the largest context windows

Ranked by maximum input tokens the model accepts in a single call. Larger windows unlock whole-codebase analysis, long-document summarization and multi-hour transcripts — though effective recall often lags the advertised window.

Category leader

#01xAI

SpaceXAI: Grok 4.20.

Grok 4.20 is a reasoning model from SpaceXAI with industry-leading speed and agentic tool calling capabilities. It combines the lowest hallucination rate on the market with strict prompt adherance, delivering...

Context
2.0M
tokens

Ranking

N=55
#ModelProviderContextCtxReleased
01SpaceXAI: Grok 4.20xAI2.0M2.0M2026-03-31
02Z.ai: GLM 5.3Z.ai1.3M1.3M2026-08-18
03OpenAI: GPT-5.6 SolOpenAI1.1M1.1M2026-07-09
04OpenAI: GPT-5.5 ProOpenAI1.1M1.1M2026-04-24
05OpenAI: GPT-5.5OpenAI1.1M1.1M2026-04-24
06OpenAI: GPT-5.4OpenAI1.1M1.1M2026-03-05
07OpenAI: GPT-5.6 Terra ProOpenAI1.1M1.1M2026-07-09
08OpenAI: GPT-5.6 Sol ProOpenAI1.1M1.1M2026-07-09
09MoonshotAI: Kimi K3Moonshot1.0M1.0M2026-07-16
10Meta: Muse Spark 1.3Meta1.0M1.0M2026-09-02
11DeepSeek: DeepSeek V4 Pro 0813DeepSeek1.0M1.0M2026-08-12
12Qwen: Qwen3.8 2.4T A95BAlibaba1.0M1.0M2026-08-12
13Z.ai: GLM 5.2Z.ai1.0M1.0M2026-06-16
14DeepSeek: DeepSeek V4 Pro 0423DeepSeek1.0M1.0M2026-04-24
15Meta: Muse Spark 1.1Meta1.0M1.0M2026-07-16
16Google: Gemini 3.8 FlashGoogle1.0M1.0M2026-09-02
17DeepSeek: DeepSeek V4 Flash 0731DeepSeek1.0M1.0M2026-07-31
18DeepSeek: DeepSeek V4 FlashDeepSeek1.0M1.0M2026-04-24
19MiniMax: MiniMax M3MiniMax1.0M1.0M2026-05-31
20Google: Gemini 3.1 Flash LiteGoogle1.0M1.0M2026-05-07
21Anthropic: Claude Fable 5.1Anthropic1.0M1.0M2026-09-01
22Qwen: Qwen3.8 Max (0902)Alibaba1.0M1.0M2026-09-03
23Claude Opus 5Anthropic1.0M1.0M2026-07-24
24Anthropic: Claude Fable 5Anthropic1.0M1.0M2026-06-09
25Anthropic: Claude Opus 4.8Anthropic1.0M1.0M2026-05-27
26Qwen: Qwen3.7 MaxAlibaba1.0M1.0M2026-05-21
27Anthropic: Claude Sonnet 5Anthropic1.0M1.0M2026-06-30
28Qwen: Qwen3.6 PlusAlibaba1.0M1.0M2026-04-02
29Anthropic: Claude Opus 4.8 (Fast)Anthropic1.0M1.0M2026-05-27
30Qwen: Qwen3.5 Plus 2026-04-20Alibaba1.0M1.0M2026-04-27
31Sakana: Fugu UltraSakana1.0M1.0M2026-06-24
32SpaceXAI: Grok 4.6xAI500K500K2026-08-12
33SpaceXAI: Grok 4.5xAI500K500K2026-07-08
34Claude 4.5 OpusAnthropic500K500K2026-05-19
35GPT-5.6 TerraOpenAI400K400K2026-07-08
36OpenAI: GPT-5.4 Image 2OpenAI272K272K2026-04-21
37MoonshotAI: Kimi K2.6Moonshot262K262K2026-04-20
38Qwen: Qwen3 Max ThinkingAlibaba262K262K2026-02-09
39Mistral: Mistral Medium 3.5Mistral262K262K2026-04-30
40Tencent: Hy3Tencent262K262K2026-07-06
41StepFun: Step 3.7 FlashStepFun262K262K2026-05-28
42Qwen: Qwen3.5 397B A17BAlibaba262K262K2026-02-16
43Qwen 3 MaxAlibaba262K262K2026-06-15
44Mistral: Mistral Large 3 2512Mistral262K262K2025-12-01
45Qwen: Qwen3.6 Max PreviewAlibaba262K262K2026-04-27
46Grok 4xAI256K256K2026-06-11
47SpaceXAI: Grok Build 0.1xAI256K256K2026-05-20
48Mistral Large 3Mistral256K256K2026-05-08
49Z.ai: GLM 5Z.ai205K205K2026-02-11
50Z.ai: GLM 5V TurboZ.ai203K203K2026-04-01
51Meta: Muse Glimmer 30BMeta131K131K2026-08-09
52Google: Nano Banana 2 (Gemini 3.1 Flash Image)Google131K131K2026-06-18
53Llama 4 405BMeta128K128K2026-04-30
54Google: Nano Banana Pro (Gemini 3 Pro Image)Google66K66K2026-06-18
55Google: Nano Banana 2 Lite (Gemini 3.1 Flash Lite Image)Google66K66K2026-06-30

Advertised context is not usable context

A context window is a ceiling, not a promise. Every model degrades before it reaches its advertised limit, and the shape of that degradation matters more than the headline number. The well-documented pattern is that material at the very start and very end of a long prompt is recalled reliably while material in the middle is often missed — the lost-in-the-middle effect — which means a million-token window does not mean a million tokens of dependable attention.

Retrieval benchmarks flatter models here. Finding one planted sentence in a long document is far easier than reasoning across twelve facts scattered through it, and most published long-context results measure the former. If your task needs synthesis across a whole corpus rather than lookup within it, expect real performance well below the advertised capability.

Long prompts are also expensive and slow. Input tokens are billed on every call, so a large stable prefix multiplies cost across a conversation unless the provider caches it, and time to first token grows with prompt length. A retrieval step that sends four relevant pages instead of four hundred is usually faster, cheaper and more accurate than relying on the window.

Where large windows genuinely earn their place: whole-repository code understanding, long legal or financial documents that resist clean chunking, multi-hour transcripts, and agent loops that accumulate long tool-call histories. In those cases the window removes an entire class of chunking bugs, and that is worth paying for.

Practical rule — use retrieval by default, use the long window when chunking would destroy the structure you need, and always test recall on your own documents at the length you actually intend to use, not at the length the specification allows.

More on how these numbers are produced in the methodology and what each evaluation measures in the benchmark guide. Spotted a score that disagrees with its source? Tell us.

Frequently asked

Which LLM has the largest context window?
The current leader is at the top of this table. Context windows range from 128K to 2M+ tokens across frontier models; larger windows unlock whole-codebase and full-document workflows.
Is bigger context always better?
Not necessarily. Recall quality often degrades past ~200K tokens even when the window advertises 1M+. Use benchmarks like Needle-in-a-Haystack to verify effective context, not just declared window size.