Function Compute

A fully hosted and serverless running environment that takes away the need to manage infrastructure such as servers and enables developers to focus on writing and uploading code.

Function Compute Pricing

Billing Items

Alibaba Cloud Function Compute is billed on a Pay-As-You-Go basis. The fee consists of three parts and the Internet Traffic Fee is optional. Users are only charged the Internet Traffic Fee when using the Internet to transfer function data.

Total Fee = Request Fee + Duration Fee + Public Network Traffic Fee (optional)

Free Tier

The monthly free quota is shared by the primary account and sub-account.

Requests: The first 1 million calls per month are free of charge.

Duration: The first 400,000 GB-seconds per month are free of charge.

NOTE: Free calls and execution duration are automatically cleared at the beginning of each calendar month, rather than accrued to the next month.

Request Fee

The call count indicates the total number of function calls.

Price: $0.2 / 1 million calls

Duration Fee

An execution duration starts when your code begins to be executed and ends when the result is returned or execution is terminated. The measurement granularity is 100 milliseconds. The duration price depends on the memory size that you have allocated to functions.

Price: $0.00001668 / GB-second ($0.000001668 / GB-100 milliseconds)


The unit of duration fee is GB-second, which means that when the memory size is 1 GB, the duration is charged by the second. If your function memory size is 512 MB, the duration price is calculated as follows: $0.00001668/2 = $0.00000834/second. The duration measurement granularity is 100 milliseconds. Therefore, your execution duration is rounded up to a multiple of 100 milliseconds. For example, if your function execution duration is 1,010 milliseconds, the duration is measured as 1,100 milliseconds. Therefore, if the execution duration of a function with a 512 MB memory is 1,010 milliseconds, the execution duration fee is calculated as follows: (0.5 × 1.1) GB-second × $0.00001668/GB-second = $0.000009174.

Public Network Traffic Fee

Region Price (USD/GB/Hour)
Mainland China 0.125
Asia Pacific SE 1 (Singapore) 0.117
Asia Pacific SE 2 (Sydney) 0.130
US East 1 (Virginia) 0.078
US West 1 (Silicon Valley) 0.078
Germany 1 (Frankfurt) 0.070

Quick Calculation Table For Monthly Free Quota

The table below shows the free tier seconds and the approximate price per 100ms.

Memory (MB) Free Tier Seconds Per Month
128 3200000
192 2133333
256 1600000
320 1280000
384 1066667
448 914286
512 800000
576 711111
640 640000
704 581818
768 533333
832 492308
896 457143
960 426667
1024 400000
1088 376471
1152 355556
1216 336842
1280 320000
1344 304762
1408 290909
1472 278261
1536 266667