Updated on 2023-11-07 GMT+08:00

Billing Examples

Billing Scenario

A user created a symmetric key at 14:25:00 on May 18, 2023 and used the key to encrypt OBS. During the use of the key, 164,573 API requests were generated. The user stopped using the key and deleted it at 16:14:00 on June 29, 2023.

So how much will the user be billed in May and June?

Billing Analysis

  • Charging by key duration

    May 18, 2023, 14:25:00 to June 29, 2023, 16:14:00 The charging formula is as follows:

    Duration fee = Storage duration x Key instance fee

    In this example, the duration is 42 days, 1 hour, and 49 minutes. Duration = 42 x 24 + 1.82 = 1009.82 hours. The duration fee is calculated as follows: 1009.82 x 0.0014 = $1.41 USD.

  • Charging for API requests

    Request fees generated by calling the API

    API request fees = (Number of API requests - 20,000 x Number of requests in a month)/10,000 x API request fees

    In this example, the total number of API calls is 164,573. The first 20,000 times of API calling is free of charge each month from May to June. The API request fee is calculated as follows: (164,573 – 20,000 x 2)/10,000 x 0.03 (per 10,000 API calls) = $0.37 USD.

From May to June, the total price of DEW is 1.41 + 0.37 = $1.78 USD.