• DevPass
    • Lounge
    • Models
    • Docs
    • Pricing
    • DevPass
    • Lounge
    • Pricing
    • Docs
    • Models
      • AI Gateway
      • DevPass
      • Lounge
      • Observability
      • Enterprise
      • Blog
      • Changelog
      • Integrations
      • Reliability
      • Features
      • Guardrails
      • Providers
      • Partners
      • Rankings
      • Apps
      • Models
      • Model Timeline
      • Compare
      • Token Cost Calculator
      • Savings Audit
      • State of LLM Usage
      • Referral Program
      • MCP Server
      • CLI
      • Agents
      • AI SDK Provider
      • Agent Skills
      • Templates
      • Guides
    Log InGet Started

    Best Models for Coding

    Frontier and open-weight models for code generation, review, and agentic coding — compared by price and context window

    Compare
    Use Case
    Lounge Plan
    Capabilities
    Provider
    Status
    Input Price ($/M tokens)
    Output Price ($/M tokens)
    Context Size (tokens)
    42/324
    Models
    37/57
    Providers
    33
    Vision Models (filtered)
    40
    Tool-enabled (filtered)
    0
    Free Models (filtered)
    254 provider offers · page 1 of 6
    Features
    Anthropic
    claude-fable-5-2Plus: needs a Lounge Plus or Pro membership
    $8.00$40.00$0.20
    AWS Bedrock
    claude-fable-5-2Plus: needs a Lounge Plus or Pro membership
    $8.00$40.00$0.20
    AWS Bedrock(global)
    claude-fable-5-2Plus: needs a Lounge Plus or Pro membership
    $8.00$40.00$0.20
    AWS Bedrock(us)
    claude-fable-5-2Plus: needs a Lounge Plus or Pro membership
    $8.80$44.00$0.22
    Moonshot AI
    kimi-k3.1-pro-highspeedPlus: needs a Lounge Plus or Pro membership
    $4.00$20.00$0.20
    Runpod
    kimi-k3.1-pro-highspeedPlus: needs a Lounge Plus or Pro membership
    $4.00$20.00$0.20
    SCX.ai
    kimi-k3.1-pro-highspeedPlus: needs a Lounge Plus or Pro membership
    $3.80$19.00$0.19
    Alibaba Cloud
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud(ap-tokyo)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(cn-beijing)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(eu-frankfurt)
    kimi-k3.1-pro
    $1.84$9.61$0.18
    Alibaba Cloud(singapore)
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud(us-virginia)
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Fireworks AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Inference.net
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Moonshot AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Runpod
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Runware
    kimi-k3.1-pro
    $2.00$10.00$0.20
    SCX.ai
    kimi-k3.1-pro
    $1.90$9.50$0.19
    Together AI
    kimi-k3.1-pro
    $2.00$10.00$0.20
    Alibaba Cloud
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Alibaba Cloud(ap-tokyo)
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    Alibaba Cloud(cn-beijing)
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    Alibaba Cloud(eu-frankfurt)
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    Alibaba Cloud(singapore)
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Alibaba Cloud(us-virginia)
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    Baidu
    deepseek-v4.1-flash-1017
    $0.28$1.13$0.01
    Canopy Wave
    deepseek-v4.1-flash-1017
    $0.30$0.15
    -50% off
    $1.20$0.60
    -50% off
    $0.01$0.00
    -50% off
    Cloudflare
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    DeepInfra
    deepseek-v4.1-flash-1017
    $0.20$0.60$0.01
    DeepSeek
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    Entrim
    deepseek-v4.1-flash-1017
    $0.20$0.14
    -31% off
    $0.80$0.55
    -31% off
    $0.01$0.00
    -31% off
    Fireworks AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    FlexAI
    deepseek-v4.1-flash-1017
    $0.08$0.08
    -3% off
    $0.60$0.59
    -3% off
    $0.01$0.01
    -3% off
    Inference.net
    deepseek-v4.1-flash-1017
    $0.30$1.00$0.01
    Mistral AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    NovitaAI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Runware
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.01
    Sciforium
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    SCX.ai
    deepseek-v4.1-flash-1017
    $0.14$0.54$0.00
    Tencent Cloud
    deepseek-v4.1-flash-1017
    $0.15$0.60$0.00
    Together AI
    deepseek-v4.1-flash-1017
    $0.30$1.20$0.01
    Anthropic
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock(eu)
    claude-haiku-5-5
    $0.11$0.55$0.01
    AWS Bedrock(global)
    claude-haiku-5-5
    $0.10$0.50$0.01
    AWS Bedrock(us)
    claude-haiku-5-5
    $0.11$0.55$0.01
    Anthropic
    claude-sonnet-5-5
    $2.00$10.00$0.10
    AWS Bedrock
    claude-sonnet-5-5
    $2.00$10.00$0.10
    AWS Bedrock(eu)
    claude-sonnet-5-5
    $2.20$11.00$0.11
    Page 1 of 6

    The best coding models combine strong code generation with reliable tool calling, since modern coding agents lean on function calls to edit files and run commands. This page tracks the models developers actually ship with: Anthropic's Claude series, OpenAI's Codex line, Google's Gemini Pro, and fast-improving open-weight options like Qwen3 Coder, Kimi K2.7 Code, GLM, and DeepSeek.

    Access every one of them through a single OpenAI-compatible API with automatic failover, so your coding agent, IDE plugin, or CI pipeline can switch between frontier and budget models without code changes — and you can track exactly what each tool spends.

    Frequently asked questions

    What is the best LLM for coding?

    Claude Sonnet 5 and Claude Opus 4.8 lead most real-world coding evaluations, with OpenAI's GPT-5.3 Codex and Google's Gemini 3.1 Pro close behind. Among open-weight models, Qwen3 Coder, Kimi K2.7 Code, GLM-5.2, and DeepSeek V4 deliver strong results at a fraction of the price.

    What is the cheapest model that is still good at coding?

    Qwen3 Coder 30B (about $0.07 per million input tokens), GLM-4.7 Flash, and DeepSeek V4 Flash are the standouts for budget coding. They handle everyday completion, refactoring, and code review well and are cheap enough to run on every commit.

    Can I use these models with coding agents like Cline or Aider?

    Yes. Any agent that supports an OpenAI-compatible endpoint or custom base URL can route through LLM Gateway with one API key — that includes Cline, Aider, Roo Code, and devpass-code — so you can mix models per task and see per-agent cost analytics.

    Do coding models need tool calling?

    For agentic workflows, yes. Editing files, running tests, and searching a repo all happen through function calls, so pick a model with reliable tool calling — the capability icons in the list above show which provider mappings support tools. For plain autocomplete or one-shot generation, tool calling is optional.

    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
    • Provider status
    • Rankings
    • State of LLM Usage
    • 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
    • Savings Audit
    • Status & Pricing Badges
    • 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
    • Decisions
    • Vision
    • Reasoning
    • Tool Calling
    • Web Search
    • Discounted
    • Best for Roleplay
    • Best for Coding
    • Best for Creative Writing
    • Best for Translation
    • Best for Math
    • Best for Cyber Security
    • Best for Reverse Engineering
    • Long Context
    • Cheapest
    • Open Source

    Providers

    • fal
    • 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 Anthropic
    • Z AI
    • Moonshot AI
    • Baidu
    • Perplexity
    • Nebius AI
    • Mistral AI
    • CanopyWave
    • Inference.net
    • Together AI
    • ByteDance
    • MiniMax
    • Meta
    • Meta Contributor
    • Sakana AI
    • Xiaomi
    • DeepInfra
    • ElevenLabs
    • Fireworks AI
    • Tencent Cloud
    • TypeSafe AI
    • Cloudflare

    © 2026 LLM Gateway. All rights reserved.

    1.7k