Free Tier

The Amazon API Gateway free tier includes one million API calls received for REST APIs, and one million messages and 750,000 connection minutes for WebSocket APIs per month for up to 12 months. If you exceed this number of calls per month, you will be charged the API Gateway usage rates.

1M API CALLS RECEIVED | 1M MESSAGES | 750,000 CONNECTION MINUTES

per month

These free tier offers are only available to new AWS customers, and are available for 12 months following your AWS sign-up date. When your 12 month free usage term expires or if your application use exceeds the tiers, you simply pay standard, pay-as-you-go service rates.

REST APIs

Pay only for the API calls you receive and the amount of data transferred out. There are no data transfer out charges for Private APIs. However, AWS PrivateLink charges apply when using Private APIs in API Gateway. API Gateway also provides optional data caching charged at an hourly rate that varies based on the cache size you select. For REST APIs, the API Gateway free tier includes one million API calls per month for up to 12 months.

WebSocket APIs

Pay only for messages sent and received and the total number of connection minutes. You may send and receive messages up to 128 kilobytes (KB) in size. Messages are metered in 32 KB increments. So, a 33 KB message is metered as two messages.

For WebSocket APIs, the API Gateway free tier includes one million messages (sent or received) and 750,000 connection minutes for up to 12 months.

Additional Charges

You may incur additional charges if you use Amazon API Gateway in conjunction with other AWS services or transfers data.

For details on AWS service pricing, see the pricing section of the relevant AWS service detail pages. Links to pricing for some of the commonly used services are listed below.

Data transfer

If you use external data transfers, you will be charged at the EC2 data transfer rate

AWS PrivateLink

Includes pricing for each hour that your VPC endpoint is provisioned in each Availability Zone

AWS Lambda

Includes pricing for requests and duration

Amazon CloudWatch

Includes pricing for metrics and dashboards

Pricing Examples

Edge Optimized and Regional APIs

An Edge Optimized or Regional API that receives five million API calls per month, with each API call returning responses of 3 kilobytes (KB) in size with no caching.

Example below reflects pricing for US East (N. Virginia, Ohio), US West (Oregon), Asia Pacific (Mumbai)

Amazon API Gateway API call charges = 5 million * $3.50/million = $17.50

Total size of data transfers = 3 KB * 5 million = 15 million/KB = 14.3 GB

Amazon API Gateway data transfer charges = 14.3 GB * $0.09 = $1.29

Total Amazon API Gateway charges = $17.50 + $1.29 = $18.79

Edge Optimized and Regional APIs

An Edge Optimized or Regional API that receives 15 billion API calls per month, with each API call returning responses of 4 kilobytes (KB) in size with no caching.

Example below reflects pricing for US East (N. Virginia, Ohio), US West (Oregon), Asia Pacific (Mumbai)

Amazon API Gateway API call charges = 333 million * $3.50/million = $1,165.50

                                                                     667 million * $2.80/million = $1,867.60

                                                                     14 billion * $2.38/million = $33,320.00

Total Amazon API call charges = $1,165.50 + $1,867.60 + $33,320.00 = $36,353.10

Total size of data transfers = 4 KB * 15 billion = 57,220.46 GB

Amazon API Gateway data transfer charges = 57,220.46 GB * $0.09 = $5,149.84

Total Amazon API Gateway charges = $36,353.10 + $5,149.84 = $41,502.94

Private APIs

A Private API that receives five million API calls, with each API call having a request size of 0.3 kilobytes (KB) and returning responses of 3 kilobytes (KB) and a VPC endpoint provisioned in 1 Availability Zone (AZ) for the whole month (720 hours).

Example below reflects pricing for US East, US West (Oregon)

Amazon API Gateway API call charges = 5 million * $3.50/million = $17.50

Total Amazon API Gateway charges = $17.50

Total size of data transfers (Request + Response) = (3 KB + 0.3 KB) * 5 million = 16.5 million/KB = 15.7 GB

VPC Endpoint charges = 720 hours * $0.01/AZ/hr = $7.20

VPC Endpoint data processing charges = 15.7 GB * $0.01/GB = $0.16

Total Amazon VPC (AWS PrivateLink) charges = $7.20 + $0.16 = $7.36

Total charges = $17.50 + $7.36 = $24.86

WebSocket APIs

Chat Application: 1000 users connected to the chat application for 12 hours in a day. Each user sends 100 messages and receives 500 messages per day. Each message size is 3KB.

Example below reflects pricing in US East (N. Virginia)

Messaging Cost

Total messages per month = (100 (sent msgs) + 500 (received msgs)) * 1000 (users) * 30 (days) = 18M

Total messaging cost = 18,000,000/1,000,000 * $1.00 (per million) = $18

Connectivity Cost

Total connection minutes per month = 1000 (users) * 12 (hrs) * 60 (mins) * 30 (days) = 21,600,000

Total connectivity cost = 21,600,000/1,000,000 * 0.25 (cost per million) = $5.40

Total Cost = $18 (Messaging cost) + $5.40 (Connectivity cost) = $23.40

Pricing Example with Caching Required (US East, US West, EU (Ireland))

If your API needs 1.5 GB of cache for its data, you can provision a 1.6 GB cache at $0.038/hr.

$0.038 * 24 = $0.912/day

Pricing Resources

TCO Calculator

Calculate your total cost of ownership (TCO)

Simple Monthly Calculator

Easily calculator your monthly costs with AWS

Economics Resource Center

Additional resources for switching to AWS

Get started with Amazon API Gateway