Updated October 2026

Best long-context AI models in 2026

Models that can read entire codebases, books, or long document sets in a single prompt.

  1. #2meta-llama logo

    Meta

    Llama 4 Scout

    1.31M tokens

    Context window

  2. Top pickx-ai logo

    xAI

    Grok 4.20

    2M tokens

    Context window

  3. #3openai logo

    OpenAI

    GPT-6 Astra

    1.05M tokens

    Context window

Ranking

Top 20, ranked by context window

Ranked by maximum context window in tokens. Ties are broken by intelligence score.

  1. 1x-ai logoGrok 4.20xAI · $1.25 in / $2.50 out · 2M context2M tokens
  2. 2meta-llama logoLlama 4 ScoutMeta · $0.10 in / $0.30 out · 1.31M context1.31M tokens
  3. 3openai logoGPT-6 AstraOpenAI · $10 in / $50 out · 1.05M context1.05M tokens
  4. 4openai logoGPT-6.1 SolOpenAI · $2 in / $10 out · 1.05M context1.05M tokens
  5. 5openai logoGPT-6 SolOpenAI · $2 in / $10 out · 1.05M context1.05M tokens
  6. 6openai logoGPT-5.6 SolOpenAI · $2 in / $10 out · 1.05M context1.05M tokens
  7. 7xiaomi logoMiMo-V2.6-ProXiaomi · $0.44 in / $0.87 out · 1.05M context1.05M tokens
  8. 8openai logoGPT-5.6 TerraOpenAI · $2 in / $12 out · 1.05M context1.05M tokens
  9. 9openai logoGPT-5.4OpenAI · $2.50 in / $15 out · 1.05M context1.05M tokens
  10. 10openai logoGPT-5.5OpenAI · $5 in / $30 out · 1.05M context1.05M tokens
  11. 11openai logoGPT-6 LunaOpenAI · $0.10 in / $0.50 out · 1.05M context1.05M tokens
  12. 12xiaomi logoMiMo-V2.6-FlashXiaomi · $0.14 in / $0.28 out · 1.05M context1.05M tokens
  13. 13openai logoGPT-5.6 LunaOpenAI · $0.20 in / $1.20 out · 1.05M context1.05M tokens
  14. 14xiaomi logoMiMo-V2.5-ProXiaomi · $0.44 in / $0.87 out · 1.05M context1.05M tokens
  15. 15xiaomi logoMiMo-V2.5Xiaomi · $0.14 in / $0.28 out · 1.05M context1.05M tokens
  16. 16openai logoGPT-6 Luna ProOpenAI · $0.10 in / $0.50 out · 1.05M context1.05M tokens
  17. 17openai logoGPT-5.6 Luna ProOpenAI · $0.20 in / $1.20 out · 1.05M context1.05M tokens
  18. 18meituan logoLongCat 2.0Meituan · $0.30 in / $1.20 out · 1.05M context1.05M tokens
  19. 19meta logoMuse Spark 1.3Meta · $1.25 in / $4.25 out · 1.05M context1.05M tokens
  20. 20z-ai logoGLM 5.3Z.ai · $0.04 in / $7 out · 1.05M context1.05M tokens

FAQ

Frequently asked questions

Which AI model has the largest context window?

Grok 4.20 from xAI ranks first with context window of 2M tokens. Llama 4 Scout is second at 1.31M tokens.

How are these models ranked?

Ranked by maximum context window in tokens. Ties are broken by intelligence score.

Can I use more than one of these models?

Yes. Shortcut Chat sends one prompt to several models at once, so you can run the top models on this list side by side and keep the best answer.

x-ai logometa-llama logoopenai logoopenai logoopenai logo

Use the top models together.

Send one prompt to multiple models on this list at once, see the answers side by side, and take the best part from each.