Pay-as-you-go is a billing method that allows you to pay only for the resources that you use. In pay-as-you-go mode, you pay only for the Function Compute resources that you use. You do not need to purchase resources in advance. This topic describes the supported resources and billing rules of the pay-as-you-go billing method.

Supported resources

The pay-as-you-go billing method applies to all billable items in Function Compute, including the following items:
  • Number of requests
  • Amount of used resources
  • Amount of outbound Internet traffic

For more information, see Billing.

Billing rules

  • Billing granularity: The following table describes the billing granularities for the execution durations of different types of instances.
    Instance type On-demand mode Provisioned mode
    Flexible instance The billing granularity is 1 millisecond. The billing granularity is 1 second. If the execution duration is less than 1 minute, it is billed as 1 minute.
    Note For example, if the execution duration of functions by a provisioned instance is 51 seconds, the execution duration is billed as 1 minute. If the execution duration is 61 seconds, it is billed as 61 seconds.
    Performance instance The billing granularity is 1 millisecond. If the execution duration is less than 1 minute, it is billed as 1 minute.
    Note For example, if the execution duration of functions by an on-demand performance instance is 51 milliseconds, the execution duration is billed as 1 minute. If the execution duration is 60,001 milliseconds, it is billed as 60,001 milliseconds.
  • Billing cycle: You are billed every hour. Fees are automatically charged to the payment method that you specify for your Alibaba Cloud account. You can view the billing details on the Bills tab.