Resources / Free tools
AI cost calculator
Estimate a month of AI API costs at published rates using your tool and model, your sessions per day, and your input and output tokens per session. It runs in your browser and is free to use with no signup.
Tool and model
View estimate ↓Intelligence scores: Artificial Analysis Intelligence Index v5.0.1, checked
With a direct API key, the provider bills your calls.
OpenClaw setup guideHermes setup guideClaude Code setup guideGrok Bot setup guideCodex setup guideMuse Code setup guideYour usage
Starting estimate.
Count every call in one session, including repeated context and billed reasoning.
Fees and billing period
Peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, excluding Chinese public holidays.
Prompt caching
Estimate10 turns · 55% reads, 18% writes · 5m
How the defaults are estimated
Estimate · Reads = units in prefixes meeting the minimum / total units = 30/55 = 54.5% · New = 2/(T+1) = 18.2% · Billed writes = 18.2% (T = 10 turns) · Requests under 1,024 tokens don't cache (minimum for this model)
OpenClaw seeds short (5m) retention on Anthropic. OpenAI and other providers use their defaults. Gemini defaults to implicit caching. On supported models, short or long creates an explicit cachedContents resource when the prefix meets the cache minimum. Minimum cacheable prompt is 1,024 tokens.
Monthly API estimate
Not rated$3.80
How it adds up
4 sessions/day × 30 days = 120 sessions
- Regular input
- 327,273 tokens × $3 ÷ 1M ≈ $0.98
- Cache reads
- 654,545 tokens × $0.3 ÷ 1M ≈ $0.20
- Cache writes (5m)
- 218,182 tokens × $3.75 ÷ 1M ≈ $0.82
- Output
- 120,000 tokens × $15 ÷ 1M ≈ $1.80
Text usage at published rates. Taxes, credits, hosting and tool calls are excluded.See all rates in one table.
Subscription comparison
Compare plan prices
- X Free · $0 per month
Limited Grok and Cursor usage. - X Plus · $8 per month
Base weekly pool. Cursor can use Grok models only. - X Premium · $30 per month
Four times Plus usage, including Grok Bot and cloud agents. - X Super · $100 per month
Fifteen times Plus usage in the shared weekly pool. - X Ultra · $200 per month
Fifty times Plus usage in the shared weekly pool. - X Teams Premium · $30 per seat per month
Each seat includes Premium usage and Grok Bot. - X Teams Super · $100 per seat per month
Each seat includes Super usage and Grok Bot. - X Teams Ultra · $200 per seat per month
Each seat includes Ultra usage and Grok Bot. - X Enterprise · Monthly price not published
Contact sales for usage terms. - Claude Free · $0 per month
Limited Claude chat. Claude Code requires a paid plan. - Claude Pro · $20 per month
Includes Claude Code within shared plan limits. - Claude Max · $100 per month
5x Pro usage every 5 hours and every week, plus $100 in monthly API credits. - Claude Ultra · $200 per month
10x Pro usage every week, with no 5-hour limit for verified accounts, plus $200 in monthly API credits. - Claude Team Standard · $25 per seat per month
Includes Claude Code with more usage than Pro. - Claude Team Premium · $125 per seat per month
5x the usage of a Standard seat. - Claude Enterprise · $240 per seat per year (annual billing only)
Annual billing only, with a 20-seat minimum. Usage costs extra at API rates. - ChatGPT Free · $0 per month
Limited access to ChatGPT and Codex. - ChatGPT Go · $8 per month
Higher chat and upload limits than Free. - ChatGPT Plus · $20 per month
Includes expanded Codex usage. - ChatGPT Pro 100 · $100 per month
Longer Codex sessions with a monthly Pro allowance. - ChatGPT Pro 200 · $200 per month
Higher Work and Codex allowance than Pro 100. - ChatGPT Pro 500 · $500 per month
Largest Pro allowance and access to Ultrafast. - ChatGPT Business Standard · $25 per seat per month
Team workspace with Codex and pooled API credits on eligible workspaces. - ChatGPT Business Premium · $125 per seat per month
More workspace usage than Standard, with no five-hour limit. - ChatGPT Enterprise · Monthly price not published
Usage and support terms are negotiated. - Gemini Free · $0 per month
Basic access to the Gemini app. - Google AI Plus · $4.99 per month
Higher Gemini app limits and additional storage. - Google AI Pro · $19.99 per month
Includes entry-level agent limits in Antigravity. - Google AI Ultra 5x · $99.99 per month
Five times Pro usage limits and higher Antigravity limits. - Google AI Ultra 20x · $199.99 per month
Twenty times Pro usage limits and the highest Antigravity limits. - Mistral Free · $0 per month
Limited messages, searches and coding sessions. - Mistral Pro · $14.99 per month
More messages and coding sessions in the CLI, IDE and web app. - Mistral Team · $24.99 per seat per month
Higher limits and shared workspace administration. Two-seat minimum. - Mistral Enterprise · Monthly price not published
Custom deployment and usage terms. - Copilot Free · $0 per month
Limited completions and agent usage. - Copilot Pro · $10 per seat per month
Includes $15 in monthly GitHub AI credits. - Copilot Pro+ · $39 per seat per month
Pro+ includes $70 in monthly GitHub AI credits. - Copilot Max · $100 per seat per month
Includes $200 in monthly GitHub AI credits. - Copilot Business · $19 per seat per month
Adds 1,900 AI credits to the organization pool. - Copilot Enterprise · $39 per seat per month
Adds 3,900 AI credits to the organization pool. - Perplexity Free · $0 per month
Core search access. - Perplexity Pro · $20 per month
Includes Pro Search, file uploads and advanced models. - Perplexity Max · $200 per month
Higher limits for research and Computer. Annual billing is available for new web subscriptions. - Devin Free · $0 per month
Small agent quota and unlimited inline edits. - Devin Pro · $20 per month
Frontier models and cloud agents. Extra usage is available at API rates. - Devin Max · $200 per month
Higher quotas and access to Devin Bots. - Devin Teams · $80 per team per month
Team base fee, plus $40 per month per full seat. - Devin Enterprise · Monthly price not published
Custom usage and deployment terms. - Replit Core · $20 per month
Includes $20 toward models. - Replit Pro · $100 per month
Includes $100 toward models and up to 15 collaborators. - Replit Enterprise · Monthly price not published
Custom workspace and deployment terms. - Lovable Free · $0 per workspace per month
Daily build credits and monthly hosting grants. - Lovable Pro · $25 per workspace per month
Includes 100 monthly credits shared across workspace members. - Lovable Business · $50 per workspace per month
Includes 100 monthly credits and workspace controls. - Lovable Enterprise · Monthly price not published
Custom credit volume and support. - v0 Free · $0 per month
Up to seven messages a day. - v0 Plus · $30 per seat per month
All models and $30 in monthly credits per user. - v0 Business · $100 per seat per month
All models, $30 in monthly credits per user and training opt-out. - v0 Enterprise · Monthly price not published
Custom support, access controls and usage terms. - Bolt Free · $0 per month
One million tokens per month with a daily cap. - Bolt Pro · $25 per month
Starts at ten million tokens per month. - Bolt Teams · $30 per seat per month
Pro features with team billing and administration. - Bolt Enterprise · Monthly price not published
Custom billing and support.
Email me this estimate
Get this estimate and its link by email.
Optimized picks
EstimateCompare rated models at their top effort, using your workload and each model’s cache defaults.
Cheaper, similar smarts
EstimateSmartest within budget
EstimateAll rated models
| Model | Score | Monthly cost | Points/$ |
|---|
How the cost is calculated
Input tokens are what the model reads on each call, including instructions, your message and any history you send again. Output tokens are what it generates, including any billed reasoning tokens. For a typical session, add up input and output tokens separately across calls. Multiply each total by your sessions per day and by 30 days.
When the provider reuses part of a prompt from its cache, those input tokens use the cache-read rate. If the provider charges for writing tokens into its cache, those tokens use the cache-write rate. The remaining input uses the regular rate. For each category, including output, divide its monthly token count by one million and multiply by the model’s price per million tokens. Add the charges, plus any applicable cache storage or routing fee.
Worked example with Claude Sonnet 4.6
The opening OpenClaw example uses 10,000 input tokens and 1,000 output tokens per session. At 4 sessions a day for 30 days, that comes to 120 sessions with 1,200,000 input tokens and 120,000 output tokens. Applying the default cache settings gives these monthly charges.
- Regular input · 327,273 tokens × $3 ÷ 1M ≈ $0.98
- Cache reads · 654,545 tokens × $0.3 ÷ 1M ≈ $0.20
- Cache writes (5m) · 218,182 tokens × $3.75 ÷ 1M ≈ $0.82
- Output · 120,000 tokens × $15 ÷ 1M ≈ $1.80
Together these charges come to $3.80 per month. You can see the same arithmetic for your own settings under How it adds up.
How it works
- Choose your tool and model. For a token estimate, select API key where a billing choice is available.
- Enter the input and output tokens across all calls in a typical session, including repeated context and billed reasoning.
- Set sessions per day to your expected frequency. Read “How it adds up” to see which charges account for most of the estimate.
How the calculator estimates AI cost (FAQ)
- How do I calculate monthly AI API cost from tokens?
At 4 sessions per day for 30 days, the estimate covers 120 sessions. Multiply each per-session token count by the number of monthly sessions, divide by one million, and multiply by the model’s rate per million for that category. Add the charges, including any applicable cache storage or OpenRouter fee.
- How does prompt caching change the estimate?
Cache reads and billed cache writes each use their own share of input tokens at the model’s published rate. The remaining input uses the regular rate. If you know your cache shares, enter them under Prompt caching to replace the defaults.
- How do subscription fees compare with API charges?
For supported tools and models, choose Subscription to see the plan’s price and any published limits. The API-equivalent estimate appears separately so you can see what the same workload would cost at API rates.
- How to calculate AI cost savings when switching models?
Keep the workload the same and subtract the cheaper model’s monthly API estimate from your current model’s estimate. If your current estimate is above zero, divide the savings by that estimate and multiply by 100 to get the percentage saved. Optimized picks compares models using each model’s default cache settings.
- Why might my API bill differ from the estimate?
The estimate assumes a typical session repeats throughout a 30-day month. Longer replies, more sessions or fewer cache hits can raise the bill. Your invoice may also include tool calls, taxes or credits that the calculator leaves out.
Compare models
One task uses 10,000 input tokens and 1,000 output tokens at the standard short-context list price, with no caching.
Sources checked . Prices in USD for .
| Model | Good at | Weak at | Use it for | Skip it for | Cost per task |
|---|---|---|---|---|---|
| Anthropic Claude Sonnet 4.6 |
|
|
| $0.045 | |
| Anthropic Claude Haiku 4.5 |
|
|
|
| $0.015 |
| Anthropic Claude Fable 5.2 |
|
|
| $0.12 | |
| Anthropic Claude Opus 5.5 |
|
|
| $0.06 | |
| Anthropic Claude Opus 5 |
|
|
| $0.075 | |
| Anthropic Claude Sonnet 5.5 |
|
|
| $0.03 | |
| Anthropic Claude Sonnet 5 |
|
|
| $0.03 | |
| Anthropic Claude Haiku 5.5 |
|
|
| $0.0015 | |
| OpenAI GPT-5.4 mini |
|
|
| $0.012 | |
| OpenAI GPT-5.4 nano |
|
|
| $0.0033 | |
| OpenAI gpt-6.2-astra |
|
|
| $0.12 | |
| OpenAI gpt-6.2-sol |
|
|
| $0.03 | |
| OpenAI gpt-6-astra |
|
|
| $0.15 | |
| OpenAI gpt-6.1-sol |
|
|
| $0.03 | |
| OpenAI gpt-6.1-terra |
|
|
| $0.015 | |
| OpenAI gpt-6-luna |
|
|
| $0.0015 | |
| OpenAI gpt-6-sol |
|
|
|
| $0.03 |
| OpenAI gpt-5.6-sol |
|
|
| $0.08 | |
| OpenAI gpt-5.6-terra |
|
|
| $0.032 | |
| OpenAI gpt-5.6-luna |
|
|
| $0.0032 | |
| OpenAI gpt-5.5 |
|
|
| $0.08 | |
| OpenAI gpt-5.4 |
|
|
| $0.04 | |
| xAI grok-4.7 |
|
|
|
| $0.026 |
| xAI grok-4.6 |
|
|
|
| $0.026 |
| xAI grok-4.5 |
|
|
|
| $0.026 |
| xAI grok-4.3 |
|
|
|
| $0.015 |
| xAI grok-4.20-0309-reasoning |
|
|
|
| $0.015 |
| xAI grok-4.20-0309-non-reasoning |
|
|
|
| $0.015 |
| xAI grok-4.20-multi-agent-0309 |
|
|
|
| $0.015 |
| Google gemini-4-carbon |
|
|
| $0.06 | |
| Google gemini-4-argon |
|
|
| $0.06 | |
| Google gemini-4-neon |
|
|
| $0.045 | |
| Google gemini-4-hydrogen |
|
|
| $0.0225 | |
| Google gemini-3.8-flash |
|
|
| $0.0113 | |
| Google gemini-3.6-flash |
|
|
| $0.0113 | |
| Google gemini-3.5-flash-lite |
|
|
| $0.0055 | |
| Google gemini-3.1-pro-preview |
|
|
| $0.032 | |
| DeepSeek deepseek-flash |
|
|
| $0.0042 | |
| DeepSeek deepseek-v4-pro |
|
|
| $0.0172 | |
| Mistral Mistral Large 4 |
|
|
|
| $0.0091 |
| Mistral Mistral Small 4 |
|
|
|
| $0.0021 |
| Perplexity perplexity/sonar |
|
|
|
| $0.005 |
| Perplexity perplexity/nemotron-3.5-super-120b-a12b |
|
|
|
| $0.0025 |
| Perplexity perplexity/glm-5.3 |
|
|
| $0.0184 | |
| Perplexity perplexity/glm-5.3-flash |
|
|
| $0.002 | |
| Perplexity perplexity/deepseek-v4-pro-0813 |
|
|
|
| $0.0172 |
| Perplexity perplexity/kimi-k3 |
|
|
|
| $0.045 |
| Vercel v0 Mini |
|
|
| $0.0015 | |
| Vercel v0 Pro |
|
|
| $0.03 | |
| Vercel v0 Max |
|
|
| $0.06 | |
| Vercel v0 Max Fast |
|
|
| $0.12 | |
| Meta Muse Spark 1.3 / 1.2 (Standard) |
|
|
|
| $0.0168 · Checked Nov 28, 2026 |
| Meta Muse Spark 1.3 / 1.2 (Contributor) |
|
|
|
| $0.0012 · Checked Nov 28, 2026 |
| Meta Muse Wonder (Standard) |
|
|
|
| $0.06 · Checked Nov 28, 2026 |
Quick picks
Best quality = highest Artificial Analysis score among priced models tagged for the task. Best value = lowest cost per task with a score of 40 or more.
Intelligence scores: Artificial Analysis Intelligence Index v5.0.1, checked
Coding
best qualityno model meets the rule
gpt-6.2-astra62.1 points · Max effort · $0.12 per task
reasons through complex programming problems OpenAI
best valueno model meets the rule
gemini-4-hydrogen53.9 points · Xhigh effort · $0.0225 per task
handles everyday coding and agent work quickly Google
Long documents
best qualityno model meets the rule
gemini-4-neon61.4 points · Xhigh effort · $0.045 per task
shares a large context between input and output Google
best valueno model meets the rule
gemini-4-hydrogen53.9 points · Xhigh effort · $0.0225 per task
accepts long inputs and outputs together Google
Image input
best qualityno model meets the rule
Claude Opus 5.559.1 points · Max effort · $0.06 per task
handles workflows that rely on vision Anthropic
best valueno model meets the rule
gpt-6.1-terra51.3 points · Max effort · $0.015 per task
quickly reasons about visual input OpenAI
Agent work
best qualityno model meets the rule
Claude Fable 5.264.6 points · Max effort · $0.12 per task
reasons through long-running agent tasks Anthropic
best valueno model meets the rule
gemini-4-hydrogen53.9 points · Xhigh effort · $0.0225 per task
handles everyday coding and agent work quickly Google
Fast option
best qualityno model meets the rule
gemini-4-neon61.4 points · Xhigh effort · $0.045 per task
finishes complex software tasks quickly Google
best valueno model meets the rule
gpt-6.1-terra51.3 points · Max effort · $0.015 per task
quickly reasons about visual input OpenAI
Official price sources
OpenClaw
- OpenClaw ·
Nous Research
- Hermes ·
Anthropic
OpenAI
- ChatGPT / Codex, ChatGPT Business Standard, ChatGPT Business Premium, ChatGPT Enterprise ·
- GPT-5.4 mini ·
- GPT-5.4 nano ·
- gpt-6.2-astra, gpt-6.2-sol, gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra, gpt-6-luna, gpt-6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.4 ·
- gpt-5.6-sol ·
- ChatGPT Free ·
- ChatGPT Go ·
- ChatGPT Plus ·
- ChatGPT Pro 100, ChatGPT Pro 200, ChatGPT Pro 500 ·