AI Model Pricing Calculator
Compare cost per task and monthly spend across every tracked AI model, with cache hit rate, Batch API rates and agent workload presets.
Workload type
Multiplies the token counts you enter. The 4× and 15× presets are Anthropic’s reported averages for agents and multi-agent systems compared with chat (Anthropic Engineering, June 2025). They are assumptions, not a measurement of your workload. Keep 1× if your numbers already come from agent runs.
100,000 tokens/day
50,000 tokens/day
Largest single prompt. Switches to long-context rates at published thresholds
Input token split
Split your input tokens into cache reads, cache writes and uncached input. Coding agents resend the same long context, so cache reads and writes can be most of the bill.
Billed at the model’s cached-input (cache read) price. Models without one bill reads at the full input rate.
Billed at the model’s cache-write price (the shortest listed cache lifetime, e.g. Anthropic 5-minute, OpenAI 30-minute). Models without one bill writes as normal input.
Uncached input100%
The rest of your input, billed at the normal input rate. Reads + writes cannot exceed 100%.
Share of all tokens (per day, 150,000 tokens)
- Uncached input100,000(67%)
- Cache writes0(0.0%)
- Cache reads0(0.0%)
- Output50,000(33%)
15 of the models shown have a batch rate recorded in our price data (the 50% discount listed on each provider’s pricing page); toggle them per row in the table. The toggle is disabled for the rest: no record does not mean the provider has no batch API. Batch is asynchronous, so it does not suit interactive chat. Turning Batch on for all models switches the background window off.
Example scenarios
| Model↑↓ | Provider | Input $/1M↑↓ | Output $/1M↑↓ | Context | Batch | Monthly Cost↑ |
|---|---|---|---|---|---|---|
GLM-4.7-FlashCheapest | Z.AI | $0.00 | $0.00 | 200,000 | No batch rate | $0.00 |
Amazon Nova Micro | Amazon | $0.035 cached $0.00875 | $0.14 | 128,000 | No batch rate | $0.3150 |
Ministral 3 3B | Mistral | $0.1 | $0.1 | 256,000 | No batch rate | $0.4500 |
Amazon Nova Lite | Amazon | $0.06 cached $0.015 | $0.24 | 300,000 | No batch rate | $0.5400 |
Tencent Hy4 Flash List price Limited-time 50% off: $0.035 input / $0.0015 cached / $0.1405 output | Tencent | $0.07 cached $0.003 | $0.281 | 1,000,000 | No batch rate | $0.6315 |
Ministral 3 8B | Mistral | $0.15 | $0.15 | 256,000 | No batch rate | $0.6750 |
Qwen Flash | Alibaba | $0.05 cached $0.01 write $0.063 | $0.4 | 1,000,000 | No batch rate | $0.7500 |
Xiaomi MiMo-V2.6-Flash | Xiaomi MiMo | $0.14 cached $0.0028 | $0.28 | 1,000,000 | $0.8400 | |
Gemini 2.5 Flash-Lite | $0.1 cached $0.01 | $0.4 | 1,000,000 | No batch rate | $0.9000 | |
Ministral 3 14B | Mistral | $0.2 | $0.2 | 256,000 | No batch rate | $0.9000 |
Qwen3.7 Flash Long-context rates applied | Alibaba | $0.1 cached $0.02 write $0.125 | $0.4 | 1,000,000 | No batch rate | $0.9000 |
Claude Haiku 5.5 | Anthropic | $0.1 cached $0.01 write $0.125 | $0.5 | 1,000,000 | $1.05 | |
GPT-6 Luna | OpenAI | $0.1 cached $0.01 write $0.125 | $0.5 | 1,050,000 | $1.05 | |
Muse Ember 1.0 | Meta | $0.1 cached $0.004 | $0.5 | 1,048,576 | No batch rate | $1.05 |
GLM-5.3 Flash | Z.AI | $0.15 cached $0.03 | $0.5 | 1,000,000 | No batch rate | $1.20 |
Jamba Mini 2 | AI21 Labs | $0.2 | $0.4 | 256,000 | No batch rate | $1.20 |
MiniMax M3.1 Flash | MiniMax | $0.15 cached $0.015 | $0.6 | 1,000,000 | No batch rate | $1.35 |
Mistral Small 4 | Mistral | $0.15 cached $0.015 | $0.6 | 256,000 | No batch rate | $1.35 |
Codestral 25.08 | Mistral | $0.3 | $0.9 | 128,000 | No batch rate | $2.25 |
GPT-5.6 Luna | OpenAI | $0.2 cached $0.02 write $0.25 | $1.20 | 1,050,000 | No batch rate | $2.40 |
Xiaomi MiMo-V2.6-Pro | Xiaomi MiMo | $0.435 cached $0.0036 | $0.87 | 1,000,000 | $2.61 | |
DeepSeek V4.1 Flash Peak Off-peak: $0.15 input / $0.003 cached / $0.6 output | DeepSeek | $0.3 cached $0.006 | $1.20 | 1,000,000 | No batch rate | $2.70 |
MiniMax M3 | MiniMax | $0.3 cached $0.06 | $1.20 | 1,000,000 | No batch rate | $2.70 |
GLM-5.3 FlashX | Z.AI | $0.37 cached $0.075 | $1.25 | 1,000,000 | No batch rate | $2.99 |
Gemini 3.1 Flash-Lite | $0.25 cached $0.025 | $1.50 | 1,048,576 | No batch rate | $3.00 | |
Qwen Plus | Alibaba | $0.4 cached $0.08 write $0.5 | $1.20 | 1,000,000 | No batch rate | $3.00 |
Amazon Nova 2 Lite | Amazon | $0.3 cached $0.075 | $2.50 | 1,000,000 | No batch rate | $4.65 |
Gemini 3.5 Flash-Lite | $0.3 cached $0.03 | $2.50 | 1,048,576 | No batch rate | $4.65 | |
Mistral Large 4 | Mistral | $0.7 cached $0.07 | $2.10 | 1,000,000 | No batch rate | $5.25 |
Grok Build 0.1 | xAI | $1.00 cached $0.2 | $2.00 | 256,000 | No batch rate | $6.00 |
Tencent Hy4 List price Limited-time 50% off: $0.417 input / $0.021 cached / $1.25 output | Tencent | $0.834 cached $0.042 | $2.50 | 1,000,000 | No batch rate | $6.25 |
Amazon Nova Pro | Amazon | $0.8 cached $0.2 | $3.20 | 300,000 | No batch rate | $7.20 |
Grok 4.20 Multi-Agent | xAI | $1.25 cached $0.2 | $2.50 | 1,000,000 | No batch rate | $7.50 |
Grok 4.20 Non-Reasoning | xAI | $1.25 cached $0.2 | $2.50 | 1,000,000 | No batch rate | $7.50 |
Grok 4.20 Reasoning | xAI | $1.25 cached $0.2 | $2.50 | 1,000,000 | No batch rate | $7.50 |
Grok 4.3 | xAI | $1.25 cached $0.2 | $2.50 | 1,000,000 | No batch rate | $7.50 |
GLM-5 | Z.AI | $1.00 cached $0.2 | $3.20 | 200,000 | No batch rate | $7.80 |
Gemini 3.6 Flash Introductory through 2026-12-31 Standard from 2027-01-01: $1.50 input / $0.15 cached / $7.50 output | $0.75 cached $0.075 | $3.75 | 1,048,576 | No batch rate | $7.88 | |
Gemini 3.8 Flash Introductory through 2026-12-31 Standard from 2027-01-01: $1.50 input / $0.15 cached / $7.50 output | $0.75 cached $0.075 | $3.75 | 1,048,576 | $7.88 | ||
GPT-5.4 Mini | OpenAI | $0.75 cached $0.075 | $4.50 | 400,000 | No batch rate | $9.00 |
GLM-5 Turbo | Z.AI | $1.20 cached $0.24 | $4.00 | 200,000 | No batch rate | $9.60 |
GLM-5V Turbo | Z.AI | $1.20 cached $0.24 | $4.00 | 200,000 | No batch rate | $9.60 |
DeepSeek V4 Pro Peak Off-peak: $0.66 input / $0.022 cached / $1.98 output | DeepSeek | $1.32 cached $0.044 | $3.96 | 1,000,000 | No batch rate | $9.90 |
Muse Spark 1.3 Standard mode (no training on your data) Contributor mode: $0.1 input / $0.002 cached / $0.2 output | Meta | $1.25 cached $0.15 | $4.25 | 1,048,576 | No batch rate | $10.13 |
Claude Haiku 4.5 | Anthropic | $1.00 cached $0.1 write $1.25 | $5.00 | 200,000 | No batch rate | $10.50 |
GPT-6.1 Terra | OpenAI | $1.00 cached $0.05 write $1.25 | $5.00 | 1,050,000 | No batch rate | $10.50 |
GLM-5.1 | Z.AI | $1.40 cached $0.26 | $4.40 | 200,000 | No batch rate | $10.80 |
GLM-5.2 | Z.AI | $1.40 cached $0.26 | $4.40 | 1,000,000 | No batch rate | $10.80 |
GLM-5.3 | Z.AI | $1.40 cached $0.26 | $4.40 | 1,000,000 | No batch rate | $10.80 |
Qwen4 Max | Alibaba | $1.50 cached $0.075 write $1.88 | $4.50 | 1,000,000 | No batch rate | $11.25 |
Grok 4.5 | xAI | $2.00 cached $0.3 | $6.00 | 500,000 | No batch rate | $15.00 |
Grok 4.6 | xAI | $2.00 cached $0.5 | $6.00 | 500,000 | No batch rate | $15.00 |
Grok 4.7 | xAI | $2.00 cached $0.5 | $6.00 | 500,000 | No batch rate | $15.00 |
Gemini 4 Hydrogen | $1.50 cached $0.075 | $7.50 | 1,048,576 | No batch rate | $15.75 | |
Jamba Large 1.7 | AI21 Labs | $2.00 | $8.00 | 256,000 | No batch rate | $18.00 |
Claude Sonnet 5 | Anthropic | $2.00 cached $0.2 write $2.50 | $10.00 | 1,000,000 | No batch rate | $21.00 |
Claude Sonnet 5.5 | Anthropic | $2.00 cached $0.1 write $2.50 | $10.00 | 1,000,000 | $21.00 | |
Gemini 4 Argon Introductory through 2026-11-30 Standard from 2026-12-01: $4.00 input / $0.2 cached / $20.00 output | $2.00 cached $0.1 | $10.00 | 1,048,576 | No batch rate | $21.00 | |
Gemini 4 Carbon Introductory through 2026-11-30 Standard from 2026-12-01: $4.00 input / $0.2 cached / $20.00 output | $2.00 cached $0.1 | $10.00 | 1,048,576 | No batch rate | $21.00 | |
GPT-6 Sol | OpenAI | $2.00 cached $0.2 write $2.50 | $10.00 | 1,050,000 | $21.00 | |
GPT-6.1 Sol | OpenAI | $2.00 cached $0.1 write $2.50 | $10.00 | 1,050,000 | $21.00 | |
GPT-6.2 Sol | OpenAI | $2.00 cached $0.1 write $2.50 | $10.00 | 1,050,000 | $21.00 | |
Kimi K3.1 Pro | Moonshot AI | $2.00 cached $0.2 write $2.00 | $10.00 | 1,048,576 | No batch rate | $21.00 |
Gemini 3.1 Pro Preview | $2.00 cached $0.2 | $12.00 | 1,048,576 | No batch rate | $24.00 | |
GPT-5.6 Terra | OpenAI | $2.00 cached $0.2 write $2.50 | $12.00 | 1,050,000 | No batch rate | $24.00 |
Xiaomi MiMo-V2.6-Pro-UltraSpeed | Xiaomi MiMo | $4.35 cached $0.036 | $8.70 | 1,000,000 | Not offered | $26.10 |
Amazon Nova Premier | Amazon | $2.50 cached $0.625 | $12.50 | 1,000,000 | $26.25 | |
GPT-5.4 | OpenAI | $2.50 cached $0.25 | $15.00 | 1,050,000 | No batch rate | $30.00 |
Claude Sonnet 4.6 | Anthropic | $3.00 cached $0.3 write $3.75 | $15.00 | 1,000,000 | No batch rate | $31.50 |
Gemini 4 Neon | $3.00 cached $0.15 | $15.00 | 1,048,576 | $31.50 | ||
Kimi K3 | Moonshot AI | $3.00 cached $0.3 write $3.00 | $15.00 | 1,048,576 | No batch rate | $31.50 |
Claude Opus 5.5 | Anthropic | $4.00 cached $0.2 write $5.00 | $20.00 | 1,000,000 | $42.00 | |
GPT-5.6 Sol Promotional until 2026-11-30 | OpenAI | $4.00 cached $0.4 write $5.00 | $20.00 | 1,050,000 | No batch rate | $42.00 |
Muse Wonder 1.0 | Meta | $4.00 cached $0.2 | $20.00 | 1,048,576 | No batch rate | $42.00 |
Claude Opus 4.6 | Anthropic | $5.00 cached $0.5 write $6.25 | $25.00 | 1,000,000 | No batch rate | $52.50 |
Claude Opus 4.8 | Anthropic | $5.00 cached $0.5 write $6.25 | $25.00 | 1,000,000 | No batch rate | $52.50 |
Claude Opus 5 | Anthropic | $5.00 cached $0.5 write $6.25 | $25.00 | 1,000,000 | No batch rate | $52.50 |
GPT-5.5 | OpenAI | $5.00 cached $0.5 | $30.00 | 1,050,000 | No batch rate | $60.00 |
Claude Fable 5.2 | Anthropic | $8.00 cached $0.2 write $10.00 | $40.00 | 1,000,000 | $84.00 | |
GPT-6.2 Astra | OpenAI | $8.00 cached $0.4 write $10.00 | $40.00 | 1,050,000 | $84.00 | |
Claude Fable 5 | Anthropic | $10.00 cached $1.00 write $12.50 | $50.00 | 1,000,000 | No batch rate | $105.00 |
Claude Fable 5.1 | Anthropic | $10.00 cached $0.25 write $12.50 | $50.00 | 1,000,000 | No batch rate | $105.00 |
GPT-6 Astra | OpenAI | $10.00 cached $1.00 write $12.50 | $50.00 | 1,050,000 | $105.00 | |
GPT-5.4 Pro | OpenAI | $30.00 | $180.00 | 1,050,000 | No batch rate | $360.00 |
GPT-5.5 Pro | OpenAI | $30.00 | $180.00 | 1,050,000 | No batch rate | $360.00 |
Cost bars:Uncached inputCache writesCache readsOutput
Cache writes use each model’s published cache-write price from our price data (long-context write price above the threshold). Where no cache-write price is published, writes are billed at the normal input rate and the row says so. Longer cache lifetimes (Anthropic 1-hour, OpenAI 12-hour) cost more and are not modelled. Storage fees, tools and taxes are extra.
Next step
How to Use This Tool
- Pick a view: Daily volume (tokens per day) or Cost per task (input/output tokens per task plus tasks per day).
- Choose a workload type. Chat is 1×; the Single coding agent (4×) and Multi-agent (15×) presets scale your token counts using Anthropic's reported averages. You can type any multiplier, and should keep 1× if your numbers already come from agent runs.
- Split your input into cache reads (0–95%), cache writes and uncached input, or click "Coding agent (cache-heavy)". Reads use each model's cached-input price and writes its cache-write price; models without one bill those tokens as normal input and say so. Open "Where the money goes" on any row for the per-bucket cost.
- Turn on Batch API rates for models where our price data records a batch rate, or the beta OpenAI background completion window (2-hour −30%, 8-hour −40%) for eligible GPT-6.x models. The two never apply to the same model.
- Sort by cost per task, monthly cost, or price, filter providers, and use "Copy shareable link" to share the exact scenario.
Understanding AI API Pricing in 2026
Only active USD models with confirmed token pricing are compared. Estimates cover uncached input, cache writes, cache reads and output tokens; cache storage, longer cache lifetimes, tools, taxes and service-tier premiums are additional. A month is 30 days.
Agent workloads cost more than their per-token price suggests because they send far more tokens per task. Anthropic reports that in its data agents use about 4× the tokens of a chat interaction and multi-agent systems about 15× (Anthropic Engineering, "How we built our multi-agent research system", June 2025). The calculator's workload presets use those figures as editable assumptions.
AI API pricing is based on tokens processed, with separate rates for input tokens (your prompts) and output tokens (the model's responses). Prices are typically quoted per million tokens. Current examples include GPT-6 Luna at $0.10/$0.50 and Claude Sonnet 5.5 at $2/$10 per million input/output tokens.
The AI pricing landscape has become increasingly competitive in 2026. DeepSeek V4.1 Flash is especially aggressive for cache-heavy agent workloads, while premium models like GPT-6 Astra and Claude Opus 5.5 offer stronger reasoning at higher price points. The right choice depends on task complexity, cache-hit rate, and output length.
Several factors beyond per-token pricing affect your total cost: Batch API discounts, prompt caching or provider-side context caching, and context window usage. The cache hit rate uses each model's own cached-input price. Batch rates are applied only where our price data records one (currently GPT-6 Sol/Astra/Luna, GPT-6.1 Sol, Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5, Gemini 3.8/3.7 Flash, and MiMo V2.6 Pro/Flash). Anthropic documents that its batch discount stacks with cache reads; for other providers the calculator keeps cached input at the listed rate.
For cost optimization, consider these strategies: Use lower-cost models such as DeepSeek V4.1 Flash or GPT-6 Luna for simple tasks. Use prompt caching for system prompts that don't change. Batch non-urgent requests for 50% savings. Monitor token usage with observability tools like Helicone or Langfuse.
Last updated: 2026-11-20
FAQ
How is the monthly cost calculated?
Monthly cost = (uncached input × input price + cache writes × cache-write price + cache reads × cached-input price + output × output price) × 30 days, using the input split you set. Models without a published cache-write or cache-read price bill those tokens at the normal input rate. The workload multiplier scales the token counts; Batch rates, or the optional OpenAI background window discount, replace standard rates where they apply. Long-context rates apply when a single request exceeds the provider's published threshold. Prices come from each provider's official pricing page.
How often are prices updated?
We update pricing data regularly. The last update date is shown on the page. AI model prices change frequently, so always verify with the provider's official pricing page.
Which model is cheapest?
It depends on your use case. For cache-heavy agent traffic, DeepSeek V4 Flash can be extremely cheap. For simple tasks, GPT-4o-mini and Claude Haiku offer strong value. For complex reasoning, larger models like GPT-5, Claude Sonnet, or DeepSeek V4 Pro may be more cost-effective despite higher per-token costs.
What is Batch API pricing, and when does the calculator apply it?
Batch APIs process requests asynchronously (typically within hours) at a discount, usually 50% of the standard rate at OpenAI, Anthropic, Google and Xiaomi MiMo. The calculator applies a batch rate only to models whose batch price is recorded in our pricing data; for other models the Batch toggle is disabled. That does not mean the provider has no batch API, so check its pricing page. Batch does not suit interactive chat or agents that wait on each response.
How do the Chat, Single coding agent and Multi-agent presets work?
They multiply the token counts you enter: 1× for chat, 4× for a single agent and 15× for a multi-agent system. The 4× and 15× figures come from Anthropic's engineering post on its multi-agent research system, which reports that agents use about 4× and multi-agent systems about 15× the tokens of chat interactions in Anthropic's data. Treat them as starting assumptions and type your own multiplier, or keep 1× if you measured your agent's tokens directly.
How is cost per task calculated?
Cost per task = (uncached input × input price + cache writes × cache-write price + cache reads × cached-input price + output × output price), with every token count scaled by the multiplier and input split by your cache read/write percentages. Monthly cost = cost per task × tasks per day × 30. You can sort models by either column.
Why model cache writes separately for coding agents?
Coding agents resend a long, mostly stable context on every turn. Developers comparing agent bills in late 2026 reported cache reads and writes at about 85% of tokens and output at about 13%. Cache reads are cheap (often 5–10% of input), but cache writes usually cost more than normal input (1.25× on Anthropic's and OpenAI's listed short-lived caches), so a workload that churns its cache can cost far more than a cache-hit rate alone suggests. The Coding agent (cache-heavy) scenario starts from that split; adjust it to your own logs.
What is the OpenAI background completion window?
For GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna, OpenAI prices background Responses API requests 30% below Standard with a 2-hour completion window and 40% below with an 8-hour window. It is in public beta, so the calculator keeps it off by default, applies it only to those models, and never combines it with Batch. Standard requests cannot reuse prompt cache created by background requests.
How does prompt caching reduce costs?
Prompt caching stores repeated prompt prefixes on the provider side. DeepSeek V4.1 Flash cache-hit input is $0.003/M off-peak and $0.006/M at peak, versus $0.15/M and $0.3/M for cache misses. This helps agents that repeatedly send repository rules, system prompts, and stable context.
Which model offers the best value in 2026?
It depends on your use case. DeepSeek V4.1 Flash is strong for cache-heavy agent workloads and high-volume text tasks. Smaller models are better for simple extraction, while GPT-5, Claude Sonnet, or DeepSeek V4 Pro can be worth the extra cost for harder reasoning and coding.
Related Blog Posts
Official K3 pricing, OpenAI-compatible setup, automatic caching, multimodal input, and output limits.
DeepSeek V4.1 Flash and V4 Pro API Pricing 2026Current V4 Flash and Pro pricing, cache-hit math, peak-hour status, and agent cost examples.
Gemini 3.8 Flash and Gemini 4 Argon API PricingGoogle's current Gemini prices, caching, Batch/Flex, and 1M-context model choices.
GPT-5.6 API Pricing: Sol, Terra, Luna, Caching, and Long ContextOfficial GPT-5.6 standard and long-context pricing with cache-write and cache-read costs.
AI API Pricing Comparison: October 2026Current side-by-side pricing comparison of the major AI API providers.
How to Reduce AI API Costs: 10 Proven StrategiesPractical tips to cut your AI API spend by 50-90%.