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 in excess of the free tier and basic package. 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).
Note:After three months of activation of SCF, you will no longer be entitled to a free tier, and the system will grant a basic package tier and automatically deduct 1.8 USD (by deducting 0.06 USD per day) every month. If you have activated SCF for less than three months and are entitled to a free tier or have valid packages or remaining resource packs, or the function resource usage, number of invocations, and public network outbound traffic in the last calendar month are all 0, the system will not deduct the basic package fees.
Event-Triggered Function | HTTP-Triggered Function |
---|---|
|
|
For the unit prices of resource usage, invocations, public network outbound traffic, idle provisioned concurrency, and basic package, see Pricing.
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 and basic package are configured. Below is an example:
Scenario | Function Execution Status | Billable Usage | 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 |
Was this page helpful?