API Gateway pricing: what to model (requests + transfer)
API Gateway pricing is usually dominated by request charges plus data transfer. Depending on API type and features, you may also see add-ons that matter for production workloads.
API Gateway pricing inputs
- Requests/month: from metrics, logs, or RPS conversion.
- Response size: average KB to estimate transfer costs.
- Effective rates: blend tiers and region pricing.
Where to get the inputs
- Requests: API logs, gateway metrics, or analytics. Use a representative week and model peak separately if traffic is bursty.
- Payload sizes: average response size from logs or tracing. Use compressed sizes if compression is enabled.
- Transfer boundary: which path is billed (internet egress vs internal vs cross-region).
If you only have RPS and average payload size, convert it to GB/month with response size transfer.
What to include in an estimate
- Requests/month and your effective $ per million requests
- Average response size and the effective egress $/GB for your traffic path
- Logging/metrics (if enabled) and downstream costs (Lambda, databases, queues)
- Add-ons you use (custom domains, WAF, caching, etc.)
A fast model
Use AWS API Gateway Cost Calculator for a quick request + transfer estimate. Then add any feature-specific line items you rely on.
When transfer dominates
- Large list endpoints, exports, file downloads, and “fat JSON” responses can dominate spend.
- Retry storms multiply both requests and transfer, even when success traffic is unchanged.
- CDN caching in front of the gateway can reduce origin requests and origin transfer for cacheable traffic.
Common pitfalls
- Underestimating transfer by using uncompressed payload sizes.
- Retry storms (client retries, SDK retries, timeouts) inflating requests.
- Large responses (lists, exports, file downloads) dominating total spend.
Related tools
API Gateway cost calculator Access log cost calculator API request cost (generic) Response size to transfer API Gateway vs ALB vs CloudFront
Related: API Gateway access logs cost.
Validation checklist
- Validate the primary driver with measured usage from a representative window.
- Confirm units (GB vs GiB) and request pricing units (per 10k vs per 1M).
- Re-check incident windows: retries/timeouts often multiply cost drivers.
Related tools
Sources
- AWS pricing overview: aws.amazon.com/pricing
- Use official API Gateway pricing for your region and API type to set effective $/request and $/GB assumptions.
Related guides
API Gateway vs ALB vs CloudFront cost: what to compare (requests, transfer, add-ons)
A practical cost comparison of API Gateway, Application Load Balancer (ALB), and CloudFront. Compare request pricing, data transfer, caching impact, WAF, logs, and the hidden line items that change the answer.
API Gateway cost optimization: reduce requests, bytes, and log spend
A practical playbook to reduce API Gateway spend: identify the dominant driver (requests, transfer, or logs), then apply high-leverage fixes with a validation checklist.
AWS network cost guide: NAT, VPC endpoints, PrivateLink, and data transfer (what to model)
A practical AWS network cost hub: how to model NAT Gateway, VPC endpoints/PrivateLink, and cross-AZ/cross-region data transfer. Includes formulas, break-even workflow, and a troubleshooting checklist.
S3 pricing: a practical model for storage, requests, egress, and replication
A practical S3 pricing guide: what to include (GB-month, requests, egress, replication) and how to estimate the key inputs without copying price tables.
VPC endpoints pricing: what to model (interface vs gateway endpoints)
A practical VPC endpoints pricing checklist: interface endpoint hours, per-GB processing, gateway endpoint differences, and the transfer pitfalls that cause surprises.
AWS cost checklist: model the drivers that actually move the bill
A practical AWS cost checklist for planning and reviews: define scope, identify top cost drivers (requests, GB, GB-month, hours), and avoid the common blind spots (data transfer, logs, and cross-AZ).
Related calculators
Data Egress Cost Calculator
Estimate monthly egress spend from GB transferred and $/GB pricing.
API Response Size Transfer Calculator
Estimate monthly transfer from request volume and average response size.
VPC Data Transfer Cost Calculator
Estimate data transfer spend from GB/month and $/GB assumptions.
Cross-region Transfer Cost Calculator
Estimate monthly cross-region transfer cost from GB transferred and $/GB pricing.
RPS to Monthly Requests Calculator
Estimate monthly request volume from RPS, hours/day, and utilization.
API Request Cost Calculator
Estimate request-based charges from monthly requests and $ per million.
FAQ
What are the two biggest cost drivers for many APIs?
Request volume and data transfer. For high-traffic APIs with non-trivial payloads, transfer can be as large as (or larger than) request fees.
Does API Gateway include data transfer in the request price?
No. Data transfer is typically billed separately (with the exact rate depending on destination and architecture).
Last updated: 2026-02-07