Skip to content

Longest context

Ranked by maximum context window (tokens) as listed by the API provider.

Ranked by maximum context window (tokens) as listed by the API provider. Source: OpenRouter. Variants (reasoning effort, batch) are folded into one row.

#ModelCapabilityReasoningCodingContext$/M
201Mistral Small 3.2 24BMistral AI———256K$0.13
202Relace Apply 3Relace———256K$0.95
203Relace SearchRelace———256K$1.50
204GLM 5.1Z.ai (Zhipu AI)149.989.9—205K$2.15
205MiniMax M2.5MiniMax146.7——205K$0.47
206GLM 5Z.ai (Zhipu AI)145.887.8—205K$0.93
207MiniMax M2.7MiniMax145.8——205K$0.37
208GLM 4.7Z.ai (Zhipu AI)143.583.3—205K$1.00
209GLM 4.6Z.ai (Zhipu AI)———205K$0.76
210MiniMax M2MiniMax———205K$0.53
211MiniMax M2.1MiniMax———205K$0.53
212GLM 5 TurboZ.ai (Zhipu AI)———203K$1.90
213GLM 5V TurboZ.ai (Zhipu AI)———203K$1.90
214Claude Opus 4.5Anthropic · +1 variant150.1——200K$10.00
215o3 ProOpenAI147.4——200K$35.00
216o3OpenAI · +1 variant146.981.8—200K$3.50
217o4 MiniOpenAI · +1 variant145.679.6—200K$1.93
218Claude Opus 4.1Anthropic · +1 variant144.177.3—200K$30.00
219Claude Haiku 4.5Anthropic · +1 variant142.471.2—200K$2.00
220o1OpenAI141.976.8—200K$26.25
221Claude Sonnet 4Anthropic141.779.2—200K$6.00
222o3 MiniOpenAI · +1 variant140.377.0—200K$1.93
223GLM 4.7 FlashZ.ai (Zhipu AI)—60.5—200K$0.15
224o1-proOpenAI———200K$262.50
225o3 Mini HighOpenAI———200K$1.93
226o4 Mini HighOpenAI———200K$1.93
227Sonar ProPerplexity———200K$6.00
228Sonar Pro SearchPerplexity———200K$6.00
229DeepSeek V3.2DeepSeek146.383.4—164K$0.32
230DeepSeek V3.2 ExpDeepSeek145.0——164K$0.30
231DeepSeek V3.1DeepSeek139.9——164K$0.42
232DeepSeek V3DeepSeek132.456.5—164K$0.45
233DeepSeek V3 0324DeepSeek———164K$0.50
234DeepSeek V3.1 TerminusDeepSeek———164K$0.47
235Llama Guard 4 12BMeta———164K$0.18
236R1 0528DeepSeek———164K$0.91
237gpt-oss-120bOpenAI · +1 variant139.975.8—131K$0.070
238Qwen3 235B A22BAlibaba (Qwen)139.470.7—131K$0.80
239Qwen3 32BAlibaba (Qwen)138.565.7—131K$0.13
240Qwen3 14BAlibaba (Qwen)138.263.8—131K$0.15
241gpt-oss-20bOpenAI · +1 variant137.860.8—131K$0.036
242Qwen3 30B A3BAlibaba (Qwen)136.261.7—131K$0.23
243Qwen3 8BAlibaba (Qwen)136.256.8—131K$0.20
244Mistral Medium 3Mistral AI134.159.5—131K$0.80
245Gemma 3 27BGoogle130.047.7—131K$0.17
246Gemma 3 12BGoogle123.539.5—131K$0.075
247Mistral NemoMistral AI118.629.9—131K$0.022
248Gemma 3 4BGoogle116.023.2—131K$0.063
249Aion-2.0AionLabs———131K$1.00
250Aion-3.0AionLabs———131K$3.75
— means no published score from that source yet · click a model for every benchmark with its source

New - awaiting independent evaluation

All new models →

Not ranked until an independent evaluator (Epoch AI) publishes scores. We don't use vendor-reported benchmark claims for rankings.

Best AI for coding →
Models ranked on DeepSWE
Best AI for reasoning →
Ranked on GPQA Diamond
Best AI for math →
Ranked on competition math
Best open-weight models →
Weights you can run yourself
Cheapest capable models →
Lowest blended API price
Best AI coding tools →
Apps & agents by popularity
Best AI image generators →
Apps & models
Best AI for research →
Answer engines & deep research