Utinzo

AI API Budget Calculator

Plan your monthly AI API budget based on usage volume, model selection, and request patterns.

Did this tool work for you?

How to use this calculator

Daily Cost = Effective Requests × (Input Tokens × Input Rate + Output Tokens × Output Rate) / 1,000,000

Effective requests account for cache hits, which reduce the number of real API calls. The formula computes input and output token costs separately, then scales daily costs to monthly and annual projections.

  1. 1

    Enter your expected number of API requests per day and the average input and output token counts per request.

  2. 2

    Enter the input and output pricing from your model provider's pricing page (in dollars per million tokens).

  3. 3

    Optionally set a cache hit rate if you use prompt caching — the calculator will show your monthly savings.

Frequently asked questions

What formula does the budget calculator use?

Effective requests = requests per day × (1 − cache hit rate ÷ 100). Daily input cost is effective requests × input tokens ÷ 1,000,000 × the input price, and daily output cost is built the same way with output tokens and the output price. Daily cost is their sum, monthly cost is daily × 30, and annual cost is daily × 365.

Does the cache hit rate model provider prompt caching?

No. A cache hit here removes the whole request from the bill, as a response cache that answers without calling the model would. Provider prompt caching usually still charges for cached input at a reduced price. To approximate that, leave the cache rate at 0 and enter a blended input price that reflects the discount.

Why is annual cost not exactly twelve times monthly cost?

Monthly cost multiplies the daily figure by 30 while annual cost multiplies it by 365. Twelve 30-day months make 360 days, so the annual number is about 1.4 percent higher than the monthly number × 12. Real invoices follow calendar months, which run 28 to 31 days.

Which model prices does this calculator use?

None. It has no built-in model table: you type the input and output price per million tokens yourself. Copy them from the provider’s current pricing page, because vendors change prices and retire models, and re-run the numbers when they do.

What does cost per request mean when the cache hit rate is high?

It divides the daily cost by effective requests, meaning only requests that actually reach the API. At a 100 percent hit rate there are none, so the line shows $0.000000 and the savings line shows the full uncached bill.

How should I pick average input and output tokens?

Use the mean of logged usage, not a typical or median request, because the bill follows the total. Most APIs return the token counts used in each response, so average them over a week of real traffic. Long outliers pull the mean up and are exactly what a budget needs to include.

What happens if I enter negative numbers or a cache rate above 100?

Negative values are treated as zero and the cache hit rate is clamped between 0 and 100. Blank or non-numeric fields also count as zero, so a result of $0.00 usually means an input is missing.

What is not included in the estimate?

Only token charges are modelled. Retries, failed calls that still consume tokens, image or tool-call fees, batch or volume discounts, free tiers and fine-tuned model hosting are left out, as are taxes and currency conversion.

About ai api budget calculator

AI API budget calculator: daily, monthly and annual spend from request volume

How the budget is built

Spend starts from effective requests: requests per day multiplied by one minus the cache hit rate. Each effective request costs its input tokens ÷ 1,000,000 × the input price plus its output tokens ÷ 1,000,000 × the output price, with both prices typed in per million tokens. That daily figure is multiplied by 30 for the monthly number and by 365 for the annual one, so annual spend is slightly more than twelve times the monthly line. Monthly token totals use the same 30-day month, which makes them easy to compare with a provider’s usage dashboard.

Three runs of the calculator

Budget scenarios and results. The columns show Scenario, Inputs and Result, one line per case.

Budget scenarios and results
ScenarioInputsResult
Default values5,000 requests/day, 500 in, 300 out, $3 / $15 per 1M, 0% cache$30.00 per day, $900.00 per month, $10,950.00 per year; 75,000,000 input and 45,000,000 output tokens per month; $0.006000 per request
Input-heavy with caching20,000 requests/day, 1,500 in, 200 out, $0.50 / $2 per 1M, 30% cache$16.10 per day, $483.00 per month, $5,876.50 per year; $207.00 per month saved; $0.001150 per request
Every request cached1,000 requests/day, 2,000 in, 600 out, $3 / $15 per 1M, 100% cache$0.00 spend; $450.00 per month shown as cache savings

What a cache hit means here

The cache setting removes whole requests from the bill. A 30 percent hit rate means three in ten requests cost nothing and the rest are billed at the full rates you typed. That fits a response cache that returns a stored answer without calling the model. It does not model provider prompt caching, where a cached prefix is still billed at a reduced input price; for that, lower the input price you enter to a blended rate instead. In the second scenario the savings line reads $207.00 per month, which is the difference between the uncached bill and the $483.00 shown.

Reading cost per request

Cost per request divides the daily cost by effective requests, so it describes a request that actually reaches the API. Compare it with the revenue or time saved per request when you judge whether a feature pays for itself. The token counts are your averages: a few very long prompts raise the real mean, so measure a week of logged usage rather than guessing. The third scenario shows the edge case, where every request is cached and the token and cost lines all fall to zero.

What the figure leaves out

The estimate covers token charges only. Retries after errors, calls that fail but still consume tokens, image or tool-call surcharges, batch discounts and any free tier are not modelled. Because the calculator has no built-in price list, the accuracy of the result depends on the rates you enter. Vendors revise prices and retire models, so copy the figures from the provider’s pricing page on the day you budget and re-run the numbers when they change.

AI API Budget Calculator – Utinzo

Learn more from an authoritative source:

OpenAI Platform Docs
Related tools

Results are estimates for informational purposes only and do not constitute professional financial, medical, legal, or technical advice. Read full disclaimer →