An instance is a resource in API Gateway that can provide public IP, private IP, public network egress, computing, and storage resources required to process an API. A service must be mounted under an instance before it can run normally.
API Gateway provides two instance types: shared instance and dedicated instance. For their differences and how to select an appropriate type, see Instance Selection.
|Instance Type||Billable Item||Billing Mode||Billing Sequence|
|Shared instance||Number of calls||Pay-as-You-Go: default billing mode of API Gateway, where fees are charged by the actual usage and settled hourly. Resource pack: discounted package offered by API Gateway, which can be used to deduct billable items (API calls/public network outbound traffic).||Free tier > resource pack > pay-as-you-go|
|Public network outbound traffic|
|Dedicated instance||Instance||Monthly Subscription/Pay-as-You-Go||Monthly Subscription/Pay-as-You-Go|
|Public network outbound traffic||Pay-as-You-go: billed by usage and settled hourly.||Free tier > resource pack > pay-as-you-go|
|Resource pack: discounted package offered by API Gateway, which can be used to deduct billable items (public network outbound traffic)|
The free tier policy of the API Gateway service was adjusted at 23:59:59 on October 12, 2020. After the adjustment, each account can use 1 million API calls and 1 GB public network outbound traffic free of charge every month for 12 months. There is no need to claim the free tiers, which are granted directly in the form of resource packs. Such free tiers are also fully available to existing API Gateway users.
Users who newly activate the API Gateway service can enjoy certain free tier of API calls and public network outbound traffic for one year.
|Effective scope||The free tier is implemented in the form of resource pack to deduct account-level usage.|
|Validity period||After the API Gateway service is activated, the free tier will be valid for 12 non-calendar months in the first year (including the month of activation) and reset once every non-calendar month.|
|Acquisition method||After API Gateway is activated, the system will grant the free tier in the form of resource pack. Activate>>|
For example, if you activate API Gateway at 17:13:14, November 10, 2019, then the one million free calls will be valid from November on. Unused calls in the free tier will not be accumulated for the next non-calendar month; therefore, the monthly free tier will be reset at 00:00:00, December 10, 2019. The free tier will become unavailable after 23:59:59, November 10, 2020.