Guide · 13 models

Best LLMs for coding

A good coding model needs three things: accurate code generation, enough context to see the files that matter, and the ability to plan multi-step changes. Reasoning models and agent-tuned models have pulled ahead on the last two.

Models here are tagged for coding or reasoning in the BotLineage database, newest first. For tools built on top of these models, see the Claude Code vs Cursor and Cursor vs Copilot comparisons.

  1. 01

    Claude Sonnet 4.5

    Sep 29, 2025 · 200K context · Closed / API

    Anthropic's coding- and agent-focused flagship in the Claude 4 family.

  2. 02

    GPT-5

    Aug 7, 2025 · 400K context · Closed / API

    OpenAI's next-generation flagship model succeeding GPT-4o.

  3. 03

    Grok 4

    Jul 9, 2025 · 256K context · Closed / API

    xAI's Grok 4 reasoning flagship.

  4. 04

    Claude Opus 4

    May 22, 2025 · 200K context · Closed / API

    Claude Opus 4 is Anthropic's top-tier model from the Claude 4 generation, released in May 2025 alongside Sonnet 4. It is built for long, autonomous coding and agent work, and can think at length while using tools.

  5. 05

    OpenAI o3

    Apr 16, 2025 · 200K context · Closed / API

    OpenAI o3 is the successor to o1 in OpenAI's reasoning line. Released in April 2025, it can call tools such as web search and Python while it reasons, and it reasons over images as well as text.

  6. 06

    Gemini 2.5 Pro

    Mar 25, 2025 · 1M context · Closed / API

    Reasoning-focused member of the Gemini 2.5 family.

  7. 07

    DeepSeek R1

    Jan 20, 2025 · 128K context · Open weights

    Open-weight reasoning model that popularized reinforcement-learned chain-of-thought at scale.

  8. 08

    OpenAI o1

    Dec 5, 2024 · 200K context · Closed / API

    OpenAI o1 is a reasoning model that thinks through a problem internally before replying, trading latency and cost for much higher accuracy on maths, science and difficult programming tasks. It reached general availability in December 2024 and set the template for later reasoning models.

  9. 09

    Claude 3.5 Sonnet

    Jun 20, 2024 · 200K context · Closed / API

    Mid-tier 3.5 model that outperformed Claude 3 Opus on many tasks.

  10. 10

    Llama 3

    Apr 18, 2024 · 8.2K context · Open weights

    8B and 70B open-weight release, later extended to Llama 3.1 and 3.2 with vision.

  11. 11

    Claude 3 Opus

    Mar 4, 2024 · 200K context · Closed / API

    Top-tier model in the Claude 3 lineup with strong reasoning.

  12. 12

    Claude 2

    Jul 11, 2023 · 100K context · Closed / API

    100K-token context refresh of the Claude line.

  13. 13

    GPT-4

    Mar 14, 2023 · 8.2K context · Closed / API

    Multimodal successor to GPT-3.5 with substantial gains on reasoning benchmarks.

See also: LLM context window comparison · All comparisons