AI Learning
AI Learning
Which AI coding model to use for each task, what it costs, and how to keep it cheap. Built for a solo developer using Codex and Freebuff.
Last updated: 2026-11-13 · Last checked: 2026-11-13New
Model lineup
Prices are USD per 1M tokens, standard tier. OpenAI prices were verified on OpenAI's pricing page on 28 Oct 2026. Claude and Gemini prices came from secondary sources — check their official pages before budgeting.
GPT-6 Astra
OpenAI · Flagship
- In / 1M
- $10.00
- Out / 1M
- $50.00
- Cached / 1M
- $1.00
Best for: Hardest reasoning, large refactors, stack-spanning bugs
Reserve for the hardest 5-10% of tasks. Above 272K input the whole request reprices to $20/$75.
GPT-6.1 Sol
OpenAI · Workhorse
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.100
Best for: Default for most coding work
Reported Codex default. Near-Astra on agentic coding at a fifth of the price. Cached input is only 5% of input. Above 272K input reprices to $4/$15.
GPT-6.1 Terra
OpenAI · Fast / efficient
- In / 1M
- $1.00
- Out / 1M
- $5.00
- Cached / 1M
- $0.050
Best for: Docs, writing, UI and screenshot work, fast tasks
Launched 26 Oct 2026. Strong value pick for non-hardest work; Sol/Astra remain better for the most complex coding.
GPT-6 Sol
OpenAI · Workhorse
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.200
Best for: Complex professional and coding workflows
Previous 6.x workhorse.
GPT-6 Luna
OpenAI · Cheap
- In / 1M
- $0.100
- Out / 1M
- $0.500
- Cached / 1M
- $0.010
Best for: Quick edits, subagents, file-finding, repeatable tasks
Cheap enough to be the default subagent model. Above 272K input reprices to $0.20/$0.75.
GPT-5.6 Sol
OpenAI · Previous flagship
- In / 1M
- $4.00
- Out / 1M
- $20.00
- Cached / 1M
- $0.400
Best for: Previous flagship tier
Promo price until 30 Nov 2026 (OpenAI pricing page).
GPT-5.6 Terra
OpenAI · Previous mid
- In / 1M
- $2.00
- Out / 1M
- $12.00
- Cached / 1M
- $0.200
Best for: Mid-tier work
Previous generation mid tier.
GPT-5.6 Luna
OpenAI · Previous efficient
- In / 1M
- $0.200
- Out / 1M
- $1.20
- Cached / 1M
- $0.020
Best for: Efficient tasks
Previous generation efficient tier.
GPT-5.3 Codex
OpenAI · Codex model
- In / 1M
- $1.75
- Out / 1M
- $14.00
- Cached / 1M
- $0.175
Best for: Codex-specific workflows
The only dedicated -codex model still on the API pricing page. Deprecated 1 Oct 2026; removed from the API 1 Apr 2027 — migrate to GPT-6 Sol.
GPT-6 Cyber
OpenAI · Security — gated
- In / 1M
- $20.00
- Out / 1M
- $100.00
- Cached / 1M
- $2.00
Best for: Vulnerability discovery and exploit research — vetted defenders only
Announced 5 Nov 2026; available only to approved Daybreak Red customers via API and Codex. 2x Astra's price. Do not plan work on it unless approved.
Claude Fable 5.2
Anthropic · Flagship
- In / 1M
- $8.00
- Out / 1M
- $40.00
- Cached / 1M
- $0.200
Best for: Hardest long-horizon reasoning and agentic work
Launched 9 Nov 2026. Cheaper than Fable 5.1 ($8/$40 vs $10/$50) and, on most rows of Anthropic's launch table, stronger than Opus 5.5. Try Opus 5.5 first; use Fable 5.2 only when Opus at higher effort still fails. Flat across the 1M window. Optional fast mode: $16/$80 for up to 2.5x faster output. Available until at least 9 Nov 2027.
Claude Mythos 5.2
Anthropic · Flagship — gated
- In / 1M
- $8.00
- Out / 1M
- $40.00
- Cached / 1M
- $0.200
Best for: Same work as Fable 5.2, without its cybersecurity/biology safeguards — vetted orgs only
Launched 9 Nov 2026 alongside Fable 5.2; same underlying model, same $8/$40 price and fast mode ($16/$80). Available only to orgs approved through Anthropic's Cyber and Life Sciences Verification Programs. Do not plan work on it unless approved.
Claude Fable 5.1
Anthropic · Flagship — legacy
- In / 1M
- $10.00
- Out / 1M
- $50.00
- Cached / 1M
- $0.250
Best for: Long-horizon reasoning when Opus still fails
Now a legacy model — Fable 5.2 replaces it at $8/$40. Still available until at least 1 Sep 2027 at $10/$50. Try Opus 5.5 first; use Fable only when Opus at higher effort still fails. Flat across the 1M window.
Claude Opus 5.5
Anthropic · Value flagship
- In / 1M
- $4.00
- Out / 1M
- $20.00
- Cached / 1M
- $0.200
Best for: Architecture, large refactors, long autonomous runs
Anthropic says it performs at Fable 5.1's level on most work at 40% of the price. Cache reads are 5% of input. Optional fast mode: $8/$40 for up to 2.5x faster output.
Claude Sonnet 5.5
Anthropic · Default
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.100
Best for: Default for most coding work
Best coding-per-dollar in the Claude line on Anthropic's tables. Needs fewer tokens per task than Sonnet 5.
Claude Haiku 5.5
Anthropic · Cheap
- In / 1M
- $0.100
- Out / 1M
- $0.500
- Cached / 1M
- $0.010
Best for: Subagents, classification, extraction, bulk edits
Watch the 100K cliff: prompts over 100K tokens cost 5x ($0.50/$2.50) for the whole request.
Gemini 4 Carbon
Google · Flagship
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.100
Best for: Security review, vulnerability patching, long-horizon coding — Google's strongest model
Generally available 10 Nov 2026 on the Gemini API paid tier (AI Studio, Android Studio), Gemini for business, and for Ultra subscribers in Antigravity, the Gemini app and AI Mode. Intro price $2/$10 through 30 Nov 2026, then $4/$20. Thinks longer than Argon, so thinking tokens (billed as output) cost more per task. Not on the Free tier.
Gemini 4 Argon
Google · Flagship
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.100
Best for: Deep multi-step work, autonomous find-and-patch
INTRO PRICE to 30 Nov 2026, then $4/$20. Thinking tokens bill as output, and Argon thinks heavily, so cost per task can exceed the list price.
Gemini 4 Hydrogen
Google · Fast agent
- In / 1M
- $1.50
- Out / 1M
- $7.50
- Cached / 1M
- $0.075
Best for: Fast agentic coding loops, tool calls, sub-agents — the everyday execution model
Launched 12 Nov 2026 (GA). Adapted from Gemini 4 Carbon. $1.50/$7.50 flat across the 1M window — the same price 3.8 Flash rises to on 1 Jan 2027. Four thinking levels (low/medium/high default/xhigh); thinking tokens bill as output. Beats Argon on the Artificial Analysis Intelligence Index at default high (51 vs 50, 54 at xhigh) and finishes tasks about 2.5x faster than 3.8 Flash.
Gemini 3.1 Pro Preview
Google · Pro
- In / 1M
- $2.00
- Out / 1M
- $12.00
- Cached / 1M
- $0.200
Best for: Correctness-critical reasoning, large context
No free tier. Above 200K tokens: $4/$18, cached $0.40.
Gemini 3.8 Flash
Google · Workhorse
- In / 1M
- $0.750
- Out / 1M
- $3.75
- Cached / 1M
- $0.075
Best for: High-volume coding and agents, well-specified features
INTRO PRICE to 31 Dec 2026, then $1.50/$7.50. Review its output; one independent test scored it well below Pro on correctness.
Gemini 3.5 Flash-Lite
Google · Lite
- In / 1M
- $0.300
- Out / 1M
- $2.50
- Cached / 1M
- $0.030
Best for: File-finding, classification, extraction
Specialist subagent tier.
Gemini 3.1 Flash-Lite
Google · Lite
- In / 1M
- $0.250
- Out / 1M
- $1.50
- Cached / 1M
- $0.025
Best for: File-finding, research, extraction
Freebuff itself uses this tier for file-finding. Shuts down 7 May 2027; Google names 3.5 Flash-Lite as the replacement.
Gemini 2.5 Flash-Lite
Google · Cheapest
- In / 1M
- $0.100
- Out / 1M
- $0.400
- Cached / 1M
- $0.010
Best for: Cheapest classification and extraction
Lowest-cost Gemini tier.
DeepSeek V4 Pro
DeepSeek · Budget pro
- In / 1M
- $1.32
- Out / 1M
- $3.96
- Cached / 1M
- —
Best for: Planning and multi-file reasoning on a budget
Peak price; off-peak $0.66/$1.98.
DeepSeek V4.1 Flash
DeepSeek · Budget fast
- In / 1M
- $0.300
- Out / 1M
- $1.20
- Cached / 1M
- $0.006
Best for: High-volume work where retries are cheap
Peak price; off-peak $0.15/$0.60. Well below Sonnet/Opus on terminal-task benchmarks, so use it where retries are cheap.
GLM-5.3
Zhipu · Open-weight all-rounder
- In / 1M
- $1.40
- Out / 1M
- $4.40
- Cached / 1M
- $0.260
Best for: Strongest open-weight all-rounder in this set
Vendor list price; hoster prices differ.
Kimi K2.7 Code
Moonshot · Budget coder
- In / 1M
- $0.950
- Out / 1M
- $4.00
- Cached / 1M
- $0.190
Best for: Budget coding
Vendor list price; hoster prices differ.
Kimi K3.1 Pro
Moonshot · Open-weight flagship
- In / 1M
- $2.00
- Out / 1M
- $10.00
- Cached / 1M
- $0.200
Best for: Strong coding at Sonnet prices
Released 23 Oct 2026; open weights on Hugging Face, 1M context. Thinking is always on, so output-heavy tasks cost more than the list price suggests. Vendor list price; hoster prices differ.
MiniMax M3
MiniMax · Budget
- In / 1M
- $0.300
- Out / 1M
- $1.20
- Cached / 1M
- —
Best for: Budget high-volume work
Vendor list price; hoster prices differ.
Mistral Large 4
Mistral · Open-weight budget
- In / 1M
- $0.700
- Out / 1M
- $2.10
- Cached / 1M
- $0.070
Best for: Budget high-volume work
1T-parameter MoE, 1M context; weights released 29 Oct 2026 under a modified MIT licence. Cheap per token but scores well below the frontier models on coding benchmarks — judge cost per finished task, not per token. Vendor list price; hoster prices differ.
Qwen3.8 Max
Alibaba · Budget pro
- In / 1M
- $2.00
- Out / 1M
- $6.00
- Cached / 1M
- —
Best for: Budget pro-tier work
Vendor list price; hoster prices differ.
Tencent Hy4
Tencent · Budget pro
- In / 1M
- $0.834
- Out / 1M
- $2.50
- Cached / 1M
- $0.042
Best for: Budget pro-tier work with vision and computer use
Full release 4 Nov 2026; 770B MoE, 1M context, vision + computer use. 50% off on Tencent Cloud TokenHub through 31 Dec 2026. Full-release weights not yet published (preview weights Apache 2.0). Vendor list price; hoster prices differ.