by context window
AI models with the longest context
Sorted by maximum context length. Useful for long-document analysis, large codebases, RAG pipelines.
| # | Model | Score | In / 1M | Out / 1M | Context | |
|---|---|---|---|---|---|---|
| 1 | xAI: Grok 4.20x-ai/grok-4.20 | 100 | $2.000 | $6.000 | 2,000,000 | Try → |
| 2 | xAI: Grok 4.1 Fastx-ai/grok-4.1-fast | 100 | $0.200 | $0.500 | 2,000,000 | Try → |
| 3 | xAI: Grok 4 Fastx-ai/grok-4-fast | 100 | $0.200 | $0.500 | 2,000,000 | Try → |
| 4 | Auto Routeropenrouter/auto | 100 | $-1000000.000 | $-1000000.000 | 2,000,000 | Try → |
| 5 | xAI: Grok 4.20 Multi-Agentx-ai/grok-4.20-multi-agent | 96 | $2.000 | $6.000 | 2,000,000 | Try → |
| 6 | OpenAI: GPT-5.4openai/gpt-5.4 | 100 | $2.500 | $15.000 | 1,050,000 | Try → |
| 7 | OpenAI: GPT-5.4 Proopenai/gpt-5.4-pro | 85 | $30.000 | $180.000 | 1,050,000 | Try → |
| 8 | Google: Gemini 3.1 Flash Lite Previewgoogle/gemini-3.1-flash-lite-preview | 100 | $0.250 | $1.500 | 1,048,576 | Try → |
| 9 | Google: Gemini 3.1 Pro Preview Custom Toolsgoogle/gemini-3.1-pro-preview-customtools | 100 | $2.000 | $12.000 | 1,048,576 | Try → |
| 10 | Google: Gemini 3.1 Pro Previewgoogle/gemini-3.1-pro-preview | 100 | $2.000 | $12.000 | 1,048,576 | Try → |
| 11 | Google: Gemini 3 Flash Previewgoogle/gemini-3-flash-preview | 100 | $0.500 | $3.000 | 1,048,576 | Try → |
| 12 | Google: Gemini 2.5 Flash Lite Preview 09-2025google/gemini-2.5-flash-lite-preview-09-2025 | 100 | $0.100 | $0.400 | 1,048,576 | Try → |
| 13 | Google: Gemini 2.5 Flash Litegoogle/gemini-2.5-flash-lite | 100 | $0.100 | $0.400 | 1,048,576 | Try → |
| 14 | Google: Gemini 2.5 Flashgoogle/gemini-2.5-flash | 100 | $0.300 | $2.500 | 1,048,576 | Try → |
| 15 | Google: Gemini 2.5 Progoogle/gemini-2.5-pro | 100 | $1.250 | $10.000 | 1,048,576 | Try → |
| 16 | Google: Gemini 2.5 Pro Preview 06-05google/gemini-2.5-pro-preview | 100 | $1.250 | $10.000 | 1,048,576 | Try → |
| 17 | Google: Gemini 2.5 Pro Preview 05-06google/gemini-2.5-pro-preview-05-06 | 100 | $1.250 | $10.000 | 1,048,576 | Try → |
| 18 | Google: Gemini 2.0 Flash Litegoogle/gemini-2.0-flash-lite-001 | 100 | $0.075 | $0.300 | 1,048,576 | Try → |
| 19 | Google: Gemini 2.0 Flashgoogle/gemini-2.0-flash-001 | 100 | $0.100 | $0.400 | 1,048,576 | Try → |
| 20 | Xiaomi: MiMo-V2-Proxiaomi/mimo-v2-pro | 98 | $1.000 | $3.000 | 1,048,576 | Try → |
| 21 | Meta: Llama 4 Maverickmeta-llama/llama-4-maverick | 89 | $0.150 | $0.600 | 1,048,576 | Try → |
| 22 | Google: Lyria 3 Pro Previewgoogle/lyria-3-pro-preview | 88 | Free | Free | 1,048,576 | Try → |
| 23 | Google: Lyria 3 Clip Previewgoogle/lyria-3-clip-preview | 88 | Free | Free | 1,048,576 | Try → |
| 24 | OpenAI: GPT-4.1openai/gpt-4.1 | 100 | $2.000 | $8.000 | 1,047,576 | Try → |
| 25 | OpenAI: GPT-4.1 Miniopenai/gpt-4.1-mini | 100 | $0.400 | $1.600 | 1,047,576 | Try → |
| 26 | OpenAI: GPT-4.1 Nanoopenai/gpt-4.1-nano | 100 | $0.100 | $0.400 | 1,047,576 | Try → |
| 27 | Writer: Palmyra X5writer/palmyra-x5 | 76 | $0.600 | $6.000 | 1,040,000 | Try → |
| 28 | MiniMax: MiniMax-01minimax/minimax-01 | 84 | $0.200 | $1.100 | 1,000,192 | Try → |
| 29 | Qwen: Qwen3.6 Plusqwen/qwen3.6-plus | 100 | $0.325 | $1.950 | 1,000,000 | Try → |
| 30 | Qwen: Qwen3.5-Flashqwen/qwen3.5-flash-02-23 | 100 | $0.065 | $0.260 | 1,000,000 | Try → |
| 31 | Qwen: Qwen3.5 Plus 2026-02-15qwen/qwen3.5-plus-02-15 | 100 | $0.260 | $1.560 | 1,000,000 | Try → |
| 32 | Amazon: Nova 2 Liteamazon/nova-2-lite-v1 | 100 | $0.300 | $2.500 | 1,000,000 | Try → |
| 33 | Anthropic: Claude Sonnet 4.5anthropic/claude-sonnet-4.5 | 100 | $3.000 | $15.000 | 1,000,000 | Try → |
| 34 | Qwen: Qwen Plus 0728 (thinking)qwen/qwen-plus-2025-07-28:thinking | 99 | $0.260 | $0.780 | 1,000,000 | Try → |
| 35 | Anthropic: Claude Sonnet 4.6anthropic/claude-sonnet-4.6 | 96 | $3.000 | $15.000 | 1,000,000 | Try → |
| 36 | Anthropic: Claude Sonnet 4anthropic/claude-sonnet-4 | 96 | $3.000 | $15.000 | 1,000,000 | Try → |
| 37 | Qwen: Qwen Plus 0728qwen/qwen-plus-2025-07-28 | 94 | $0.260 | $0.780 | 1,000,000 | Try → |
| 38 | Qwen: Qwen-Plusqwen/qwen-plus | 94 | $0.260 | $0.780 | 1,000,000 | Try → |
| 39 | Qwen: Qwen3 Coder Flashqwen/qwen3-coder-flash | 94 | $0.195 | $0.975 | 1,000,000 | Try → |
| 40 | MiniMax: MiniMax M1minimax/minimax-m1 | 93 | $0.400 | $2.200 | 1,000,000 | Try → |
| 41 | Qwen: Qwen3 Coder Plusqwen/qwen3-coder-plus | 93 | $0.650 | $3.250 | 1,000,000 | Try → |
| 42 | Anthropic: Claude Opus Latest~anthropic/claude-opus-latest | 90 | $5.000 | $25.000 | 1,000,000 | Try → |
| 43 | Anthropic: Claude Opus 4.7anthropic/claude-opus-4.7 | 90 | $5.000 | $25.000 | 1,000,000 | Try → |
| 44 | Anthropic: Claude Opus 4.6anthropic/claude-opus-4.6 | 90 | $5.000 | $25.000 | 1,000,000 | Try → |
| 45 | Amazon: Nova Premier 1.0amazon/nova-premier-v1 | 87 | $2.500 | $12.500 | 1,000,000 | Try → |
| 46 | Anthropic: Claude Opus 4.6 (Fast)anthropic/claude-opus-4.6-fast | 80 | $30.000 | $150.000 | 1,000,000 | Try → |
| 47 | OpenAI: GPT-5.4 Nanoopenai/gpt-5.4-nano | 100 | $0.200 | $1.250 | 400,000 | Try → |
| 48 | OpenAI: GPT-5.4 Miniopenai/gpt-5.4-mini | 100 | $0.750 | $4.500 | 400,000 | Try → |
| 49 | OpenAI: GPT-5.3-Codexopenai/gpt-5.3-codex | 100 | $1.750 | $14.000 | 400,000 | Try → |
| 50 | OpenAI: GPT-5.2openai/gpt-5.2 | 100 | $1.750 | $14.000 | 400,000 | Try → |