ModelPriceWatch.com
Last scan 2026-10-17 Models tracked 290 Providers 40 Cheapest paid Granite 4.0 H Micro $0.017/Mtok in Every price links to its source

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.

81 models qualify top 27 shown ranked by SWE-bench Verified
1Anthropic

Claude Opus 5

97% SWE-bench Verified

$10.00/1M blended · $5.00 in · $25.00 out

2OpenAI

GPT-5.6 Sol

96.2% SWE-bench Verified

$8.00/1M blended · $4.00 in · $20.00 out

3xAI

Grok 4.6

95.6% SWE-bench Verified

$3.00/1M blended · $2.00 in · $6.00 out

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
Top 27 models for Best LLM API for Coding, ranked by SWE-bench Verified
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 Google
16Gemini 3.6 Flash 79.6% $1.50 $0.750 $3.75 1M Google
17Gemini 3.5 Flash-Lite 75% $0.850 $0.300 $2.50 1M Google
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
Ranked by SWE-bench Verified — independent leaderboard data; benchmark citations are on each model page. Scores flagged “vendor” are the maker's own claim, shown for reference and ranked below independently-scored models; models with no published score rank last, cheapest first. * Blended = (3×input + 1×output) ÷ 4. Every price links to its source on the model page.

Recent price movement in this ranking

price-only deltas · logged by the daily scan

4 of the top 27 coding models have re-priced since we began tracking · last checked .

Models in this Best LLM API for Coding ranking that have re-priced since tracking began, most recent move first
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 Google
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
Changes = distinct price moves logged since tracking began; in/out prices are $ per 1M tokens. MODELPRICEWATCH.COM · 2026-10-17

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.

Other use case rankings