Use case

Best AI models for coding

Ranked by tool-use support, code-related signals in vendor descriptions, and overall capability. Includes both proprietary APIs and open-weight models you can self-host.

Top 1 models for code generation

#ModelProviderContextInput price / 1MTier
1Qwen2.5 Coder 32BQwen128K
Long context (128K+)
CustomVariable

Frequently asked questions

What's the best AI coding model right now?

It depends on whether you need raw quality (Claude Opus, GPT-5 Codex), low cost (Qwen Coder, DeepSeek), or self-hosting (Qwen Coder, GPT-OSS). Use the table above sorted by capability score and price tier.

Do these models support tool use?

Most flagship coding models on this page support tool/function calling — look for the 'tool-use' tag. Open-weight models vary; check each model page for the supported parameters.

Which coding model has the largest context window?

Models with 1M+ context (sorted at the top of the long-context column) handle entire monorepos in a single prompt.

Related use cases