All Products
Search
Document Center

API Gateway:Billing overview

Last Updated:Mar 24, 2026

This topic describes the billable items and pricing for Cloud-native API Gateway instances and networks. You can use this information to understand and estimate your costs.

Billing methods

Cloud-native API Gateway supports the following billing methods.

  • Pay-as-you-go (post-paid): You are billed hourly, and partial hours are billed as full hours. Fees are settled hourly, and a bill is generated every 24 hours. Charges are automatically deducted from your Alibaba Cloud account balance. The actual billing time may vary.

  • Subscription (pre-paid): You are billed on a monthly basis. A yearly subscription is billed as 12 months. Charges are automatically deducted from your Alibaba Cloud account balance. The actual billing time may vary.

Billable items

Important

The prices in this document are for reference only. For official pricing, see the product purchase page.

The cost of Cloud-native API Gateway consists of three billable items: gateway instance fees, data processing fees, and Internet traffic fees.

image

Gateway instance fee

Gateway instances support both pay-as-you-go and subscription billing methods. Each gateway instance includes a built-in Server Load Balancer (SLB), so you do not need to purchase an SLB separately.

Note

For more information about how to select a gateway instance type, see Capacity overview.

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) and Japan (Tokyo)

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, Indonesia (Jakarta), and Germany (Frankfurt)

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) and US (Silicon Valley)

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 (post-paid): Fee per instance = Unit price of the instance type × Hours of use.

    For example, if you run an apigw.small.x1 instance in the Chinese mainland region for 5 hours, the fee is USD 0.291 × 5 = USD 1.455.

  • Subscription (pre-paid): Fee per instance = Unit price of the instance type × Number of months.

    For example, if you subscribe to an apigw.small.x1 instance in the Chinese mainland region for one year, the fee is USD 147 × 12 = USD 1,764.

Data processing fee

When you create a gateway instance, you can select one of the following network types: Internet, VPC, or Internet + VPC. Data processed over different network types is billed separately. Within a billing cycle, the data processing volume is the total data volume of requests and responses.

Network type

Unit price (USD/GB/hour)

Internet

0.005

VPC

0.007

Billing formulas

  • Internet: Hourly fee = Data processing volume × Unit price.

    For example, if you use a gateway instance for 2 hours and it processes 5 GB of data in the first hour and 10 GB in the second hour, the total data processing fee is (USD 0.005 × 5) + (USD 0.005 × 10) = USD 0.075.

  • VPC: Hourly fee = Data processing volume × Unit price.

    For example, if you use a gateway instance for 2 hours and it processes 5 GB of data in the first hour and 10 GB in the second hour, the total data processing fee is (USD 0.007 × 5) + (USD 0.007 × 10) = USD 0.105.

Internet traffic fee

Internet traffic is billed by Cloud Data Transfer (CDT). For more information, see Internet traffic pricing.