AI API Cost Calculator
Turn API traffic into a budget. Choose a model from any major provider — OpenAI, Anthropic, Google, xAI, Meta, Mistral, Cohere or Amazon Bedrock — then enter average tokens per call and expected daily calls to see the monthly bill.
Inputs
Result
$675
per month
$0.0225 per request · $22.50 per day · $8,213 per year
- Input cost per request
- $0.0075
- Output cost per request
- $0.0150
- Cost per 1,000 requests
- $22.50
- Tokens per day
- 2,000,000
- Tokens per month
- 60,000,000
- Cost per day
- $22.50
- Cost per month (30 days)
- $675
- Cost per year
- $8,213
Disclaimer: Model availability, pricing and specifications may change. Verify pricing directly with the provider before making business decisions. Preset rates reflect published list prices last reviewed August 2026; choose “Custom pricing” to enter your own rates.
Formula
- Cost per call = (input tokens × input rate + output tokens × output rate) ÷ 1,000,000
- Daily cost = cost per call × calls per day
- Monthly cost = daily cost × 30
Methodology
Pricing is quoted per million tokens and split into input (what you send, including the system prompt and any retrieved context) and output (what the model writes back). The two rates are different, and output is usually the more expensive of the pair.
The calculator multiplies your token counts by the selected rate, then scales the per-request cost by your daily volume to a monthly and annual figure. A 30-day month and a 365-day year are used so results stay comparable between tools.
Provider prices change, so every model list includes a custom option. Enter the exact rates from your provider's pricing page for a number you can put in a budget. Model availability, pricing and specifications may change. Verify pricing directly with the provider before making business decisions.
Example: an API-backed feature at 5,000 calls a day
- A summarisation endpoint averages 2,000 input tokens and 300 output tokens per call on a small tier priced at $0.15 / $0.60 per million.
- Per call: (2,000 × $0.15 + 300 × $0.60) ÷ 1,000,000 = $0.00048.
- At 5,000 calls a day that is $2.40 a day and roughly $72 a month.
Frequently asked questions
Does the API bill differently from a chat subscription?
Yes. A subscription is a flat monthly fee for a person using an app; the API is metered per token with no seat cost, so heavy automated use can cost far more or far less than a seat.
What counts as an input token on an AI API?
Everything in the request body that reaches the model: the system message, every previous turn you resend, tool definitions and any retrieved documents.
How should I set a spending limit?
Estimate the monthly figure here, add headroom for traffic spikes, then set a hard usage limit in your provider dashboard and alert on daily spend rather than monthly.
Are these prices always up to date?
The presets reflect widely published list prices and are reviewed periodically, but providers adjust them and offer discounts for batch processing, cached input and committed spend. Model availability, pricing and specifications may change. Verify pricing directly with the provider before making business decisions.
What happens when a provider launches a new model?
Model names and rates live in one central configuration, so a new model appears in every relevant dropdown as soon as it is added. Page URLs stay provider-based rather than version-based, so no link ever goes stale when a model generation changes.
Does the calculator send my data anywhere?
No. Every calculation runs in your browser, so nothing you type is uploaded, stored or logged.
Related AI calculators
AI Cost
OpenAI Cost Calculator
Estimate what running OpenAI models costs before the invoice arrives. Pick a model from the dropdown — the list is kept current and includes legacy tiers — then enter typical input and output token counts and your daily request volume for an instant per-request, per-day and monthly figure.
AI Cost
AI Token Calculator
Convert words and characters into tokens, then straight into money. Useful for sizing a prompt, checking whether a document fits a context window, or pricing a batch job.
AI Cost
Claude Cost Calculator
Price Claude usage across Opus, Sonnet and Haiku. Enter typical prompt and response sizes with your daily volume to see which tier your workload can actually afford.
AI Cost
Gemini Cost Calculator
Work out Gemini API costs across the Pro and Flash tiers. Enter token counts and daily volume to see the monthly total, and compare tiers by switching the model.
AI Cost
LLM Cost Calculator
A provider-neutral calculator for any large language model. Pick a preset from OpenAI, Anthropic, Google, xAI, Meta, Mistral, Cohere or Amazon Bedrock, or enter your own input and output rates, to compare models on identical traffic.
AI Cost
AI Chatbot Cost Calculator
Chatbots get expensive because every turn resends the conversation so far. This calculator models that growing history and returns a realistic cost per conversation and per month.