Your prompt, instructions and any documents you send.
The length of the answer. About 750 words is 1,000 tokens.
Count input tokens from text
Counted with the GPT-4o tokenizer and copied into the input box. Claude and Gemini counts differ a little.
Show models from
10,000 requests a month, 2,000 tokens in and 500 out each. Prices checked 2026-10-27.
| Model | Input / 1M | Output / 1M | Per request | Per month |
|---|---|---|---|---|
| Gemini 2.5 Flash-LiteGoogle (Gemini) | $0.1 | $0.4 | $0.0004 | $4.00 |
| GPT-6 LunaOpenAI | $0.1 | $0.5 | $0.00045 | $4.50 |
| Claude Haiku 5.5Anthropic (Claude) | $0.1 | $0.5 | $0.00045 | $4.50 |
| GPT-4o miniOpenAI | $0.15 | $0.6 | $0.0006 | $6.00 |
| GPT-5.4 nanoOpenAI | $0.2 | $1.25 | $0.001025 | $10.25 |
| Gemini 3.1 Flash-LiteGoogle (Gemini) | $0.25 | $1.5 | $0.00125 | $12.50 |
| Gemini 2.5 FlashGoogle (Gemini) | $0.3 | $2.5 | $0.00185 | $18.50 |
| Gemini 3.5 Flash-LiteGoogle (Gemini) | $0.3 | $2.5 | $0.00185 | $18.50 |
| Gemini 3 Flash (preview)Google (Gemini) | $0.5 | $3 | $0.0025 | $25.00 |
| GPT-5.4 miniOpenAI | $0.75 | $4.5 | $0.00375 | $37.50 |
| GPT-6.1 TerraOpenAI | $1 | $5 | $0.0045 | $45.00 |
| Claude Haiku 4.5Anthropic (Claude) | $1 | $5 | $0.0045 | $45.00 |
| Gemini 2.5 ProGoogle (Gemini) | $1.25 | $10 | $0.0075 | $75.00 |
| GPT-4.1OpenAI | $2 | $8 | $0.008 | $80.00 |
| o3OpenAI | $2 | $8 | $0.008 | $80.00 |
| GPT-6.1 SolOpenAI | $2 | $10 | $0.009 | $90.00 |
| Claude Sonnet 5.5Anthropic (Claude) | $2 | $10 | $0.009 | $90.00 |
| GPT-4oOpenAI | $2.5 | $10 | $0.01 | $100.00 |
| Gemini 3.1 Pro (preview)Google (Gemini) | $2 | $12 | $0.01 | $100.00 |
| Claude Sonnet 4.6Anthropic (Claude) | $3 | $15 | $0.0135 | $135.00 |
| Claude Opus 5.5Anthropic (Claude) | $4 | $20 | $0.018 | $180.00 |
| GPT-5.5OpenAI | $5 | $30 | $0.025 | $250.00 |
| GPT-6 AstraOpenAI | $10 | $50 | $0.045 | $450.00 |
| Claude Fable 5.1Anthropic (Claude) | $10 | $50 | $0.045 | $450.00 |
Key takeaways
- A workload of 2,000 input and 500 output tokens, 10,000 times a month, costs $90.00 on GPT-6.1 Sol and $4.50 on Claude Haiku 5.5.
- Output tokens cost 4 to 10 times more than input tokens on every major provider, so short answers save more than short prompts.
- Prices were copied from the providers' own pricing pages on 2026-10-27. They change often, so check the linked page before you commit to a budget.
- Some models charge more once a single prompt passes a size limit, such as 100,000 or 200,000 tokens. The table applies that rule for you.
How to use the AI API Cost Calculator
- 1Enter the input tokens per request: your instructions, the question and any documents you attach. Not sure? Open Count input tokens from text and paste a sample prompt.
- 2Enter the output tokens per request, which is the length of the answer you expect.
- 3Enter how many requests you make, per month or per day, using the toggle.
- 4Read the cheapest and dearest model at the top, then compare every model in the table. Use the provider buttons to narrow it down.
- 5Press Copy link to share the exact numbers with a teammate.
How does an OpenAI API cost calculator work?
An OpenAI API cost calculator multiplies your token counts by the price per million tokens and adds the input and output parts together. The formula is: cost = (input tokens × input price + output tokens × output price) ÷ 1,000,000. Multiply by your request count for a monthly total.
For example, GPT-6.1 Sol lists $2 per million input tokens and $10 per million output tokens. One request with 2,000 tokens in and 500 out costs $0.009. This calculator uses the same formula for Claude and Gemini, so the numbers are directly comparable.
What is a token, and how many do I need?
A token is a small piece of text that a language model reads as one unit, often a short word or part of a longer one. In English, 1,000 tokens is about 750 words. Code, numbers and many non-English languages need more tokens for the same length.
To count your own text, use the AI token counter or the paste box inside this tool. Both use the GPT-4o tokenizer. Claude and Gemini split text differently, and Anthropic says its newer tokenizer produces roughly 30% more tokens for the same text, so treat a count from one provider as an estimate for another.
Why do input and output tokens cost different amounts?
Output tokens are priced higher because the model produces them one at a time, which takes more computing than reading the prompt in one pass. On the models in this table the output price is between 4 and 10 times the input price.
That gap changes how you save money. Asking for a 100-word answer instead of a 400-word one often cuts the bill more than trimming the prompt. If your prompts carry a lot of structured data, converting it with the JSON to TOON converter can reduce input tokens as well.
What does this calculator leave out?
It shows standard, pay-as-you-go text prices only. It does not include prompt caching discounts, batch processing discounts, priority or fast tiers, fine-tuning, image, audio or video tokens, tool and search fees, or taxes. Those can lower or raise a real invoice noticeably.
If you would rather run an open model on your own hardware, the LLM VRAM calculator shows which GPU it needs. This tool also leaves out models with a price change already scheduled, so the table does not go out of date on a known day. Always confirm the final price on the provider's page, linked under Sources below.
Worked example
Worked example: a support assistant with 10,000 requests a month
A support assistant sends 2,000 input tokens per request (instructions plus a help-centre article) and returns 500 output tokens, about 375 words. It handles 10,000 requests a month.
On Claude Sonnet 5.5 ($2 in, $10 out per million), one request costs (2,000 × 2 + 500 × 10) ÷ 1,000,000 = $0.009, so the month costs $90.00. On Claude Haiku 5.5 ($0.10 in, $0.50 out) it is $0.00045 per request and $4.50 a month. GPT-4o mini comes to $6.00 and Gemini 2.5 Flash-Lite to $4.00.
The spread is large: Claude Fable 5.1 costs $450.00 for the same traffic, about 100 times the Haiku figure. Whether the extra quality is worth it depends on the task, so test a cheaper model on real examples first.
Cost per request for common workloads
Cost of a single request at the prices checked on 2026-10-27. Token counts are typical examples, not measurements of any one product.
| Workload (input / output tokens) | GPT-6.1 Terra | Claude Sonnet 5.5 | Gemini 2.5 Flash |
|---|---|---|---|
| Short chat message (300 / 200) | $0.0013 | $0.0026 | $0.00059 |
| Support answer with a policy page (2,000 / 500) | $0.0045 | $0.009 | $0.00185 |
| Summary of a long article (8,000 / 400) | $0.01 | $0.02 | $0.0034 |
| Contract or report review (50,000 / 1,500) | $0.0575 | $0.115 | $0.0188 |
Prices are USD per million tokens from each provider's standard tier.
Where prices step up with prompt size
A few models bill a higher rate when a single prompt is long. The calculator switches rate automatically.
| Model | Prompt size | Input / 1M | Output / 1M |
|---|---|---|---|
| Claude Haiku 5.5 | Up to 100,000 tokens | $0.10 | $0.50 |
| Claude Haiku 5.5 | Over 100,000 tokens | $0.50 | $2.50 |
| Gemini 3.1 Pro (preview) | Up to 200,000 tokens | $2.00 | $12.00 |
| Gemini 3.1 Pro (preview) | Over 200,000 tokens | $4.00 | $18.00 |
| Gemini 2.5 Pro | Up to 200,000 tokens | $1.25 | $10.00 |
| Gemini 2.5 Pro | Over 200,000 tokens | $2.50 | $15.00 |
One Haiku 5.5 request with 150,000 input tokens and 500 output tokens costs $0.0763, against $0.0103 at 100,000 tokens.
Frequently asked questions
How much does the OpenAI API cost?
It depends on the model. On the standard tier checked on 2026-10-27, GPT-6 Luna costs $0.10 per million input tokens and $0.50 per million output tokens, while GPT-6 Astra costs $10 and $50. A request with 2,000 tokens in and 500 out costs $0.00045 on Luna and $0.045 on Astra.
How do I calculate Claude API cost?
Multiply input tokens by the model's input price and output tokens by its output price, add them and divide by 1,000,000. For Claude Sonnet 5.5 at $2 and $10 per million, 2,000 input and 500 output tokens cost $0.009 per request. Enter your own numbers above for every Claude model at once.
Is the Gemini API free?
Google offers a free tier with lower rate limits for some Gemini models, and a paid tier billed per million tokens. This calculator shows paid standard-tier prices only. The free tier limits and which models it covers change often, so read the Gemini pricing page before you rely on it.
How many tokens is 1,000 words?
About 1,333 tokens in English, because one token averages three quarters of a word. Code, tables and languages other than English usually take more. Use the paste box in this calculator to count a real prompt with the GPT-4o tokenizer, then add a margin if you will run it on Claude or Gemini.
Are these prices up to date?
They were copied from the OpenAI, Anthropic and Google pricing pages on 2026-10-27 and are reviewed regularly. Providers change prices and add models often, so confirm the number on the official page before you set a budget. The calculator shows the standard tier only, with no caching or batch discounts.
Does prompt caching or batch mode lower the cost?
Yes. Cached input tokens are billed at a small fraction of the normal input price, and batch processing is usually discounted, in exchange for slower answers. This calculator does not apply either, so its totals are an upper estimate for workloads that repeat a long prompt or can wait for results.
Is my data sent anywhere?
No. The calculation and the optional token count run in your browser, and nothing you type or paste is uploaded or stored. The prices are built into the page, so it makes no request to OpenAI, Anthropic or Google. Browse more tools for working with language models in our AI tools section.
Sources
Last reviewed by the ToolsFiesta team.