UNDERSTAND THE ESTIMATE
What is the API Gateway cost calculator?
This calculator turns a concrete workload configuration into a transparent AWS planning estimate. It sends only validated, allowlisted fields to a same-origin server route. The server queries the official AWS Price List API, normalizes the matching On-Demand price dimensions, and returns line items that the page can explain without exposing raw AWS catalog responses.
The monthly total is the sum of the visible subtotals; the annual figure is twelve times that monthly planning amount. Nothing is silently added. If the pricing service cannot confirm a required dimension, the calculator reports that pricing is unavailable instead of inserting a fabricated number.
Use the estimate as a baseline for architecture conversations, budgets and comparisons. It is not a forecast of a negotiated enterprise bill and it does not subtract account-specific credits, private discounts, tax treatment or commitment pricing.
How API Gateway pricing works
API type
HTTP APIs and REST APIs have different feature sets and pricing dimensions. Choose the API type that matches the deployed gateway rather than selecting solely by price.
Request tiers
API Gateway request pricing can be tiered at high volumes. The normalized response identifies the official unit used for the supported estimate.
Downstream services
Lambda, DynamoDB, data transfer and logging are billed independently. An API Gateway request estimate is only one layer of a serverless architecture.
AWS publishes many dimensions because the same service can behave differently across Regions and usage types. The calculator deliberately limits each form to combinations it can validate and explain. That narrower scope makes the result more useful than a large form that pretends unsupported choices have a precise price.
Example API Gateway cost scenario
For a Lambda-backed HTTP API, calculate gateway requests here, then add compute in the Lambda calculator and database requests in the DynamoDB calculator.
For a reliable budget, run at least three cases: expected usage, a quiet month and a realistic peak month. Comparing those results reveals which line item grows fastest and where an architecture choice carries the most financial sensitivity. If the workload is new, revisit the estimate after the first full billing cycle using observed metrics rather than traffic assumptions.
Ways to control API Gateway costs
- Use HTTP APIs when their feature set meets the application requirement.
- Cache suitable responses where correctness permits.
- Control retries and bot traffic before they reach paid downstream services.
Cost control should preserve reliability and security. A smaller configuration is not automatically better if it causes latency, throttling, recovery risk or engineering overhead. Treat the calculator as one input alongside performance tests, availability requirements and operational ownership.
What this estimate includes—and what it does not
The calculation includes only line items returned in the breakdown. Common additions such as monitoring, logs, cross-Region transfer, support plans, taxes, backup retention and account-specific discounts are excluded unless a calculator explicitly shows them. AWS can change public prices, product attributes and service availability, so important purchasing decisions should also be confirmed against the official AWS pricing pages.
Pricing retrieval happens on the server. Browser code never receives AWS credentials or permission to issue arbitrary AWS SDK operations. Request fields are allowlisted, numeric ranges are capped, responses are controlled, and public catalog results are cached to reduce upstream load.
API Gateway cost calculator FAQs
Does this include Lambda?+
No. API Gateway and Lambda are separate services with separate pricing dimensions.
Are HTTP and REST APIs priced the same?+
No. Their pricing and capabilities differ, so the selected type is passed to the pricing query.
Is data transfer included?+
The initial result reports a transfer line only when a reliable matching rate is available.
