Function Compute uses the Compute Unit (CU) as its unified billing metric. To calculate CU usage, multiply the following factors by their corresponding CU conversion factors: the number of function invocations, active vCPU usage, idle vCPU usage, memory usage, disk usage, and active and idle GPU usage (including Tesla series and Ada series).
Function Compute supports three billing methods: free trial quotas, pay-as-you-go, and resource plans.
How CU usage is calculated
Your CU consumption is determined by multiplying each of the following factors by its corresponding CU conversion factor:
| Billing factor | Description |
|---|---|
| Function invocations | The number of times your functions are invoked |
| Active vCPU usage | vCPU time consumed while a function is actively processing a request |
| Idle vCPU usage | vCPU time consumed while a provisioned function instance is idle after idle mode is enabled |
| Memory usage | Memory consumed by function instances |
| Disk usage | Disk space consumed by function instances |
| Active GPU usage | GPU time consumed while actively processing (Tesla series and Ada series) |
| Idle GPU usage | GPU time consumed while idle after idle mode is enabled (Tesla series and Ada series) |
For detailed pricing information, see Billing overview.
Billing methods
| Billing method | How it works |
|---|---|
| Free trial quotas | A complimentary trial CU plan for first-time users. If you do not purchase additional resource plans, any usage exceeding the trial quota in each billing cycle is billed on a pay-as-you-go basis. |
| Resource plans | Function Compute provides five tiers of CU resource plans. After you purchase a resource plan, it is preferentially used to offset your resource usage. When the quota in the resource plan is exhausted, you are charged on a pay-as-you-go basis. Resource plans allow you to use a fixed amount of resources at a discounted rate, helping you reduce costs. |
| Pay-as-you-go | You are charged based on the computing resources that you use. |
Billing of other Alibaba Cloud services
When you use Function Compute, you may incur charges from other Alibaba Cloud services that your functions access. These services include:
Object Storage Service (OSS)
Simple Log Service (SLS)
File Storage NAS
Charges for these services are billed separately according to each service's own pricing model.