Support

AI-powered help

Welcome!

Please introduce yourself before we start.

    • 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

    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)
    166/297
    Models
    42/64
    Providers
    125
    Vision Models (filtered)
    156
    Tool-enabled (filtered)
    1
    Free Models (filtered)
    Features
    Azure
    gpt-6.1-sol
    $2.00$10.00$0.10
    OpenAI
    gpt-6.1-sol
    $2.00$10.00$0.10
    AWS Bedrock(eu)
    claude-sonnet-5-5
    $2.20$11.00$0.22
    AWS Bedrock(us)
    claude-sonnet-5-5
    $2.20$11.00$0.22
    AWS Bedrock(global)
    claude-sonnet-5-5
    $2.00$10.00$0.20
    AWS Bedrock
    claude-sonnet-5-5
    $2.00$10.00$0.20
    Azure Anthropic
    claude-sonnet-5-5
    $2.00$10.00$0.20
    Anthropic
    claude-sonnet-5-5
    $2.00$10.00$0.20
    ByteDance
    seed-2-0-code-preview-260328
    $0.50$3.00$0.10
    ByteDance
    seed-2-0-mini-260428
    $0.10$0.40$0.02
    ByteDance
    seed-2-0-lite-260428
    $0.25$2.00$0.05
    ByteDance
    seed-2-0-pro-260328
    $0.50$3.00$0.10
    Alibaba Cloud(singapore)
    qwen3.5-35b-a3b
    $0.25$2.00—
    Alibaba Cloud
    qwen3.5-35b-a3b
    $0.25$2.00—
    Alibaba Cloud(singapore)
    qwen3.5-27b
    $0.30$2.40—
    Alibaba Cloud
    qwen3.5-27b
    $0.30$2.40—
    NovitaAI
    qwen3.5-122b-a10b
    $0.40$3.20—
    Alibaba Cloud(singapore)
    qwen3.5-122b-a10b
    $0.40$3.20—
    Alibaba Cloud
    qwen3.5-122b-a10b
    $0.40$3.20—
    Mistral AI
    mistral-medium-3-5
    $1.50$7.50—
    Mistral AI
    mistral-small-2603
    $0.15$0.60—
    Azure
    gpt-6-luna
    $0.10$0.50$0.01
    OpenAI
    gpt-6-luna
    $0.10$0.50$0.01
    Azure
    gpt-6-sol
    $2.00$10.00$0.20
    OpenAI
    gpt-6-sol
    $2.00$10.00$0.20
    AWS Bedrock(au)
    claude-opus-5-5
    $4.40$22.00$0.22
    AWS Bedrock(jp)
    claude-opus-5-5
    $4.40$22.00$0.22
    AWS Bedrock(eu)
    claude-opus-5-5
    $4.40$22.00$0.22
    AWS Bedrock(us)
    claude-opus-5-5
    $4.40$22.00$0.22
    AWS Bedrock(global)
    claude-opus-5-5
    $4.00$20.00$0.20
    AWS Bedrock
    claude-opus-5-5
    $4.00$20.00$0.20
    Azure Anthropic
    claude-opus-5-5
    $4.00$20.00$0.20
    Anthropic
    claude-opus-5-5
    $4.00$20.00$0.20
    NovitaAI
    step-3.7-flash
    $0.20$1.15$0.04
    DeepInfra
    inkling
    $0.95$4.05$0.16
    NovitaAI
    qwen3.8-2.4t-a95b
    $2.00$6.00$0.25
    DeepInfra
    qwen3.8-2.4t-a95b
    $2.00$6.00$0.20
    Together AI
    qwen3.8-2.4t-a95b
    $2.00$6.00$0.25
    DeepInfra
    mimo-v2.6-flash
    $0.14$0.28$0.00
    Xiaomi
    mimo-v2.6-flash
    $0.14$0.28$0.00
    DeepInfra
    mimo-v2.6-pro
    $0.43$0.87$0.00
    Xiaomi
    mimo-v2.6-pro
    $0.43$0.87$0.00
    AWS Bedrock(us)
    grok-4-7
    $2.20$6.60$0.55
    AWS Bedrock(global)
    grok-4-7
    $2.00$6.00$0.50
    AWS Bedrock
    grok-4-7
    $2.00$6.00$0.50
    xAI
    grok-4-7
    $2.00$6.00$0.50
    Atria
    atria-dawn-preview
    $0.00$0.00—
    Tencent Cloud
    glm-5v-turbo
    $1.20$4.00$0.24
    Tencent Cloud
    glm-5-turbo
    $1.20$4.00$0.24
    Tencent Cloud
    hy4-preview
    $0.83$2.50$0.04
    Page 1 of 11

    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.

    Newsletter

    Stay ahead of the curve

    Insights on LLM routing, new model launches and cost optimization, sent to your inbox.

    • New models and providers, rounded up
    • Tips to cut LLM costs
    • Major product launches

    No spam. Unsubscribe anytime.

    System status
    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
    • Developer resources
    • Integrations
    • Guides
    • Brand Assets
    • Token Cost Calculator
    • Copilot Cost Calculator
    • Referral Program
    • GitHub
    • Discord
    • Twitter
    • About
    • 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
    • Microsoft Foundry
    • Vercel AI Gateway
    • OpenRouter Alternatives
    • LiteLLM Alternatives
    • 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
    • Google Vertex AI
    • Vertex AI (OpenAI-compatible)
    • Vertex AI (Anthropic)
    • Groq
    • Cerebras
    • xAI
    • DeepSeek
    • Alibaba Cloud
    • Runpod
    • NovitaAI
    • AtlasCloud
    • AWS Bedrock
    • AWS Mantle
    • Azure
    • Azure AI Foundry
    • Azure Anthropic
    • Z AI
    • Moonshot AI
    • Baidu
    • Perplexity
    • Mistral AI
    • CanopyWave
    • Inference.net
    • Together AI
    • SCX.ai (Turbo)
    • SCX.ai
    • ByteDance
    • MiniMax
    • EmberCloud
    • Meta
    • Meta Contributor
    • Sakana AI
    • Xiaomi
    • DeepInfra
    • ElevenLabs
    • Runware
    • Gonka24
    • Fireworks AI
    • RanoAI
    • Consensus Protocol
    • Tencent Cloud
    • Atria
    • TypeSafe AI

    © 2026 LLM Gateway. All rights reserved.

    1.7k