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)

Note:

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

RegionPrice (USD/GB/Hour)
Mainland China0.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
1283200000
1922133333
2561600000
3201280000
3841066667
448914286
512800000
576711111
640640000
704581818
768533333
832492308
896457143
960426667
1024400000
1088376471
1152355556
1216336842
1280320000
1344304762
1408290909
1472278261
1536266667