Help Center/ EventGrid/ Billing/ Billing Modes/ Pay-per-Use Billing
Updated on 2025-05-07 GMT+08:00

Pay-per-Use Billing

Pay-per-use allows you to use resources before paying for them. It is recommended when you do not want to pay in advance or do not need the resources for long. This section describes the billing rules of EG.

Scenario

Pay-per-use billing is suitable for EG to filter, route, and transform events.

Billed Item

EG is billed based on the number of events. For details about the pay-per-use billing item, see Table 1.

Table 1 Billing item

Billing Item

Description

Requests

You will be billed based on the number of requests, which means the total invocations of all events.

Billing Cycle

You pay only for what you use, and there is no minimum charge. EG 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.

  • Standard pricing: The price is calculated based on the pricing basis and the resources you use, how long you use them, or how many times you use them. The price is accurate to two decimal places.
  • Tiered pricing: For services such as OBS, pricing is tiered, which means the more you use, the less you pay. The price is calculated based on the amount of resources you use and the pricing basis. The price is accurate to two decimal places.
  • For pay-per-use billing, decimal numerals on the price calculator are rounded off and are accurate to two decimal places. If the amount is less than ¥0.01 after rounding off, the amount is displayed as ¥0.01.

Impact of Arrears

Figure 1 shows the statuses a pay-per-use EG resource can have throughout its lifecycle. After an EG resource is purchased, it enters the valid period and runs normally during this period. If your account goes into arrears, the EG resource enters a grace period and then a retention period.

Figure 1 Lifecycle of a pay-per-use EG resource
  • Impacts of Arrears

    When your account is in arrears due to automatic fee deduction, the account status turns to arrears. EG will not stop immediately but enter the grace period. You are still responsible for expenditures generated during the grace period. You can view the charges on the Billing Center > Overview page and pay any past due balance as needed.

    If you do not pay the arrears within the grace period, the resource enters the retention period and its status turns to Frozen. You cannot perform any operations on resources in the retention period.

    After the retention period expires, if you still have not paid the account arrears, the resources will be released and the data cannot be recovered.