Support

AI-powered help

Welcome!

Please introduce yourself before we start.

    Long Context Models

    Models with context windows of 200K tokens or more — up to 2M — for whole-codebase and multi-document workloads

    Compare
    Use Case
    Capabilities
    Provider
    Status
    Input Price ($/M tokens)
    Output Price ($/M tokens)
    Context Size (tokens)
    137/259
    Models
    41/55
    Providers
    97
    Vision Models (filtered)
    127
    Tool-enabled (filtered)
    0
    Free Models (filtered)
    Features
    AWS Bedrock(au)
    claude-opus-4-7
    $5.50$27.50$0.55
    EmberCloud
    glm-5.1
    $0.93$2.93$0.17
    Nebius AI
    glm-5.1
    $1.40$4.40—
    Baidu
    glm-5.1
    $1.40$4.40$0.26
    NovitaAI
    glm-5.1
    $1.38$4.40$0.26
    Z AI
    glm-5.1
    $1.40$4.40$0.26
    EmberCloud
    qwen3-coder-next
    $0.11$0.68$0.06
    MiniMax
    minimax-m2.5-highspeed
    $0.60$2.40$0.03
    MiniMax
    minimax-m2.7-highspeed
    $0.60$2.40$0.06
    NovitaAI
    minimax-m2.7
    $0.30$1.20$0.06
    Gonka24
    minimax-m2.7
    $0.08$0.32$0.02
    MiniMax
    minimax-m2.7
    $0.30$1.20$0.06
    Google AI Studio
    gemini-pro-latest
    $2.00$12.00$0.20
    OpenAI
    gpt-5.4-nano
    $0.20$1.25$0.02
    Azure
    gpt-5.4-nano
    $0.20$1.25$0.02
    Azure
    gpt-5.4-mini
    $0.75$4.50$0.07
    OpenAI
    gpt-5.4-mini
    $0.75$4.50$0.07
    xAI
    grok-4-20-beta-0309-non-reasoning
    $2.00$6.00$0.20
    xAI
    grok-4-20-beta-0309-reasoning
    $2.00$6.00$0.20
    Azure
    gpt-5.3-codex
    $1.75$14.00$0.17
    OpenAI
    gpt-5.3-codex
    $1.75$14.00$0.17
    Azure
    gpt-5.2-codex
    $1.75$14.00$0.17
    Azure
    o4-mini
    $1.10$4.40$0.28
    OpenAI
    o4-mini
    $1.10$4.40$0.28
    Azure AI Foundry
    grok-4-1-fast
    $0.20$0.50—
    Azure
    gpt-5.4-pro
    $30.00$180.00—
    OpenAI
    gpt-5.4-pro
    $30.00$180.00—
    OpenAI
    gpt-5.4
    $2.50$15.00$0.25
    Azure
    gpt-5.4
    $2.50$15.00$0.25
    Alibaba Cloud
    qwen35-397b-a17b
    $0.60$3.60—
    Alibaba Cloud(singapore)
    qwen35-397b-a17b
    $0.60$3.60—
    Alibaba Cloud(cn-beijing)
    qwen35-397b-a17b
    $0.17$1.03—
    NovitaAI
    qwen35-397b-a17b
    $0.60$3.60—
    Alibaba Cloud(us-virginia)
    qwen35-397b-a17b
    $0.60$3.60—
    Mistral AI
    devstral-2512
    $0.40$2.00—
    Mistral AI
    codestral-2508
    $0.30$0.90—
    Mistral AI
    ministral-8b-2512
    $0.15$0.15—
    Mistral AI
    ministral-14b-2512
    $0.20$0.20—
    Mistral AI
    mistral-large-2512
    $0.50$1.50—
    Quartz
    gemini-3.1-pro-preview
    $2.00$12.00$0.20
    Google Vertex AI
    gemini-3.1-pro-preview
    $2.00$12.00$0.20
    Iceberg
    gemini-3.1-pro-preview
    $2.00$12.00$0.20
    Google AI Studio
    gemini-3.1-pro-preview
    $2.00$12.00$0.20
    AWS Bedrock(us)
    claude-sonnet-4-6
    $3.30$16.50$0.33
    Vertex AI (Anthropic)
    claude-sonnet-4-6
    $3.00$15.00$0.30
    AWS Bedrock(eu)
    claude-sonnet-4-6
    $3.30$16.50$0.33
    AWS Bedrock(eu-west-2)
    claude-sonnet-4-6
    $3.30$16.50$0.33
    AWS Bedrock(global)
    claude-sonnet-4-6
    $3.00$15.00$0.30
    Anthropic
    claude-sonnet-4-6
    $3.00$15.00$0.30
    AWS Bedrock(au)
    claude-sonnet-4-6
    $3.30$16.50$0.33
    Page 5 of 9

    Newsletter

    Stay ahead of the curve

    Join developers who get weekly insights on LLM routing, new model launches, and cost optimization — straight to their inbox.

    • New models & providers as they drop
    • Tips to cut latency & costs
    • Early access to beta features

    No spam. Unsubscribe anytime.

    All systems operational
    AICPA SOC for Service Organizations badgeSOC 2 Type II
    compliant

    Product

    • Features
    • AI Gateway
    • Observability
    • Models
    • Providers
    • Rankings
    • Add Provider
    • Partners
    • Lounge
    • Changelog
    • DevPass
    • Compare Models
    • Enterprise

    Resources

    • Legal Overview
    • Apps
    • Templates
    • Agents
    • MCP Server
    • Use Cases
    • Blog
    • Documentation
    • Integrations
    • Guides
    • Brand Assets
    • Token Cost Calculator
    • Copilot Cost Calculator
    • Referral Program
    • GitHub
    • Discord
    • Twitter
    • Contact Us

    Compliance

    • Trust Center
    • Security Portal
    • Terms
    • Privacy Policy
    • Provider Information
    • Sub-processors
    • SOC 2 Type II
    • Status

    Compare

    • All Comparisons
    • GitHub Copilot
    • OpenRouter
    • LiteLLM
    • Portkey
    • AWS Bedrock
    • Azure AI Foundry
    • Vercel AI Gateway
    • Migration Guides

    Models

    • Text Generation
    • Text to Image
    • Image to Image
    • Video Generation
    • Embeddings
    • Vision
    • Reasoning
    • Tool Calling
    • Web Search
    • Discounted
    • Best for Roleplay
    • Best for Coding
    • Best for Creative Writing
    • Best for Translation
    • Best for Math
    • Long Context
    • Cheapest
    • Open Source

    Providers

    • OpenAI
    • Anthropic
    • Google AI Studio
    • Glacier
    • Iceberg
    • Granite
    • Google Vertex AI
    • Vertex AI (OpenAI-compatible)
    • Vertex AI (Anthropic)
    • Quartz
    • Avalanche
    • Groq
    • Cerebras
    • xAI
    • DeepSeek
    • Alibaba Cloud
    • NovitaAI
    • AtlasCloud
    • AWS Bedrock
    • AWS Mantle
    • Azure
    • Azure AI Foundry
    • Z AI
    • Moonshot AI
    • Baidu
    • Permafrost
    • Perplexity
    • Nebius AI
    • Mistral AI
    • CanopyWave
    • Inference.net
    • Together AI
    • SCX.ai (Turbo)
    • SCX.ai
    • Custom
    • NanoGPT
    • ByteDance
    • MiniMax
    • EmberCloud
    • Meta
    • Sakana AI
    • Tundra
    • Xiaomi
    • DeepInfra
    • Reve
    • ElevenLabs
    • Runware
    • Gonka24
    • Fireworks AI
    • RanoAI

    © 2026 LLM Gateway. All rights reserved.

    Every model on this page accepts at least 200,000 tokens of context — roughly 150,000 words — and the largest stretch much further: Grok 4.1 Fast at 2 million tokens, with Gemini, Claude Sonnet 5, GPT-5.4, DeepSeek V4, and GLM-5.2 at or above the million-token mark. That's enough to fit an entire codebase, a legal document set, or months of chat history into a single prompt.

    Advertised size isn't everything: retrieval quality can degrade well before the window is full, and long prompts get expensive fast. Cached input pricing — shown in the list — matters more than the headline price when you re-send large contexts on every request.

    Frequently asked questions

    Which LLM has the largest context window?

    Grok 4.1 Fast currently leads with a 2 million token window. Gemini models run just over 1 million, and Claude Sonnet 5, GPT-5.4, DeepSeek V4, GLM-5.2, and Qwen3.7 also offer million-token windows.

    How many words fit in a 200K context window?

    Roughly 150,000 English words — about 600 pages. A million-token window fits around 750,000 words: several full-length books, or a mid-sized codebase.

    Do models actually use the full window well?

    Not uniformly. Most models recall the start and end of a prompt better than the middle, and effective context is often smaller than the advertised maximum. For critical retrieval over huge inputs, test with your own data and consider chunking plus retrieval instead of one giant prompt.

    How do I keep long-context costs down?

    Use cached input pricing: providers charge a fraction of the normal rate for re-sent, unchanged prefixes, which is exactly the shape of chatting over a large document or codebase. Structure prompts so the big static context comes first and only the question changes.

    is now on LLM Gateway — 30% off open-source modelsends in 7d 08:38:39
    LLM Gateway
    • DevPass
    • Lounge
    • Models
    • Docs
    • Pricing
    • DevPass
    • Lounge
    • Pricing
    • Docs
    • Models
      • AI Gateway
      • DevPass
      • Lounge
      • Observability
      • Enterprise
      • Blog
      • Changelog
      • Integrations
      • Reliability
      • Guardrails
      • Providers
      • Partners
      • Rankings
      • Apps
      • Models
      • Model Timeline
      • Compare
      • Token Cost Calculator
      • Referral Program
      • MCP Server
      • Agents
      • AI SDK Provider
      • Agent Skills
      • Templates
      • Guides
    Log InGet Started
    1.6k