Updated on 2023-08-31 GMT+08:00


FunctionGraph uses pay-per-use billing, and the price is calculated based on the number of requests and execution duration. There are no minimum charges required.

Total price = Price for requests + Price for execution duration

Common Instance Billing

Price for requests

  • You will be billed based on the number of requests, which is the total number of times all functions are invoked.
  • The first 1 million requests every month are free of charge. After the 1 million free requests are used up, you will be billed based on the rates specified in "FunctionGraph Pricing Details".

Price for execution duration

FunctionGraph provides reserved and on-demand instances, which are metered differently.

  • Reserved instances: See Reserved Instance Billing.
  • On-demand instances: This type of instance is created and released by FunctionGraph, and you will be billed based on the actual execution duration. The execution time is from the time your function code starts to execute to the time when it returns a response or terminates.

Additional charges

Additional charges will be generated if other cloud services are used with FunctionGraph. For more information, see "FunctionGraph Pricing Details".

Reserved Instance Billing

You can create and release reserved instances and will be billed based on their execution duration. Reserved instances stay alive in the execution environment, eliminating the influence of cold starts on latency.
  • If you call an API to create a reserved instance, billing will begin as soon as the reserved instance creation is complete.
  • If you call another API to release a reserved instance, new requests will not be routed to the reserved instance. The reserved instance will be released within a certain period, and the billing will stop.
    Figure 1 Life cycle of a reserved instance

    As shown in Figure 1, the billing lasts from T1 to T4.

    Reserved instances are metered at a granularity of second. If a reserved instance runs for any fraction of a minute, you will be billed for the full minute. Otherwise, you will be billed based on the actual execution duration.

    For example, if a reserved instance runs for 51s, you will be billed for 1 minute. If the reserved instance runs for 61s, you will be billed for 61s.

  • The unit of execution duration is GB-second, which means 1 GB per second.

Free Tier

FunctionGraph offers a free tier, which you can share with your IAM users.

  • Requests: 1 million free requests every month.
  • Execution duration: 400,000 GB-seconds free execution every month. For example, if the memory for a function is 1 GB, the free execution duration every month is 400,000s. If the memory is 512 MB, the free execution duration is 800,000s.

    The free tier is reset at the beginning of every calendar month.

    Table 1 shows the free execution duration for different memory specifications.
    Table 1 Free execution duration

    Memory (MB)

    Free Execution Duration (s) per Month
















    1024 x 400,000/N

  • Flow node executions: 5000 free executions per month.


To renew the subscription, choose Renewals on the management console. For details, see Renewal Management.

Expiration and Overdue Payment

If your account is in arrears, you can view the arrears details in the Billing Center. To prevent related resources from being stopped or released, top up your account at the earliest. For details, see Making Repayments (Postpaid Direct Customers).