ospalabs
Free tool

OpenAI and LLM API cost calculator

Estimate your monthly API bill before you ship. Enter how many requests you expect and how big they are, pick up to three models, and compare the cost per request, day, month and year.

Prompt, instructions and context
The model's reply
Repeated prompt prefixes bill cheaper on models with cached pricing
Per request
$0.00124
Per day
$6.20
Per month
$186
Per year
$2,263
Cheapest of these
Per request
$0.00700
Per day
$35.00
Per month
$1,050
Per year
$12,775
Per request
$0.00588
Per day
$29.38
Per month
$881
Per year
$10,722

Month = 30 days. List prices from Fuse's price table; your provider's invoice is final.

How it works

The formula

Cost per request = input tokens × input price + output tokens × output price, with prices per million tokens. Multiply by requests per day, then by 30 for a month.

Prompt caching

If many requests start with the same long prefix, part of the input can bill at a cheaper cached rate. Set the share of input you expect to be cached; models without a cached price bill all input at full price.

Where estimates go wrong

Real traffic isn't steady: retries, long conversations and agent loops push the average up. Plan with some headroom, and put a hard ceiling on spend so a bad day can't become a bad month.

Want these numbers enforced instead of estimated? Put a hard dollar ceiling on your API keys · or see all free tools.

Questions

How much does the OpenAI API cost per month?
It depends entirely on volume and model. 5,000 requests a day of 1,500 tokens in and 400 out costs a few dollars a month on a small model and hundreds on a large one. Enter your numbers above.
How do I estimate tokens per request?
Paste a real prompt into the token counter, add the context your app sends, and look at the usage field of a few real responses for the output length.
Can I cap the bill at the number this shows?
Yes. Fuse puts a daily or monthly dollar ceiling in front of your API keys; the request that would cross it is refused before it reaches the provider.