All Products
Search
Document Center

Function Compute:Pay-as-you-go billing method

Last Updated:Feb 02, 2024

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

  • Resource usage

    • GPU usage

    • Active vCPU usage

    • Idle vCPU usage

    • Memory usage

    • Disk usage

  • Outbound Internet traffic

For more information, see Billing overview.

Billing granularity

The following table describes the billing granularities of different types of instances based on the execution duration of the instances.

Instance type

On-demand mode

Provisioned mode

Elastic 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.

Note

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.

GPU-accelerated instances

The billing granularity is 1 second. Partial seconds are rounded up to full seconds for billing.

Note

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.

Note

Execution duration refers to the execution period of a function.

Billing cycle

The billing cycle is 1 hour. Fees are automatically deducted from the balance of your Alibaba Cloud account.