All Products
Search
Document Center

API Gateway:Billing overview

Last Updated:Jan 24, 2025

This topic describes the billable items of Cloud-native API Gateway instances and networks and the pricing of each item. This helps you understand and calculate the fees that may be incurred when you use Cloud-native API Gateway.

Billing methods

Cloud-native API Gateway supports the following billing methods:

  • Pay-as-you-go: The billing duration is measured in hours and rounded up to the next hour. Fees are calculated every hour and a bill is generated at an interval of 24 hours. Fees are automatically deducted from the balance of your Alibaba Cloud account. The actual time of bill generation shall prevail.

  • Subscription: The billing duration is measured in months. A duration of one year is calculated as 12 months. Fees are automatically deducted from the balance of your Alibaba Cloud account. The actual time of bill generation shall prevail.

Billable items

Important

The prices provided in this topic are for reference only. The actual prices on the buy pages shall prevail.

The billing of Cloud-native API Gateway consists of the gateway instance fee, data processing fee, and Internet traffic fee.

image

Gateway instance fee

Gateway instances support the pay-as-you-go and subscription billing methods. Instances come with built-in Server Load Balancers (SLBs), so you do not need to separately purchase an SLB.

Note

For more information about how to select a gateway instance specification, see Capacities.

Region

Instance type

Pay-as-you-go unit price (USD/hour)

Subscription unit price (USD/month)

Chinese mainland

apigw.dev.x1

0.124

63

apigw.small.x1

0.291

147

apigw.small.x2

0.557

281

apigw.small.x4

1.054

531

apigw.medium.x1

2.109

1,063

apigw.medium.x2

4.154

2,093

apigw.medium.x3

6.198

3,124

apigw.large.x1

8.242

4,154

apigw.large.x2

16.42

8,276

apigw.large.x3

24.598

12,397

apigw.large.x4

32.775

16,519

China (Hong Kong)

apigw.dev.x1

0.186

94

apigw.small.x1

0.437

220

apigw.small.x2

0.835

421

apigw.small.x4

1.581

796

apigw.medium.x1

3.164

1,595

apigw.medium.x2

6.23

3,140

apigw.medium.x3

9.297

4,686

apigw.large.x1

12.364

6,231

apigw.large.x2

24.63

12,413

apigw.large.x3

36.897

18,596

apigw.large.x4

49.163

24,778

Singapore

apigw.dev.x1

0.171

86

apigw.small.x1

0.402

202

apigw.small.x2

0.768

387

apigw.small.x4

1.454

733

apigw.medium.x1

2.911

1,467

apigw.medium.x2

5.732

2,889

apigw.medium.x3

8.553

4,311

apigw.large.x1

11.375

5,733

apigw.large.x2

22.66

11,420

apigw.large.x3

33.945

17,108

apigw.large.x4

45.23

22,796

US (Virginia)

apigw.dev.x1

0.149

75

apigw.small.x1

0.349

176

apigw.small.x2

0.668

337

apigw.small.x4

1.264

637

apigw.medium.x1

2.531

1,276

apigw.medium.x2

4.984

2,512

apigw.medium.x3

7.437

3,749

apigw.large.x1

9.891

4,985

apigw.large.x2

19.704

9,931

apigw.large.x3

29.517

14,877

apigw.large.x4

39.33

19,823

Billing formulas:

  • Pay-as-you-go: Fee = Unit price of an instance type x Running duration in hours.

    Example: If you run an apigw.small.x1 instance for 5 hours in a Chinese mainland region, the fee is 0.291 x 5 = USD 1.455.

  • Subscription: Fees = Unit price of an instance type x Subscription duration in months.

    Example: If you subscribe to an apigw.small.x1 instance for 1 year in a Chinese mainland region, the fee is 147 x 12 = USD 1,764.

Data processing fee

When you create a gateway instance, you can select the following network types: Internet, VPC, and Internet + VPC. The amounts of data processed over different networks are separately billed. The amount of processed data is the sum of processed requests and processed responses.

Network type

Unit price (USD/GB/hour)

Internet

0.005

VPC

0.007

Billing formulas

  • Internet: Fee per hour = Unit price x Amount of data processed.

    Example: If you use a gateway instance for 2 hours to process 5 GB of data in the first hour and 10 GB of data in the second hour, the total fee is 0.005 x 5 + 0.005 x 10 = USD 0.075.

  • VPC: Fee per hour = Unit price x Amount of data processed.

    Example: If you use a gateway instance for 2 hours to process 5 GB of data in the first hour and 10 GB of data in the second hour, the total fee is 0.007 x 5 + 0.007 x 10 = USD 0.105.

Internet traffic fee

Internet traffic fees are charged and billed by Cloud Data Transfer (CDT). For more information, see Internet data transfers.