This topic describes the specifications, usage modes, billable items, and unit prices of performance instances in Function Compute.

Instance specifications

Number of CPU cores Memory size (GB) Maximum package size (MB) Maximum execution duration of functions (s) Maximum disk size (GB) Maximum bandwidth (Gbit/s)
2 4 500 86,400 10 1
4 8 500 86,400 10 1.5
8 16 500 86,400 10 2.5
16 32 500 86,400 10 5
Notice The fees for performance instances cannot be deducted by the free monthly quota. Take note of the fees for performance instances.

Usage modes

For more information about the usage modes of performance instances, see Instance types and instance modes.

Billable items and unit prices

Function invocation fees = Number of requests × Unit price
Unit price: USD 0.2 per 1,000,000 requests
Fees for resource usage of instances = Computing capacity of instances × Execution duration × Unit price
  • Computing capacity of instances: The computing capacity of an instance is proportional to the memory size allocated to the instance. To simplify the billing model, Function Compute uses the memory size of an instance to indicate the computing capacity of the instance.
  • Execution duration: Instances can be used in provisioned or on-demand mode. The execution duration of functions by provisioned instances and that by on-demand instances are measured in different ways.
    • On-demand mode: The billing granularity is 1 millisecond. If the execution duration is less than 1 minute, it is billed as 1 minute. 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.
    • Provisioned mode: The billing granularity is 1 second. If the execution duration is less than 1 minute, it is billed as 1 minute. For example, if the execution duration of functions by a provisioned performance 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.

    For more information, see Instance specifications and usage modes.

Note:
  • Function Compute provides computing capabilities that match those of Elastic Compute Service (ECS) and Container Service for Kubernetes (ACK). You do not need to worry about the computing capacity of instances.
  • Function Compute allows you to concurrently process requests by using a single instance. Reused resources are billed based on the amount of resources that are used and are not repeatedly billed for each reuse.
Billing methods
The resource usage of instances is billed in the following two methods:
  • Subscription: Purchase a specific number of resource coupons based on the estimated requirements before you use Function Compute.
    Unit price: USD 12.16 per GB per month. This is the monthly fee for an instance that has 1 GB of computing power.
  • Pay-as-you-go: Pay for the resources that are used.
    Unit price: USD 0.000016384 per GB per second. This is the fee for an instance that has 1 GB of computing power to execute requests for 1 second.

Note:
  • When you purchase resource coupons, no instances are created.
  • Resource coupons can be used to offset the fees for both provisioned and on-demand instances. If Function Compute fails to deliver the resources that you purchased due to insufficient underlying computing resources, you can be reimbursed for the fees for the undelivered resources. We recommend that you create provisioned instances and purchase resource coupons to offset the fees for the instances.
Fees for outbound Internet traffic = Traffic within a function × Traffic unit price + Traffic for responses to requests × Traffic unit price + CDN back-to-origin traffic × Traffic unit price
  • Traffic within a function: the traffic generated when the function sends requests to the Internet.
    Unit price: USD 0.117 per GB
  • Traffic for responses to requests: the traffic generated when the function sends responses to requests.
    Unit price: USD 0.117 per GB
  • CDN back-to-origin traffic: the traffic generated when the function is used as the origin of Alibaba Cloud CDN.
    Unit price: USD 0.117 per GB

Note:
  • Traffic over the internal network is free of charge.
  • Inbound Internet traffic is free of charge. For example, you are not charged when functions in Function Compute read or download files from the Internet. However, you are charged for the traffic generated when functions write files to storage objects on the Internet.
If you use other Alibaba Cloud services together with your functions, additional fees are charged for these services. For example, if you use a function to write data to Object Storage Service (OSS) or activate Log Service to store the logs of your functions, additional fees for OSS or Log Service are charged.