Updated on 2024-05-21 GMT+08:00

Billing Examples

Billing Scenario

At 15:30:00 on March 18, 2023, a user subscribed to the General Text OCR API in the CN-Hong Kong region.

After successfully calling it 5,000 times, the user found that the service met their business needs and decided to continue using it long-term. At 10:30:00 on March 20, 2023, the user switched to pay-per-use billing for General Text OCR (120 USD for 100,000 API calls) for a duration of one year. Within that year, the user can make up to 100,000 successful calls. How much will the service cost between March 18, 2023 at 15:30:00 and March 20, 2024 at 23:59:59?

Billing Analysis

The usage of General Text OCR can be divided into two billing periods: pay-per-use billing from March 18, 2023 at 15:30 to March 20, 2023 at 10:30, and package billing from March 20, 2023 at 10:30 to March 20, 2024 at 23:59:59.

Figure 1 Pricing details

Pay-per-use

From 15:30:00 on March 18, 2023 to 10:30:00 March 20, 2023, the user was charged 5,000 times. The fee is calculated as follows:

5,000 x 0.0015 = 7.5 USD

Package

From 10:30:00 on March 20, 2023 to 23:59:59 on March 20, 2024, the user was charged for 100,000 successful API calls on a package basis. The fee is 120 USD.

Therefore, the total cost of the service between 15:30:00 on March 18, 2023 to 23:59:59 on March 20, 2024 is 127.5 (7.5+120) USD.