Quick answer
API cost = requests ÷ 1,000,000 × price per million requests. 25 million requests at $0.40 per million cost $10.00.
Enter the number of requests and the price per million. The calculator returns the cost.
Related tools: Token Cost Calculator: Language-model cost from token counts and prices you enter. Cloud Storage Cost Calculator: Storage cost from size and a price you enter. Fuel Cost Calculator: Trip fuel cost from distance, fuel economy and price.
How to use the API Request Cost Calculator
- Enter requests (above 0).
- Enter price per million requests ($) (above 0).
- Press Calculate to see the result, and use Reset to start again.
| Input | What to enter | Allowed values |
|---|---|---|
| Requests | A number | > 0 |
| Price per million requests | A number, in $ | > 0 |
Formula and method
Formula
cost = requests ÷ 1,000,000 × price
IEEE-754 double precision; shown to the decimals indicated.
Enter the price from your provider's pricing page.
Worked examples
These examples are verified: each one is an automated test case that the live calculator must reproduce exactly.
Example 1
Inputs: Requests = 25000000; Price per million requests = 0.4.
| Result | Value |
|---|---|
| Cost | $10.00 |
Example 2
Inputs: Requests = 3500000; Price per million requests = 1.2.
| Result | Value |
|---|---|
| Cost | $4.20 |
The first line is the headline result (cost). IEEE-754 double precision; shown to the decimals indicated.
Scaling
At $0.40 per million, 1 billion requests cost $400. Costs scale linearly with traffic, so a 10% traffic increase raises the bill by 10%.
Free tiers
Free tiers aren't applied, so subtract any free allowance first: with 1 million free requests the bill above is 24 × 0.40 = $9.60. Many providers also charge for data transfer and compute separately.
How the result changes with requests
Holding every other input at the first worked example, this table changes only requests. It shows how sensitive the answer is to that one value; each row was produced by running this calculator.
| Requests | Cost |
|---|---|
| 12500000 | $5.00 |
| 25000000 | $10.00 |
| 50000000 | $20.00 |
| 100000000 | $40.00 |
What happens with invalid input
These messages are produced by the calculator itself, so you know what to fix.
- Requests: entering "0" shows "Requests must be greater than 0." beside that field and no result.
- Price per million requests: entering "0" shows "Price per million requests must be greater than 0." beside that field and no result.
Choosing between the API Request Cost Calculator and similar calculators
Each row shows what a related calculator on this site asks for and what it returns, so you can pick the one that matches your question.
| Calculator | You enter | It returns |
|---|---|---|
| [Token Cost Calculator](/technology/token-cost-calculator/) | input tokens, output tokens and input price per million tokens | Total cost |
| [Cloud Storage Cost Calculator](/technology/cloud-storage-cost-calculator/) | data stored, price per GB per month and months | Total cost |
| [Fuel Cost Calculator](/automotive/fuel-cost-calculator/) | distance, fuel economy and fuel price | Trip cost |
| [Marginal Cost Calculator](/business/marginal-cost/) | total cost before, total cost after and quantity before | Marginal cost |
| [Opportunity Cost Calculator](/business/opportunity-cost/) | return of the option you gave up and return of the option you chose | Opportunity cost |
Background: networking and display
Network speeds are quoted in bits per second and file sizes in bytes, and a byte is 8 bits, so a 100 Mbps link moves at most 12.5 megabytes per second; real throughput is usually below the advertised rate. Pixel density is the diagonal in pixels divided by the diagonal in inches: a 1920×1080 display of 24 inches is about 92 pixels per inch, and a 3840×2160 display of 27 inches about 163.
Assumptions and limitations
- Free tiers are not applied
If a required value is empty, not a number, or outside its allowed range, the form marks that field with a message and shows no result instead of a misleading number. The automated checks deliberately try invalid entries for requests and price per million requests to confirm this.
Frequently asked questions
How do I estimate monthly requests?
Requests per second × 2.6 million seconds.
Does it include data transfer?
No. It covers request charges only; bandwidth, storage and compute are billed separately by most providers.
What about tiered pricing?
Calculate each tier.
What does the API Request Cost Calculator calculate?
API cost from request volume and a price per million. It returns Cost.
What formula does the API Request Cost Calculator use?
cost = requests ÷ 1,000,000 × price. Enter the price from your provider's pricing page.
What do I need to enter in the aPI Request Cost Calculator?
You enter Requests and Price per million requests ($).
How is the result rounded or limited?
IEEE-754 double precision; shown to the decimals indicated. Free tiers are not applied.
What is an example of a aPI Request Cost result?
With requests 25000000 and price per million requests 0.4, the cost is $10.00.
Where does the method come from?
The method follows: Your API provider's published price list.
Related calculators
- Token Cost Calculator — Language-model cost from token counts and prices you enter.
- Cloud Storage Cost Calculator — Storage cost from size and a price you enter.
- Fuel Cost Calculator — Trip fuel cost from distance, fuel economy and price.
- Marginal Cost Calculator — Extra cost of producing additional units.
- Opportunity Cost Calculator — Value given up by choosing one option over another.
- Base64 Encode/Decode — Encode text to Base64 or decode Base64 to text (UTF-8).
- URL Encode/Decode — Percent-encode text for a URL or decode it.
- eDPI Calculator — Effective DPI from mouse DPI and in-game sensitivity.
Sources
- Your API provider's published price list
Content last reviewed 2026-11-04. Formulas and worked examples are checked by automated tests against independently computed values.