Free tool · no signup
AI API cost calculator: what your volume costs on every model.
Enter how many requests you send a month, how many tokens each one reads and writes, and how much of the prompt repeats. The calculator prices that volume at your own model's rates and on nine current models from Anthropic, OpenAI, Google and DeepSeek, using each provider's own price list on 30 November 2026.
Your numbers
Conversations, documents, calls: whatever one model request is for you.
Instructions, history and documents the model reads. About 2,500 tokens for a 10 kB web page.
What the model writes, including any thinking.
The part of the prompt that is identical on every request (instructions, FAQ, examples).
Your results
At your prices this volume costs $70.00 a month. The cheapest model in the list, Claude Haiku 5.5, would cost $3.50, and the dearest, Gemini 4 Carbon, $140.00. Test the cheap model on your real requests before you switch: the price gap is only worth it if the answers hold up.
- Cost per request at your prices
- $0.00700
- Claude Haiku 5.5
- $3.50
- OpenAI GPT-6 Luna
- $3.50
- Gemini 3.1 Flash-Lite
- $9.75
- DeepSeek Flash (peak hours)
- $9.30
- DeepSeek V4-Pro (peak hours)
- $35.64
- Claude Sonnet 5.5
- $70.00
- OpenAI GPT-6.2 Sol
- $70.00
- Claude Opus 5.5
- $140
- Gemini 4 Carbon
- $140
Keep these numbers
Enter your work email and we save your inputs and results, then you can print the report or save it as a PDF. No newsletter.
By saving, you agree to our privacy policy Privacy.
Embed this tool
Paste this on your own site. It links back here, which keeps the tool up to date.
<iframe src="https://aistrikeforce.com/tools/ai-api-cost-calculator?embed=1" title="AI API cost calculator" width="100%" height="860" style="border:0;border-radius:24px" loading="lazy"></iframe> <p><a href="https://aistrikeforce.com/tools/ai-api-cost-calculator">AI API cost calculator</a> by AI Strike Force</p>
Want the cheapest model that still does the job?
We build assistants and agents, test them on cheaper and stronger models with your real requests, and set up routing and caching from day one. Projects start at $2,500, fixed price agreed before we start.
How the bill is worked out
Example with the default numbers on Claude Sonnet 5.5: 10,000 requests × 1,500 tokens is 15 million input tokens at $2, and 10,000 × 400 is 4 million output tokens at $10: $30 + $40 = $70 a month. If 1,000 of the 1,500 input tokens are the same instructions every time and come from the cache (about two thirds), the input part drops to about $11 and the month to about $51.
The prices used
| Model | Input | Cached input | Output |
|---|---|---|---|
| Claude Haiku 5.5 | $0.10 | $0.01 | $0.50 |
| OpenAI GPT-6 Luna | $0.10 | $0.01 | $0.50 |
| Gemini 3.1 Flash-Lite | $0.25 | $0.025 | $1.50 |
| DeepSeek Flash (peak hours) | $0.30 | $0.006 | $1.20 |
| DeepSeek V4-Pro (peak hours) | $1.32 | $0.044 | $3.96 |
| Claude Sonnet 5.5 | $2 | $0.10 | $10 |
| OpenAI GPT-6.2 Sol | $2 | $0.10 | $10 |
| Claude Opus 5.5 | $4 | $0.20 | $20 |
| Gemini 4 Carbon (from 1 Dec 2026) | $4 | $0.20 | $20 |
Full price lists, discounts and catches for each provider: Claude API pricing, Gemini API pricing and DeepSeek API pricing.
How to find your token counts
- Best: send ten real requests and read the usage numbers each API returns (input, cached and output tokens). Average them and use those.
- Count with the provider's own tokenizer: the same text gives different token counts on different models. Anthropic says its Claude 4.7 and later models count about 30% more tokens than earlier ones for the same text.
- Include everything the model reads on every request: the system prompt, tool definitions, the conversation so far and any documents. In a chat, each turn rereads the turns before it.
- Include thinking. Reasoning models bill their thinking as output, so a short visible answer can still carry hundreds of output tokens.
How to bring the number down
- Route by difficulty: a small model for sorting and simple answers, a large one only for the hard cases. The gap between the cheapest and dearest model in the list is about 40 times.
- Cache the part of the prompt that never changes; cached input costs 2% to 10% of the normal price on the models here.
- Use the batch APIs for work that can wait: Anthropic, OpenAI and Google all take 50% off. DeepSeek halves its price outside peak hours instead.
- Cap the output length and ask for short answers: output costs three to six times input on these models.
Questions, answered.
How much does an AI API cost per month?
For a support chatbot with 10,000 conversations a month (1,500 tokens in, 400 out each), from about $3.50 on Claude Haiku 5.5 or GPT-6 Luna to $140 on Claude Opus 5.5 or Gemini 4 Carbon, at prices on 30 November 2026.
What is a token?
A piece of text the model reads or writes, often part of a word. Anthropic puts an average 10 kB web page at about 2,500 tokens. Each provider counts differently, so measure with the model you will use.
Which is the cheapest AI API?
In this list, Claude Haiku 5.5 and GPT-6 Luna at $0.10 per million input tokens and $0.50 per million output tokens. DeepSeek Flash outside peak hours ($0.15 and $0.60) is close. Cheapest per token is not always cheapest per task: a weaker model that needs two tries costs more.
Why is output more expensive than input?
Writing each token takes the model more work than reading one, and providers price it that way: output costs three to six times input on the models in this calculator.
Does the calculator include caching and batch discounts?
Caching yes, through the share of input read from cache. Batch and off-peak discounts are not applied: halve the result for Anthropic, OpenAI and Google batch jobs, and for DeepSeek traffic outside peak hours.
How often are the prices updated?
They were checked on each provider's pricing page on 30 November 2026. Prices move: Gemini 4 Carbon doubles on 1 December 2026 (already used here), Gemini 3.8 Flash on 1 January 2027, and DeepSeek raised its prices in August. Enter your own model's current prices in the first fields to stay exact.
More free tools
ROAS calculator
Revenue per dollar of ads, as a multiple and a percentage.
Open the toolBreak-even ROAS calculator
The minimum ROAS that covers your product, delivery and fees.
Open the toolCPM calculator
Cost per thousand impressions, from spend and impressions.
Open the toolCPC calculator
Cost per click, click-through rate and CPM from one campaign.
Open the toolCost per lead calculator
Cost per lead and per qualified lead, from spend and results.
Open the toolConversion rate calculator
The share of visitors who convert, and the traffic a target needs.
Open the toolLTV calculator
Lifetime value in revenue and profit, and the acquisition cost it allows.
Open the toolROI calculator
Return on investment as a percentage, a multiple and a net gain.
Open the toolEmployee cost calculator
True annual, monthly and hourly cost of a role, beyond salary.
Open the toolAutomation ROI calculator
Hours and money an automation saves, payback in months, first-year ROI.
Open the toolWhatsApp link generator
A click-to-chat wa.me link with a pre-filled message, plus a QR code.
Open the toolHook generator
Ten hooks in ten styles for a video, an ad or a post, from your offer and audience.
Open the toolAI script generator
Two timed video scripts with different angles: hook, problem, solution, proof and CTA.
Open the toolAd copy generator
Three ad variants with primary text, headline and description, within each platform's limits.
Open the toolInstagram caption generator
Five Instagram captions in five styles, with a first-line hook and hashtags.
Open the toolEmail subject line generator
Ten subject lines with preview text in ten approaches, under 50 characters.
Open the toolAI prompt generator
A complete, ready-to-paste prompt with role, context, constraints and output format.
Open the tool
In this topic
Choose and cost your automation stack
Guides
Services
Free tools
Client results
In this topic
Put AI agents to work
Guides
Services
Free tools
Client results
Tell us what's slowing you down. We'll show you what to automate first.
Free · 30 min · Projects from $2,500
contact@aistrikeforce.com