The pay-as-you-go billing method allows you to pay only for the resources that you use. If you use the pay-as-you-go billing method, you pay only for the Function Compute resources that you use. You do not need to purchase resources in advance. This topic describes the resources that support the pay-as-you-go billing method and the billing rules of the pay-as-you-go billing method.
Applicable billable items
All billable items in Function Compute support the pay-as-you-go billing method.
Number of function requests
Active vCPU usage
Idle vCPU usage
Outbound Internet traffic
For more information, see Billing overview.
The following table describes the billing granularities of different types of instances based on the execution duration of the instances.
The billing granularity is 1 millisecond.
The billing granularity is 1 second. Execution seconds that are not tens are rounded up to the nearest tens.
For example, if the execution duration of a provisioned instance is 51 seconds, you are charged for 60 seconds. If the execution duration is 61 seconds, you are charged for 70 seconds.
The billing granularity is 1 second. Partial seconds are rounded up to full seconds for billing.
For example, if the execution duration of an on-demand GPU-accelerated instance is 51 milliseconds, you are charged for 1 second. If the execution duration is 10.5 seconds, you are charged for 11 seconds.
Execution duration refers to the execution period of a function.
The billing cycle is 1 hour. Fees are automatically deducted from the balance of your Alibaba Cloud account.