API Gateway Serverless instances use a platform-managed, multi-tenant shared resource pool architecture. You do not need to purchase or maintain instances with defined specifications. Billing is calculated hourly based on instance fees, request call volume, and consumer (group) rule expansion.
Billable items
Each Serverless instance incurs a fixed hourly instance fee. Request calls are billed from the first call using a tiered pricing model. Each instance includes a default quota of consumer (group) rules. If you need additional consumer authorization rules, you can purchase consumer (group) rule expansion capacity.
The following table lists all billable items for API Gateway Serverless instances:
Billable item | Billing dimension | Billing method | Unit price |
Instance fee | Instance/Hour | Fixed hourly fee | CNY 0.147/hour |
Request calls | Per 10,000 calls | Tiered pricing from the first call, billed hourly | 0–500,000 calls: USD 0.015/10,000 calls; 500,000–1,000,000 calls: CNY 0.012/10,000 calls; Over 1,000,000 calls: CNY 0.008/10,000 calls |
Public network inbound traffic | GB | Billed independently by CDT | No separate charge on the gateway side. View charges in your CDT bill. |
Consumer (group) rule expansion | Per 100 rules/Hour | Billed hourly based on purchased expansion quantity | CNY 0.02/100 rules/hour |
Instance fees
Each Serverless instance incurs a fixed hourly fee of CNY 0.147/hour.
The instance fee does not include request calls. The fee is charged regardless of whether requests are made during the hour.
Request call pricing
Request calls are billed from the first call. The tiered pricing is based on the hourly call volume:
Hourly call volume | Billing method | Unit price |
0–500,000 calls | Pay-as-you-go from the first call | CNY 0.015/10,000 calls |
500,000–1,000,000 calls | Portion exceeding 500,000 calls | CNY 0.012/10,000 calls |
Over 1,000,000 calls | Portion exceeding 1,000,000 calls | CNY 0.008/10,000 calls |
Billing formula
Let N represent the billable request volume for an instance in a given hour, in units of 10,000 calls:
Billable request volume | Hourly cost |
N = 0 | CNY 0.147 |
0 < N ≤ 50 | 0.147 + N × 0.015 |
50 < N ≤ 100 | 0.147 + 50 × 0.015 + (N - 50) × 0.012 |
N > 100 | 0.147 + 50 × 0.015 + 50 × 0.012 + (N - 100) × 0.008 |
Request metering
Request calls are counted hourly. The billable request volume is measured in units of 10,000 calls. Any partial unit under 10,000 calls is rounded up to 10,000.
Public network inbound traffic
Public network inbound traffic is billed independently by Cloud Data Transfer (CDT). No separate inbound traffic fee is charged on the API Gateway side. You can view traffic charges in your CDT bill.
Traffic type | Billing method | Description |
Private network inbound | Free | No additional fee for internal calls |
Public network inbound | Billed independently by CDT | No separate charge on the gateway side |
Consumer (group) rule expansion
Default rule quota
Each Serverless instance includes a default consumer (group) rule quota at no additional charge:
Quota item | Serverless instance default quota |
Consumer (group) authorization rules | 500 |
Expansion pricing
When the default consumer (group) rule quota does not meet your needs, you can purchase additional rule expansion capacity:
Billable item | Unit | Unit price | Effective immediately |
Consumer (group) rule expansion | Per 100 rules/Hour | CNY 0.02 | Instance rule quota increases immediately after purchase |
Expansion rules:
The minimum purchase unit is 100 rules.
Each purchase of 100 consumer (group) rule expansion units increases the instance consumer (group) authorization rule quota by 100.
Expansion is billed hourly. The actual cost depends on the expansion quantity and usage duration.
The default rule quota incurs no charge. Only the purchased expansion portion is billed.
Expansion billing formula
Let R represent the purchased consumer (group) rule expansion quantity (in rules), and H represent the billing duration (in hours):
Consumer (group) rule expansion cost = (R ÷ 100) × 0.02 × HR must be a multiple of 100.
Expansion examples
Purchased expansion | Total authorization rule quota | Hourly cost | Monthly cost (720 hours) |
0 | 500 | CNY 0 | CNY 0 |
100 | 600 | CNY 0.02 | CNY 14.40 |
500 | 1,000 | CNY 0.10 | CNY 72.00 |
1,000 | 1,500 | CNY 0.20 | CNY 144.00 |
For example, a Serverless instance includes a default quota of 500 consumer (group) authorization rules. If you purchase 100 additional consumer (group) rule expansion units, the total authorization rule quota increases to 600, and the expansion cost is CNY 0.02/hour.
Billing examples
Example 1: Zero calls, no rule expansion
An instance has no request calls and no purchased consumer (group) rule expansion during a given hour.
Billable item | Calculation | Hourly cost |
Instance fee | Fixed | CNY 0.147 |
Request calls | 0 calls | CNY 0 |
Consumer (group) rule expansion | Not purchased | CNY 0 |
Total | 0.147 + 0 + 0 | CNY 0.147 |
Example 2: Low call volume, no rule expansion
An instance has 50,000 request calls (all private network) and no purchased consumer (group) rule expansion during a given hour.
Billable item | Calculation | Hourly cost |
Instance fee | Fixed | CNY 0.147 |
Request calls | 5 × 0.015 | CNY 0.075 |
Consumer (group) rule expansion | Not purchased | CNY 0 |
Total | 0.147 + 0.075 + 0 | CNY 0.222 |
Example 3: Moderate call volume, 500-rule expansion
An instance has 400,000 request calls and 500 purchased consumer (group) rule expansion units during a given hour.
Billable item | Calculation | Hourly cost |
Instance fee | Fixed | CNY 0.147 |
Request calls | 40 × 0.015 | CNY 0.600 |
Consumer (group) rule expansion | 500 ÷ 100 × 0.02 | CNY 0.100 |
Total | 0.147 + 0.600 + 0.100 | CNY 0.847 |
Example 4: High call volume, 1,000-rule expansion
An instance has 1,200,000 request calls and 1,000 purchased consumer (group) rule expansion units during a given hour.
Billable item | Calculation | Hourly cost |
Instance fee | Fixed | CNY 0.147 |
Request calls | 50 × 0.015 + 50 × 0.012 + (120 - 100) × 0.008 | CNY 1.510 |
Consumer (group) rule expansion | 1000 ÷ 100 × 0.02 | CNY 0.200 |
Total | 0.147 + 1.510 + 0.200 | CNY 1.857 |
Billing notes
Serverless instances are metered and billed hourly.
Instance fees, request calls, and consumer (group) rule expansion are listed as separate line items in your bill.
Public network inbound traffic is billed independently by CDT and is not charged separately on the gateway side.
The default consumer (group) rule quota incurs no additional charge. Only the purchased expansion portion is billed.
The actual billed amount is subject to the final bill issued by the billing system.