Calculate AI API Cost for a Prompt
Turn a prompt into a dollar figure: input cost, output cost, combined per call, and the number that actually matters — cost per 1,000 calls.
Overview
A single API call costs a fraction of a cent, which is exactly why teams underestimate the bill. This loads a data-extraction payload with a long response and prices it on every axis: input, output, combined, and at a thousand calls. Cost is a function of tokens times the model's rate, so the model you pick swaps a $1.25 input rate for a $15 one. Prices are labeled approximate and dated, because providers change them — the tool refuses to pretend otherwise.
Workflow
-
Pick the model
Price varies five-fold across families — the model is the biggest cost lever.
-
Cost every axis
Input, output, combined per call — output usually dominates.
-
Project the scale
The per-1,000-calls line is where the real budget lives.
Why This Works
- Cost is tokens times rate, so the model choice moves the number the most
- Per-1,000-calls reframes a fraction-of-a-cent call into a real bill
- Pricing is labeled approximate and dated — no false precision on rates
Best for
- Budgeting an API integration
- Comparing cost across model families
- Pricing high-volume batch jobs
Not for
- Exact invoicing — use your provider's billing dashboard
- Checking context-window fit — use the Context Window Estimator
Use cases
- Budgeting an API integration
- Comparing cost across model families
- Pricing high-volume batch jobs