Updated on 2024-06-06 GMT+08:00

Pay-per-Use Billing

Application Scenarios

FunctionGraph is suitable for various scenarios, such as real-time file processing, real-time data stream processing, web & mobile application backends, and AI applications.

Billing Items

The price of FunctionGraph consists of the price for requests, price for execution duration, and other fees. For details about each billing item, see Table 1.

Table 1 Billing items

Billing Item

Description

Requests

Total number of times all of your functions are invoked.

Execution duration

The price for execution duration is determined by the execution duration and function memory. FunctionGraph provides reserved and on-demand instances. The billing of these two types of instances is as follows:

  • If no reserved instances are used, FunctionGraph calculates the resource consumption of a function by multiplying the selected memory by the execution duration. The execution duration is calculated from the time when your function code starts to execute to the time when it returns a response or terminates. It is rounded up to the nearest 1s. If the duration is less than 1s, you will be billed for 1s.
  • If reserved instances are used, FunctionGraph calculates the resource consumption of a function by multiplying the selected memory by the execution duration. The execution duration is calculated from the time when instances are successfully created to the time when you call an API to release these instances. Reserved instances that stay alive for less than 1 minute will be billed for 1 minute. Those that stay alive for a longer time will be rounded up to the nearest 1s.

Other fees

Additional charges will apply if other cloud services, such as OBS and SMN, are used with FunctionGraph. For more information, see FunctionGraph Pricing Details.

Billed Usage Period

You pay only for what you use, and there is no minimum charge. FunctionGraph uses tiered pricing and is billed by day. Fees of a day are deducted after 03:00:00 of the next day. For example, the fees generated between May 11, 2023 00:00:00 and May 11, 2021 23:59:59 were deducted at around 03:00:00 of May 12, 2023.

  • "Requests" means the total number of requests for all functions. A request is recorded when a function is executed to respond to an event notification or invocation (including test invocations on the console).
  • If no reserved instances are used, the execution duration is calculated from the time when your function code starts to execute to the time when it returns a response or terminates. Functions are metered by second. If a function runs for less than 1s, you will be billed for 1s. If a function runs for a longer time, you will be billed for the actual duration.
  • If reserved instances are used, the execution duration is calculated from the time when instances are successfully created to the time when you call an API to release these instances. Reserved instances are metered by second. Instances that stay alive for less than 1 minute will be billed for 1 minute, and those that stay alive for a longer time will be rounded up to the nearest 1s. For example, if a reserved instance stays alive for 51s, you will be billed for 60s; if an instance stays alive for 60.5s, you will be billed for 61s.

Impact of Arrears

  • Arrears Reminder

    The system will bill you for pay-per-use resources after each billing cycle ends. If your account goes into arrears, we will notify you by email, SMS, or internal message.

  • Impacts of Arrears

    If your account is in arrears due to automatic fee deduction, you cannot create functions or perform any operations on resources.