Pay-As-You-Go (Postpaid)

Last updated: 2022-01-04 16:54:11

    Billing Mode

    You can estimate your SCF usage and calculate the corresponding fees by using the SCF Price Calculator. For more information on SCF billing, see Pricing and Notes on Overdue Payment.

    SCF is pay-as-you-go hourly in USD based on your actual usage. An event-triggered or HTTP-triggered function bill consists of the following parts (each part is billed according to its statistics and calculation method, and the fees are accurate to two decimal places in USD).

    Event-Triggered Function HTTP-Triggered Function
  • Resource usage fees
  • Invocation fees
  • Public network outbound traffic fees
  • Idle provisioned concurrency fees
  • Resource usage fees
  • HTTP-Triggered function invocation fees
  • Public network outbound traffic fees
  • Idle provisioned concurrency fees
  • For the unit prices of resource usage, invocations, public network outbound traffic, and idle provisioned concurrency, see Pricing.

    Billing Principles

    SCF fees will be incurred by the actual loading and execution of the function code. If the function code is not actually executed, no fees will be incurred unless provisioned concurrency is configured. Below is an example:

    Scenario Function Execution Status Calculated Billed
    A request error occurs due to an incorrect parameter, incorrect function name, or non-existent function. Not executed No No
    An error occurs due to function execution timeout or function execution memory overrun. Executed Yes Yes
    An error occurs due to a function code problem. Executed Yes Yes
    A request error occurs due to concurrency overrun. Not executed No No