Serverless instances are suitable for testing and small-scale production environments. These instances charge fees based on numbers of API calls and outbound Internet traffic.
Fees of API calls
API call fees are charged on a pay-as-you-go basis. The following table lists the tiered prices in all regions:
Price tier
API calls
USD/million calls
Free tier (in each calendar month)
0 to 1 million
Free of charge
First tier
0 to 10 million
0.9
Second tier
10 million and 100 million
0.6
Third tier
Over 100 million
0.45
Free quota: For each month of the first year of use, you can make one million calls free of charge.
All API requests that are received by API Gateway are considered valid calls and charged.
Billing cycle: billed on a daily basis.
Each bill is generated within one hour, three hours at most, after the current billing cycle ends.
Outbound Internet traffic fees
The following table lists the prices of outbound Internet traffic of pay-as-you-go instances:
Regions
USD/GB
China (Hangzhou), China (Shanghai), China (Shenzhen), China (Beijing), China (Zhangjiakou), China (Hohhot), and China (Chengdu)
0.125
China (Qingdao)
0.113
China (Hong Kong)
0.156
Singapore and Indonesia (Jakarta)
0.117
Australia (Sydney)
0.096
Malaysia (Kuala Lumpur)
0.112
Japan (Tokyo)
0.087
US (Silicon Valley) and US (Virginia)
0.078
Germany (Frankfurt) and UK (London)
0.07
UAE (Dubai)
0.447
Billing cycle: billed on a daily basis.
Each bill is generated within an hour, three hours at the latest, after the current billing cycle ends.
If your backend service is not in the same region as your API Gateway instance or not hosted on Alibaba Cloud, you are charged for the traffic between API Gateway and the backend service based on the same price as described in the preceding table.
Billing example
A customer makes 12 million API calls and consumes 100 GB of outbound Internet traffic on a serverless instance in the China (Hong Kong) region in a month. The customer needs to pay USD 22.5 for the month, in which the API call fees are USD 6.9 (10 x 0.6 + 1 x 0.9 = 6.9) and the outbound Internet traffic fees are USD 15.6 (100 x 0.156 = 15.6).
Usage notes
Top-up notifications
The system estimates an amount based on the average amount payable over the previous seven days for API Gateway and checks whether you have sufficient balance for the next seven days. If the account balance is insufficient, the system notifies you by SMS or email.
If you have enabled balance alert, you will receive an SMS or email reminder when the account balance is less than the specified alert threshold.
Overdue payments
If the available balance in your account is less than the bill amount of the previous billing cycle, the payment for API Gateway becomes overdue. You will receive an SMS message or email that reminds you to make a payment to renew the service.
Service suspension
If you have overdue payments, your APIs fail to be called, and you will receive SMS or email reminders to pay your overdue bills. In this process, you can still manage your APIs.
Service recovery
If you top up your account within six months of the service suspension, the service will be automatically re-activated for use. If you do not top up your account within six months, Alibaba Cloud reserves the right to clear all your API configurations.