Cheapest LLM API for an autonomous coding agent

Workload: 15M input and 3M output tokens a month, 40% cached. Only models with a published benchmark result (Artificial Analysis index, LMArena or SWE-bench) and a quality score of 70+ are listed. Scores marked (est.) are our estimate.

ModelProviderQualityCost / month
GPT-5.6 Luna ProOpenAI82/100 (est.)$5.52
Mistral Large 3 2512Mistral AI82/100 (est.)$9.30
GPT-6.1 TerraOpenAI87/100$24.30
Qwen3.7 MaxAlibaba Qwen82/100 (est.)$28.32
Kimi K3.1 ProMoonshot83/100$28.57
Gemini 4 HydrogenGoogle89/100$36.45
GPT-5.1-Codex-MaxOpenAI82/100 (est.)$42.00
Gemini 2.5 ProGoogle82/100 (est.)$42.00
Gemini 2.5 Pro Preview 06-05Google82/100 (est.)$42.00
Gemini 4 CarbonGoogle94/100$48.60
GPT-6.2 SolOpenAI92/100$48.60
GPT-6.1 SolOpenAI90/100$48.60

Other workloads: Chatbot · Coding agent · RAG pipeline · Document OCR

Prices updated 2026-11-23 from live OpenRouter data. Costs assume the workloads shown, with prompt caching applied at each provider's published cache-read rate (75% discount where none is published). Use your own numbers in the Spend Simulator →