AI models with the longest context window
A larger context window means more tokens you can fit in a single prompt, useful for whole-codebase analysis, long document Q&A, and agentic workflows. Note: effective quality often degrades past 128K tokens; prompt caching (supported on many models) is usually a better approach for repeated long context than brute-forcing more tokens in every call.
- 🥇grok-4-1-fast-reasoningxAI Corp.·— max output2M2M
- 🥈grok-4-fast-non-reasoningxAI Corp.·— max output2M2M
- 🥉grok-4-1-fast-non-reasoningxAI Corp.·— max output2M2M
- 4grok-4-fastxAI Corp.·— max output2M2M
- 5grok-4.2-betaxAI Corp.·— max output2M2M
- 6
gpt-5.4@swedencentralMicrosoft Azure AI·128K max output1.1M1.1M - 7
gpt-5.4@germanywestcentralMicrosoft Azure AI·128K max output1.1M1.1M - 8
gpt-5.4@westeuropeMicrosoft Azure AI·128K max output1.1M1.1M - 9
gpt-5.5@swedencentralMicrosoft Azure AI·128K max output1.1M1.1M - 10
gpt-5.5@germanywestcentralMicrosoft Azure AI·128K max output1.1M1.1M - 11
gpt-5.5@westeuropeMicrosoft Azure AI·128K max output1.1M1.1M - 12
gpt-5.6-luna@eastus2Microsoft Azure AI·128K max output1.1M1.1M - 13
gpt-5.6-sol@swedencentralMicrosoft Azure AI·128K max output1.1M1.1M - 14
gpt-5.6-sol@francecentralMicrosoft Azure AI·128K max output1.1M1.1M - 15
gpt-5.6-luna@swedencentralMicrosoft Azure AI·128K max output1.1M1.1M - 16
gpt-5.5@eastus2Microsoft Azure AI·128K max output1.1M1.1M - 17
gpt-5.6-terra@eastus2Microsoft Azure AI·128K max output1.1M1.1M - 18
gpt-5.6-terra@westeuropeMicrosoft Azure AI·128K max output1.1M1.1M - 19
gpt-5.6-sol@westeuropeMicrosoft Azure AI·128K max output1.1M1.1M - 20
gpt-5.6-sol@eastus2Microsoft Azure AI·128K max output1.1M1.1M - 21
gpt-5.6-terra@swedencentralMicrosoft Azure AI·128K max output1.1M1.1M - 22
gpt-5.4@francecentralMicrosoft Azure AI·128K max output1.1M1.1M - 23
gpt-5.4Microsoft Azure AI·128K max output1.1M1.1M - 24
gpt-5.6-luna@francecentralMicrosoft Azure AI·128K max output1.1M1.1M - 25
gpt-5.6-terra@germanywestcentralMicrosoft Azure AI·128K max output1.1M1.1M - 26
gpt-6-astra@eastus2Microsoft Azure AI·128K max output1.1M1.1M - 27
gpt-5.6-terra@francecentralMicrosoft Azure AI·128K max output1.1M1.1M - 28
gpt-5.6-sol@germanywestcentralMicrosoft Azure AI·128K max output1.1M1.1M - 29
gpt-5.6-luna@germanywestcentralMicrosoft Azure AI·128K max output1.1M1.1M - 30
gpt-5.6-luna@westeuropeMicrosoft Azure AI·128K max output1.1M1.1M
Explore other rankings
How we rank
Ranked by the model's maximum context window. Context window is the total tokens (input + output) the model can process in a single request. Note that effective quality often degrades well below the advertised maximum: most production workloads get better results from prompt caching and retrieval than from stuffing more tokens in every call.
One API for every model on this list
Requesty is OpenAI-compatible and routes to 600+ models. Switch between any of the models above by changing one parameter in your code.
