| Cost component | Monthly cost | Billing basis | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.detail }} |
| Meter | Quantity | Applied rule | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.detail }} |
{{ item.title }}
{{ item.body }}
| Cost component | Monthly cost | Billing basis | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.detail }} |
| Meter | Quantity | Applied rule | Copy |
|---|---|---|---|
| {{ row.label }} | {{ row.value }} | {{ row.detail }} |
{{ item.body }}
API Gateway cost begins with traffic, but raw call count is rarely the whole bill. The API family determines the primary meter. Payload size can turn one client action into several billable units, and some designs add response transfer, connection minutes, cache hours or private endpoint charges.
HTTP APIs suit many lightweight request-response workloads. REST APIs offer a different feature and pricing profile. Private REST APIs add interface endpoint cost to keep access within private networks, while WebSocket APIs charge for messages and the time connections stay open. The cheapest family on paper may not provide the behavior an application needs.
| API family | Primary meter | Size increment | Important extra |
|---|---|---|---|
| HTTP API | Requests | 512 KB request chunks | Public response transfer |
| REST API | Requests | One unit normally; streamed responses use 10 MB increments | Optional cache and response transfer |
| Private REST API | Requests | One unit normally | Interface endpoint hours and processed data |
| WebSocket API | Messages | 32 KB message chunks | Connection minutes |
Average payload size is a planning shortcut. Averages can hide a small number of large uploads or messages that cross a chunk boundary, so production billing data or a payload-size distribution gives a stronger forecast. Retry storms, webhook replays and health traffic can also make metered volume exceed business transaction count.
A gateway estimate is not a full application estimate. Backend compute, Lambda duration, databases, logs, WAF, NAT gateways, custom domains, support and other AWS services remain separate. Model those charges beside the gateway line before using the result as an application budget.
Start with observed or forecast traffic, then select the API family and pricing assumptions that match the deployment.
Estimated monthly gateway cost is the sum of the active gateway cost components in USD. Effective cost per million divides that total by metered units, so it can rise when fixed cache, endpoint or portal charges are spread across modest traffic.
Treat the result as a planning snapshot tied to the entered rates. AWS prices, free-tier eligibility and transfer treatment can change by Region, account and billing arrangement.
The calculation expands the selected traffic scale, adds retry or replay overhead and rounds payloads up to the billing increment for the chosen family. Any enabled allowance is subtracted after chunking, never from raw business transactions.
The common traffic path is:
o is retry overhead percent. The chunk factor k is the ceiling of request KB divided by 512 for HTTP APIs, message KB divided by 32 for WebSocket APIs, or streamed response KB divided by 10,240 for REST response streaming. Other REST paths use one unit per call.
Tiered request or message cost sums the units in each tier:
Ti and ri are units and USD-per-million rate in tier i; m is the selected regional multiplier. The built-in planning card uses these rate tiers:
| Family | Tier | Rate per million |
|---|---|---|
| HTTP API | First 300 million | $1.00 |
| HTTP API | Over 300 million | $0.90 |
| REST API | First 333 million | $3.50 |
| REST API | Next 667 million | $2.80 |
| REST API | Next 19 billion | $2.38 |
| REST API | Over 20 billion | $1.51 |
| WebSocket API | First 1 billion messages | $1.00 |
| WebSocket API | Over 1 billion messages | $0.80 |
| Item | Built-in value |
|---|---|
| WebSocket connection minutes | $0.25 per million minutes |
| Public response transfer | $0.09 per GB |
| REST cache example | $0.038 per hour for 730 hours |
| Private endpoint | $0.01 per AZ-hour plus $0.01 per GB |
| Developer portal | $125 per portal plus $12.50 per product monthly |
| Rate profiles | 1.00 standard; 1.21 regional premium; 1.34 high premium |
Public HTTP and REST response transfer is response bytes divided by 1,048,576 KB per GB, less the entered included GB, multiplied by the transfer rate. Private REST data uses request plus response bytes and adds endpoint hours for each Availability Zone. WebSocket connection minutes equal average connections multiplied by connected hours per day, 60 minutes and a 30-day month.
The built-in allowance removes up to one million request or message units and, for WebSocket APIs, 750,000 connection minutes. It is applied only when enabled and does not establish account eligibility. Calculations retain full precision; displayed USD values are formatted for reading.
Use current AWS pricing for the intended Region and account. The standard profile mirrors published U.S. examples captured by the model, while the premium multipliers are planning assumptions rather than quoted regional prices. No workload values are transmitted; the estimate is calculated in the browser.
At 432 million HTTP requests with small payloads, no allowance and the standard rate card, the first 300 million cost $300 and the remaining 132 million cost $118.80. The request total is $418.80 before any response transfer or add-ons.
An average 513 KB HTTP request uses two 512 KB billing chunks, so one million raw calls become two million metered units. Checking payload distribution matters when many requests sit close to a boundary.