Model prices

← Back to calculator

Every rate used by the inference cost calculator, in USD per 1 million tokens on the standard API tier. Verified November 10, 2026 against the provider pricing pages linked below.

ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
GPT-6 Astraflagship$10.00$1.00$50.001.05MOpenAI flagship for the hardest agents, coding and researchPrompts over 272K tokens are billed at $20/$75.
GPT-6.1 Solworkhorse$2.00$0.10$10.001.05MComplex coding and agentic workflows at a mid-tier pricePrompts over 272K tokens are billed at $4/$15.
GPT-6.1 Terraworkhorse$1.00$0.050$5.001.05MEveryday chat, RAG and tool use at half the Sol pricePrompts over 272K tokens are billed at $2/$7.50.
GPT-5.4 miniworkhorse$0.75$0.075$4.50400KHigh-volume chat, RAG, extraction, support bots
GPT-6 Lunabudget$0.10$0.010$0.501.05MCheapest OpenAI model for focused, high-volume tasksPrompts over 272K tokens are billed at $0.20/$0.75.
ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
Claude Fable 5.2flagship$8.00$0.20$40.001MDemanding reasoning and long-horizon agentic workCache reads cost 2.5% of the input price.
Claude Opus 5.5flagship$4.00$0.20$20.001MLong-running agentic coding and knowledge workCache reads cost 5% of the input price.
Claude Sonnet 5.5workhorse$2.00$0.10$10.001MBest speed/intelligence balance; daily-driver agentsCache reads cost 5% of the input price.
Claude Haiku 5.5budget$0.10$0.010$0.501MClassification, extraction and routing at high volumePrompts over 100K tokens are billed at $0.50/$2.50.
ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
Gemini 4 Carbonflagship$2.00$0.10$10.001MGoogle's most capable model, for the hardest coding and researchPrice through Nov 30, 2026. From Dec 1 it costs $4/$20.
Gemini 4 Argonflagship$2.00$0.10$10.001MMost software engineering and agent work, faster than CarbonPrice through Nov 30, 2026. From Dec 1 it costs $4/$20.
Gemini 4 Hydrogenworkhorse$1.50$0.075$7.501MEveryday coding and agents, the upgrade from 3.8 FlashReleased Nov 12, 2026. Same price across the 1M context window.
Gemini 3.8 Flashworkhorse$0.75$0.075$3.751MAgents and coding at Flash pricesPrice through Dec 31, 2026. From Jan 1, 2027 it costs $1.50/$7.50.
Gemini 3.5 Flash-Litebudget$0.30$0.030$2.501MBulk simple tasks with a newer model
Gemini 3.1 Flash-Litebudget$0.25$0.025$1.501MBulk simple tasks, translation, extraction
ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
Grok 4.7workhorse$2.00$0.50$6.00500KLatest Grok for chat and tool usePrompts of 200K tokens or more are billed at $4/$12.
Grok 4.3workhorse$1.25$0.20$2.501MAggressively priced frontier-class chat and tool usePrompts of 200K tokens or more are billed at $2.50/$5.
ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
Mistral Large 4openworkhorse$0.70$0.070$2.101MOpen-weight European flagship, strong at coding
Mistral Small 4openbudget$0.15$0.015$0.60256KCheap general tasks; open-weight
Ministral 3 8Bopenbudget$0.15$0.015$0.15256KEdge and embedded deployments

Aggregator. Listed price is the default routing; actual price varies by underlying provider.

ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
Kimi K3.1 Proopenflagship$2.00$0.20$10.001MMoonshot's most capable open-weight model for agents
Kimi K2.6openworkhorse$0.65$0.15$3.41262KStrong open-weight agentic and writing model
DeepSeek V4 Proopenworkhorse$0.955$0.080$1.9111MFrontier-class reasoning and coding at budget rates
DeepSeek V4 Flashopenbudget$0.091$0.018$0.1821MThe open-weight price leader for chat and agents
Qwen3.8 Flashbudget$0.15$0.016$0.471MCheap long-context chat and extraction

Cloudflare edge inference. Billed in neurons ($0.011 per 1k); per-token equivalents shown. 10k neurons/day free.

ModelTierInput / 1MCached / 1MOutput / 1MContextBest for
GPT-OSS 120Bopenworkhorse$0.35—$0.75128KOpenAI's open-weight model at the edge, no cold starts
Kimi K2.6openworkhorse$0.95$0.16$4.00262KOpen-weight agentic model with cache pricing on the edgeNeeds Workers Paid or AI Gateway credits; the free daily neurons don't cover it.
Llama 3.3 70Bopenworkhorse$0.293—$2.253131KCapable open-weight default on Cloudflare's edge
Llama 3.1 8B (fast)openbudget$0.045—$0.384131KVery cheap edge inference for simple tasks
Llama 3.2 1Bopenbudget$0.027—$0.201128KThe cheapest credible model for routing/tagging

Free books, courses, and software

Get my programming books, course editions, and complete software.

Get the download library →