Estimate API Gateway costs for REST, HTTP, and WebSocket APIs with caching, data transfer, and side-by-side comparison.
Last verified: April 2026
10,000,000 requests
The API Gateway Cost Estimator calculates monthly costs for AWS API Gateway across REST, HTTP, and WebSocket API types. It accounts for request volume, data transfer, caching (REST API only), and the differences in per-request pricing between API types. The tool provides side-by-side comparisons to help you choose the most cost-effective API type for your use case.
You are running a REST API with 5 million requests per month and paying $17.50 in request charges plus $14.40 for a 0.5 GB cache. Your API only uses Lambda proxy integration and JWT auth. You use the estimator to model switching to HTTP API and see request costs drop to $5.00. You lose the built-in cache but add CloudFront in front for $1.00, netting a $25.90/month savings.
HTTP APIs are up to 71% cheaper than REST APIs and support most common use cases including JWT authorization, CORS, and Lambda/HTTP integrations. Unless you specifically need REST API features like request validation, WAF integration, API keys, or caching, always choose HTTP API.
REST API caching can dramatically reduce Lambda invocation costs, but the cache runs 24/7 and charges per hour regardless of hit rate. A 0.5 GB cache costs about $15/month. Calculate your Lambda savings from cache hits before enabling it, or you may pay more for caching than you save.
API Gateway data transfer charges are separate from request charges and often overlooked. If your API returns 1 MB responses at 1 million requests per month, that is 1 TB of data transfer at $0.09/GB, adding $90 to your bill on top of request fees.
The estimator multiplies request volume by the per-million rate for each API type (REST at $3.50, HTTP at $1.00, WebSocket at $1.00 per million messages plus $0.25 per million connection minutes). Caching cost is calculated as cache size times hourly rate times 730 hours per month. Data transfer is computed from average response size times request count, with the first 1 GB free and tiered pricing beyond that.
Was this tool helpful?
Disclaimer: This tool runs entirely in your browser. No data is sent to our servers. Always verify outputs before using them in production. AWS, Azure, and GCP are trademarks of their respective owners.