The pay-as-you-go billing method allows you to pay for resources after they are used. If you use the pay-as-you-go billing method, you pay only for the Function Compute resources that you use. You do not need to purchase resources in advance. This topic describes the resources that support the pay-as-you-go billing method and the settlement rules.
Prices
CU usage is billed monthly on a tiered basis. The following table describes the details.
| Tier | Monthly CU Usage (Unit: CU) | Standard Unit Price | Official Website Discounted Price
Promotion Period: Aug 27, 2024 ~ Aug 27, 2026 |
| --- | --- | --- | --- |
| Tier 1 | (0, 100 million] | USD 0.000020/CU | USD 0.0000160/CU |
| Tier 2 | (100 million, 500 million] | USD 0.000017/CU | USD 0.0000136/CU |
| Tier 3 | > 500 million | USD 0.000014/CU | USD 0.0000112/CU |
CU Conversion Coefficients per Resource Usage
CPU Services
| Billing Item | vCPU Usage | Memory Usage | Function Invocations | Disk Usage | Deep Sleep Storage Usage |
| Unit | CU / (vCPU * second) | CU / (GB * second) | CU / 10,000 times | CU / (GB * second) | CU / (GB * second) |
| Elastic Instance (Active) CU Conversion Coefficient | 1.0 | 0.15 | 75 | 0.05 | 0 |
| Elastic Instance (Light Sleep / Idle) CU Conversion Coefficient | 0 | 0.15 | 0 | 0.05 | 0 |
| Elastic Instance (Deep Sleep) CU Conversion Coefficient | 0 | 0 | 0 | 0 | 0.05 |
Active State
When an elastic instance is in the Active state, charges apply to vCPU, memory, and disk usage. A free tier of 10 GB is provided for disk storage.
Total Fee = vCPU Fee + Memory Fee + Function Call Fee + Disk Fee
Billable Disk Storage = max(0, Disk Allocated - 10) GBIdle State (Shallow Sleep)
When an elastic instance enters Idle (Shallow Sleep), vCPU charges are waived; only memory and disk charges apply. The 10 GB free disk tier still applies.
Total Fee = Memory Fee + Disk Fee
Billable Disk Storage = max(0, Disk Allocated - 10) GBHibernated State (Deep Sleep)
When an elastic instance enters Hibernated (Deep Sleep), both vCPU and memory charges are waived. Charges are billed solely based on the Dormant Storage usage. The 10 GB free disk tier does not apply during this state.
Total Fee = Dormant Storage Fee
Dormant Storage Usage = Memory Allocated × 2 + Disk AllocatedGPU Services
| Resource / Billing Item | Unit | Elastic Instance (Active) CU Conversion coefficient | Elastic Instance (Idle/Shallow Sleep) CU Conversion coefficient |
| Function Calls | CU/10,000 times | 75 | — |
| vCPU Usage | CU / (vCPU * second) | 1 | 0 |
| Memory Usage | CU / (GB * second) | 0.15 | 0.10 |
| Disk Usage | CU / (GB * second) | 0.05 | 0.05 |
| tesla.1 GPU使用量 | CU / (GB VRAM * second) | 2.1 | 0.5 |
| ada.1 GPU使用量 | CU / (GB VRAM * second) | 1.5 | 0.25 |
Billing Granularity
The billing granularity for the execution duration of different instance types is as follows:
| Instance Type | On-Demand Mode | Provisioned Mode |
| CPU Instance | Billed to the nearest 1 millisecond. | Billed in 10-second increments. Usage of less than 10 seconds is rounded up to 10 seconds. Note:For example, if a provisioned CPU instance runs for 51 seconds, it is billed as 60 seconds; if it runs for 61 seconds, it is billed as 70 seconds. |
| GPU Instance | Billed in 1-second increments. Usage of less than 1 second is rounded up to 1 second.Note:For example, if an on-demand GPU instance runs for 51 milliseconds, it is billed as 1 second; if it runs for 10.5 seconds, it is billed as 11 seconds. — | — |
Note
The execution duration refers to the actual execution time of the function. The method for calculating the execution duration varies depending on the instance mode. For details, see Billing Overview.
The billing cycle is 1 hour. Fees are accumulated based on the corresponding billing granularity and settled hourly.
Billing Cycle
Bills are settled hourly. Bills are typically generated 1 to 2 hours after the end of each billing cycle, subject to the actual system generation time.
The billing cycle of Function Compute is 1 hour. Within a billing cycle, the CU usage metered for each function is rounded up to the nearest integer. The CU usage of all functions is then accumulated to obtain the total CU usage. After any deductions from resource plans (if purchased), the total CU usage is used to calculate the total fees for the current billing cycle. Fees will be automatically deducted from your account. You can view the billing details on the Billing Management page.
Important
For functions with more than 0 calls or continuous resource occupation within a single hour, if the hourly CU consumption converted to cash is less than CNY 0.01, a minimum charge of CNY 0.01 will apply. If the actual cost exceeds this amount, you will be billed based on the actual CUs consumed.