AI model cost calculator
Estimate what your chatbot, coding agent or RAG app will cost on GPT, Claude, Gemini, Grok, Mistral, DeepSeek, Meta, MiniMax and Xiaomi models. Prices from official pages, last updated 2026-11-30.
New: cheapest LLM APIs by price per million tokens · Cheapest LLM APIs in 2026 · model cost comparisons.
Models
Get the weekly AI price-drop digest
One short email a week when model prices change. No spam.
Unsubscribe anytime.
Cost per task
For agents: one task = several model calls (steps), some retried. Uses the models picked above.
| Model | Provider | Per task | Range (est.) | Per day | Per month |
|---|
Sorted cheapest first. Cost per task = (uncached input × input price + cached input × cached price + output × output price) ÷ 1M × steps × (1 + retry rate), with output tokens × the effort multiplier. Effort multipliers are TokenMeters estimates, not vendor figures; override them with your own measured ratio. Excludes cache-write fees, tool fees and long-context surcharges.
| Model | Provider | Per request | Per day | Per month | In / Out per 1M | Cached per 1M |
|---|
Sorted by cost, cheapest first. Excludes batch discounts, long-context surcharges, cache-write fees, tool fees and taxes.
AI API price table (per 1M tokens)
| Model | Provider | Input | Output | Cached | Context | Source |
|---|---|---|---|---|---|---|
| GPT-6.2 Astra | OpenAI | $8 | $40 | $0.4 | — | source · 2026-11-30 |
| GPT-6.2 Sol | OpenAI | $2 | $10 | $0.1 | — | source · 2026-11-30 |
| GPT-6 Astra | OpenAI | $10 | $50 | $1 | — | source · 2026-11-30 |
| GPT-6.1 Sol | OpenAI | $2 | $10 | $0.1 | — | source · 2026-11-30 |
| GPT-6.1 Terra | OpenAI | $1 | $5 | $0.05 | — | source · 2026-11-30 |
| GPT-6 Sol | OpenAI | $2 | $10 | $0.2 | — | source · 2026-11-30 |
| GPT-6 Luna | OpenAI | $0.1 | $0.5 | $0.01 | — | source · 2026-11-30 |
| GPT-5.6 Sol | OpenAI | $4 | $20 | $0.4 | — | source · 2026-11-30 |
| GPT-5.6 Terra | OpenAI | $2 | $12 | $0.2 | — | source · 2026-11-30 |
| GPT-5.6 Luna | OpenAI | $0.2 | $1.2 | $0.02 | — | source · 2026-11-30 |
| GPT-5.5 | OpenAI | $5 | $30 | $0.5 | — | source · 2026-11-30 |
| GPT-5.4 | OpenAI | $2.5 | $15 | $0.25 | — | source · 2026-11-30 |
| GPT-5.4 mini | OpenAI | $0.75 | $4.5 | $0.075 | — | source · 2026-11-30 |
| GPT-5.4 nano | OpenAI | $0.2 | $1.25 | $0.02 | — | source · 2026-11-30 |
| GPT-5 nano | OpenAI | $0.05 | $0.4 | $0.005 | — | source · 2026-11-30 |
| Claude Fable 5.2 | Anthropic | $8 | $40 | $0.2 | 1M | source · 2026-11-30 |
| Claude Fable 5.1 | Anthropic | $10 | $50 | $0.25 | 1M | source · 2026-11-30 |
| Claude Fable 5 | Anthropic | $10 | $50 | $1 | 1M | source · 2026-11-30 |
| Claude Opus 5.5 | Anthropic | $4 | $20 | $0.2 | 1M | source · 2026-11-30 |
| Claude Opus 5 | Anthropic | $5 | $25 | $0.5 | 1M | source · 2026-11-30 |
| Claude Sonnet 5.5 | Anthropic | $2 | $10 | $0.1 | 1M | source · 2026-11-30 |
| Claude Sonnet 5 | Anthropic | $2 | $10 | $0.2 | 1M | source · 2026-11-30 |
| Claude Haiku 5.5 | Anthropic | $0.1 | $0.5 | $0.01 | — | source · 2026-11-30 |
| Claude Haiku 4.5 | Anthropic | $1 | $5 | $0.1 | — | source · 2026-11-30 |
| Gemini 4 Carbon | $2 | $10 | $0.1 | 1M | source · 2026-11-30 | |
| Gemini 4 Argon | $2 | $10 | $0.1 | — | source · 2026-11-30 | |
| Gemini 4 Neon | $3 | $15 | $0.15 | 1M | source · 2026-11-30 | |
| Gemini 4 Hydrogen | $1.5 | $7.5 | $0.075 | 1M | source · 2026-11-30 | |
| Gemini 3.8 Flash | $0.75 | $3.75 | $0.075 | — | source · 2026-11-30 | |
| Gemini 3.6 Flash | $0.75 | $3.75 | $0.075 | — | source · 2026-11-30 | |
| Gemini 3.1 Pro Preview | $2 | $12 | $0.2 | — | source · 2026-11-30 | |
| Gemini 3.5 Flash-Lite | $0.3 | $2.5 | $0.03 | — | source · 2026-11-30 | |
| Gemini 3.1 Flash-Lite | $0.25 | $1.5 | $0.025 | — | source · 2026-11-30 | |
| Gemini 2.5 Pro | $1.25 | $10 | $0.125 | — | source · 2026-11-30 | |
| Gemini 2.5 Flash | $0.3 | $2.5 | $0.03 | — | source · 2026-11-30 | |
| Gemini 2.5 Flash-Lite | $0.1 | $0.4 | $0.01 | — | source · 2026-11-30 | |
| Grok 4.7 | xAI | $2 | $6 | $0.5 | 500K | source · 2026-11-30 |
| Grok 4.6 | xAI | $2 | $6 | $0.5 | 500K | source · 2026-11-30 |
| Grok 4.5 | xAI | $2 | $6 | $0.3 | 500K | source · 2026-11-30 |
| Grok 4.3 | xAI | $1.25 | $2.5 | $0.2 | 1M | source · 2026-11-30 |
| Grok Build 0.1 | xAI | $1 | $2 | $0.2 | 256K | source · 2026-11-30 |
| Mistral Large 4 | Mistral | $0.7 | $2.1 | $0.07 | 1M | source · 2026-11-30 |
| Mistral Medium 3.5 | Mistral | $1.5 | $7.5 | $0.15 | — | source · 2026-11-30 |
| Mistral Small 4 | Mistral | $0.15 | $0.6 | $0.015 | — | source · 2026-11-30 |
| Mistral Large 3 | Mistral | $0.5 | $1.5 | $0.05 | — | source · 2026-11-30 |
| Ministral 3 14B | Mistral | $0.2 | $0.2 | $0.02 | — | source · 2026-11-30 |
| Ministral 3 8B | Mistral | $0.15 | $0.15 | $0.015 | — | source · 2026-11-30 |
| Ministral 3 3B | Mistral | $0.1 | $0.1 | $0.01 | — | source · 2026-11-30 |
| Codestral | Mistral | $0.3 | $0.9 | $0.03 | — | source · 2026-11-30 |
| DeepSeek V4.1 Flash | DeepSeek | $0.3 | $1.2 | $0.006 | 1M | source · 2026-11-30 |
| DeepSeek V4 Pro | DeepSeek | $1.32 | $3.96 | $0.044 | 1M | source · 2026-11-30 |
| Muse Wonder 1.0 | Meta | $4 | $20 | $0.2 | — | source · 2026-11-30 |
| Muse Spark 1.3 | Meta | $1.25 | $4.25 | $0.15 | — | source · 2026-11-30 |
| Muse Ember 1.0 | Meta | $0.1 | $0.5 | $0.004 | — | source · 2026-11-30 |
| MiniMax M3.1 Flash | MiniMax | $0.15 | $0.6 | $0.015 | — | source · 2026-11-30 |
| MiniMax M3 | MiniMax | $0.3 | $1.2 | $0.06 | — | source · 2026-11-30 |
| MiMo-V2.6-Pro | Xiaomi | $0.435 | $0.87 | $0.0036 | 1M | source · 2026-11-30 |
| MiMo-V2.6-Flash | Xiaomi | $0.14 | $0.28 | $0.0028 | — | source · 2026-11-30 |
Also as prices.json and prices.md. Free to reuse with a link back. Or start with the cheapest LLM API ranking.
FAQ
How is AI API cost calculated?
Cost = (input tokens × input price + output tokens × output price) ÷ 1,000,000. Cached input tokens are billed at the lower cached rate. TokenMeters multiplies per-request cost by requests per day, and by 30 for a monthly estimate.
How many tokens is a word?
For English text, one token is roughly three quarters of a word, so 1 word ≈ 1.33 tokens. Code and non-English text usually use more tokens. Tokenizers differ by model.
What is cached input?
Many providers discount input tokens that repeat a recently seen prompt prefix (system prompts, documents, agent context). Set the cached-input share to the fraction of input you expect to hit the cache.
Are these prices current?
Every price comes from the provider's official pricing page, with the source URL and last-verified date listed. Prices change often, so check the source before committing to a budget.
What is cost per task?
Agents make many model calls per task. Cost per task mode multiplies the per-call cost by steps per task and by (1 + retry rate), applies your cache hit rate to input tokens, then multiplies by tasks per day and 30 days for a monthly estimate.
How does reasoning effort affect cost?
Reasoning (thinking) tokens are billed at the output price. The effort setting multiplies output tokens per step: Off ×1, Low ×1.5, Medium ×3, High ×6, Max ×10. These defaults are rough TokenMeters estimates, not vendor figures; real usage varies by model and task, so the table shows a low–high range and you can type your own multiplier. Use the same effort level to compare models fairly.
What isn't included?
Batch discounts, long-context surcharges, cache-write fees, tool calls (web search etc.), taxes, and regional uplifts are not included in the main estimate. Notes on each model page call these out.