Best LLM API for Coding
Compare LLM API pricing and capabilities for coding tasks. Independently benchmarked models for code generation, debugging, and software development — with verified per-token prices.
MODELPRICEWATCH.COM · 2026-10-17
Cost calculator for this use casemonthly cost, top 3 models
- 1 Claude Opus 5
- $—
- 2 GPT-5.6 Sol
- $—
- 3 Grok 4.6
- $—
Full ranking — top 27 models
list prices, USD per 1M tokens| Model | SWE-bench Verified | Blended* | Input | Output | Context | Provider |
|---|---|---|---|---|---|---|
| 1Claude Opus 5 | 97% | $10.00 | $5.00 | $25.00 | 1M | Anthropic |
| 2GPT-5.6 Sol | 96.2% | $8.00 | $4.00 | $20.00 | 1M | OpenAI |
| 3Grok 4.6 | 95.6% | $3.00 | $2.00 | $6.00 | 500K | xAI |
| 4GLM-5.3 | 95.4% | $2.15 | $1.40 | $4.40 | 1M | Z.AI |
| 5GPT-5.6 Terra | 95.4% | $4.50 | $2.00 | $12.00 | 1M | OpenAI |
| 6Claude Fable 5 | 95% | $20.00 | $10.00 | $50.00 | 1M | Anthropic |
| 7Kimi K3 | 93.4% | $6.00 | $3.00 | $15.00 | 1M | Moonshot |
| 8GPT-5.6 Luna | 93% | $0.450 | $0.200 | $1.20 | 1M | OpenAI |
| 9Claude Opus 4.8 | 88.6% | $10.00 | $5.00 | $25.00 | 1M | Anthropic |
| 10Claude Opus 4.7 | 87.6% | $10.00 | $5.00 | $25.00 | 1M | Anthropic |
| 11Grok 4.5 | 86.6% | $3.00 | $2.00 | $6.00 | 500K | xAI |
| 12Muse Spark 1.2 | 86.6% | $2.00 | $1.25 | $4.25 | 1M | Meta |
| 13Qwen3.8-Max | 85.6% | $3.00 | $2.00 | $6.00 | 1M | Alibaba |
| 14Claude Sonnet 5 | 85.2% | $4.00 | $2.00 | $10.00 | 1M | Anthropic |
| 15Gemini 3.8 Flash | 80% | $1.50 | $0.750 | $3.75 | 1M | |
| 16Gemini 3.6 Flash | 79.6% | $1.50 | $0.750 | $3.75 | 1M | |
| 17Gemini 3.5 Flash-Lite | 75% | $0.850 | $0.300 | $2.50 | 1M | |
| 18GPT-5.4 | 75% | $5.63 | $2.50 | $15.00 | 1M | OpenAI |
| 19Grok 4.3 | 65% | $1.56 | $1.25 | $2.50 | 1M | xAI |
| 20GPT-4.1 | 49% | $3.50 | $2.00 | $8.00 | 1M | OpenAI |
| 21Ember-1 | 92.2% vendor | $6.00 | $3.00 | $15.00 | 1M | Fireworks |
| 22GPT-6 Luna | — | $0.200 | $0.100 | $0.500 | 1M | OpenAI |
| 23Hy4 preview | — | $1.25 | $0.834 | $2.50 | 1M | Tencent |
| 24Muse Spark 1.3 | — | $2.00 | $1.25 | $4.25 | 1M | Meta |
| 25Claude Sonnet 5.5 | — | $4.00 | $2.00 | $10.00 | 1M | Anthropic |
| 26GPT-6 Sol | — | $4.00 | $2.00 | $10.00 | 1M | OpenAI |
| 27Claude Fable 5.1 | — | $20.00 | $10.00 | $50.00 | 1M | Anthropic |
Recent price movement in this ranking
price-only deltas · logged by the daily scan4 of the top 27 coding models have re-priced since we began tracking · last checked .
| Model | Changes | Latest move | Provider |
|---|---|---|---|
| GPT-5.6 Sol | 1 | price cut on : $5.00/$30.00 → $4.00/$20.00 /Mtok | OpenAI |
| Gemini 3.6 Flash | 1 | price cut on : $1.50/$7.50 → $0.750/$3.75 /Mtok | |
| GPT-5.6 Terra | 1 | price cut on : $2.50/$15.00 → $2.00/$12.00 /Mtok | OpenAI |
| GPT-5.6 Luna | 1 | price cut on : $1.00/$6.00 → $0.200/$1.20 /Mtok | OpenAI |
Most recently, GPT-5.6 Sol cut its price on — a sign pricing in this category is still moving, so re-check before committing to a long-term choice. See all recent price moves →
How models are selected
Generally-available models with a SWE-bench Verified score (resolving real GitHub issues) or a code-specialized release, ranked by independently-evaluated SWE-bench Verified. One row per model — host duplicates are collapsed. Vendor-reported scores are shown flagged and ranked below independently-scored models, never against them; models with no published score rank last, cheapest first. Prices shown are verified against official provider pages.
Prices are per million tokens (Mtok), sourced directly from — and linked to — official provider pricing pages. "Blended cost" is (3×input + 1×output) ÷ 4 — weighted toward input because real workloads read far more tokens than they generate.