AI Tools

AI API Cost Calculator (GPT, Claude, Gemini)

Estimate what your LLM feature costs by token. Pick a model (GPT, Claude, Gemini, Llama) or enter custom pricing and see cost per request, per day and per month.

Tool

About the AI API Cost Calculator

The AI API Cost Calculator runs entirely in your browser — nothing you paste is uploaded or stored.

API bills are metered in tokens, not characters or words, and input and output tokens are priced differently. That makes it surprisingly hard to eyeball what a feature will cost. This calculator converts your prompt size, response size and request volume into a clear monthly figure using published per‑million‑token prices.

How to use this tool

  1. Choose a model, or select Custom pricing and enter your own rate per 1M tokens.
  2. Enter the average input tokens and output tokens for one request.
  3. Set how many requests you expect per day and the number of billing days.
  4. Press Calculate to see cost per request, per day and per month.

Why output tokens cost more

On most providers output tokens are three to four times the price of input tokens, because generation is more expensive than reading a prompt. A chatbot that returns long answers can therefore cost far more than a classifier that outputs one word. Cutting response length is usually the fastest way to shrink an LLM bill.

LeverEffect
Shorter answersDirectly reduces the most expensive token type
Smaller modelDrops the price per token for simple tasks
Caching / trimming promptsLowers repeated input tokens

Pro tip

Run the numbers for your busiest user, not the average one. A single power user generating long outputs 20× a day can dwarf the cost of a hundred light users.

Who is this tool for?

Indie developers, product managers and founders pricing an AI feature before they ship it, or checking an invoice against expected usage.

Frequently asked questions

They are typical list prices per million tokens at the time of writing. Providers change pricing often, so use Custom pricing to enter the current rate from your provider's pricing page.
Roughly four characters of English text. Our LLM Context Window Checker can estimate tokens for a block of text if you are not sure.
No. Every calculation happens locally in your browser; nothing is uploaded or saved.

Related tools

Guides for this tool