Cheapest model for coding agents

Per-token price lists hide what matters: agents are input-heavy and cache-heavy. Here's every model ranked by an actual monthly bill.

Data verified 2026-10-13 from official pricing pages.

Ranked by monthly cost

Workload: 3M input + 150K output tokens/day, 60% cache hit rate, 22 working days, standard list prices.

#ModelVendorIn / Cached / Out per 1MEst./month
1GPT-6 LunaOpenAI$0.1 / $0.01 / $0.5$4.69
2Gemini 3.5 Flash-LiteGoogle$0.3 / $0.03 / $2.5$17
3Gemini 3.8 FlashGoogle$0.75 / $0.075 / $3.75$35
4Grok Build 0.1xAI$1 / $0.2 / $2$41
5Claude Haiku 5.5Anthropic$0.5 / — / $2.5$41
6Grok 4.3xAI$1.25 / $0.2 / $2.5$49
7GPT-6.1 SolOpenAI$2 / $0.1 / $10$90
8Gemini 4 ArgonGoogle$2 / $0.1 / $10$90
9Grok 4.7xAI$2 / $0.5 / $6$92
10GPT-5.3 CodexOpenAI$1.75 / $0.175 / $14$99
11Gemini 3.1 Pro PreviewGoogle$2 / $0.2 / $12$100
12Claude Sonnet 4.6 (legacy)Anthropic$3 / $0.3 / $15$141
13Claude Sonnet 5.5Anthropic$2 / — / $10$165
14Claude Opus 5.5Anthropic$4 / $0.2 / $20$180
15GPT-5.6 SolOpenAI$4 / $0.4 / $20$187
16Claude Opus 5 (legacy)Anthropic$5 / $0.5 / $25$234
17GPT-6 AstraOpenAI$10 / $1 / $50$469
18Claude Fable 5.1Anthropic$10 / — / $50$825

Change the workload in the calculator. Note scheduled changes: Gemini 4 Argon doubles Dec 1, 2026; Gemini 3.8 Flash doubles Jan 1, 2027.

FAQ

What is the cheapest model for coding agents?

At list prices with our default agent workload, GPT-6 Luna is cheapest at about $4.69/month, followed by Gemini 3.5 Flash-Lite ($17) and Gemini 3.8 Flash ($35).

Why does cache pricing matter so much?

Agents resend the same context every turn, so most input tokens can be cache hits. Cached input is often 10x cheaper than fresh input.

Should I use the cheapest model for everything?

Usually not. Route easy work (search, summaries, boilerplate) to cheap models and keep frontier models for planning and hard debugging.

Related