Pay-As-You-Go

Last updated: 2020-10-16 16:19:31

    Billing Mode

    API Gateway supports different billing modes. This document describes the default pay-as-you-go billing mode.

    Billable Item Description

    Billable items of API Gateway include call fees and traffic fees as shown below:

    Note:

    • If you use the private network API Gateway service, both the outbound and inbound traffic generated on the private network is free of charge.
    • If you use the public network API Gateway service, the public network inbound traffic will be free of charge, while the public network outbound traffic will incur traffic fees. For more information on the specific traffic fees, please see the "Traffic Fees" section below.

    Call fees

    Tier Monthly Accumulative Excessive Calls (N) Unit Price (USD/10,000 Calls)
    Free tier The first one million calls in each calendar month in the first year are free of charge 0
    Tier 1 1 million < N ≤ 10 million 0.0089
    Tier 2 10 million < N ≤ 100 million 0.0059
    Tier 3 N > 100 million 0.0045

    Traffic fees

    Region Unit Price (USD/GB)
    Mainland China, Singapore, Seoul, Frankfurt, Moscow, and Tokyo 0.12
    Hong Kong (China) 0.15
    Toronto, Silicon Valley, Virginia, Bangkok, and Mumbai 0.074

    Billing description

    • Billable item: API calls
    • Billing mode: pay-as-you-go
    • Billing cycle: hourly
    • Bill generation time: Tencent Cloud generates hourly bills for API calls, typically within 30 minutes after the end of the current billing cycle. After a bill is generated, the fees will be automatically deducted from the account balance for settlement. If your account balance is insufficient to make the payment, your account will fall into arrears
    • Deduction method: after a bill is generated, the fees will be automatically deducted from your account balance for settlement
    • Billing currency: USD
    • Effective calls: number of effective API call requests received by API Gateway. A request that is not a frontend error will be considered as an effective call and billed

    After the API Gateway service is activated, the first one million calls in each calendar month in the first year are free of charge, and excessive calls will be billed at the tiered prices.

    Traffic fees

    Traffic fees are calculated based on the accumulated traffic. The traffic billable items and their descriptions are as shown below:

    Billable Item Meaning Billing Description
    Private network outbound traffic Traffic generated by data transferred from API Gateway to the backend business over the Tencent Cloud private network Free of charge
    Private network inbound traffic Traffic generated by data transferred from the client to API Gateway over the Tencent Cloud private network Free of charge
    Public network outbound traffic Traffic generated by response data returned from API Gateway after data is transferred from the client to API Gateway over the internet It is billed hourly and calculated by multiplying the unit price of each GB by the accumulative outbound traffic in an hour. For more information on the unit price, please see Public Network Billing Mode (Bill-by-Traffic)
    Public network inbound traffic Traffic generated by data transferred from the client to API Gateway over the internet Free of charge

    Traffic direction

    Billing description

    • Billable item: traffic (public network outbound traffic)
    • Billing mode: pay-as-you-go
    • Billing cycle: hourly
    • Bill generation time: a bill is generally generated in one hour after the current billing cycle ends.
    • Deduction method: after a bill is generated, the fees will be automatically deducted from your account balance for settlement
    • Billing currency: USD

    If your backend business and API Gateway are in different regions, or the backend business is not in Tencent Cloud, the fees generated by the traffic from API Gateway to your backend business will be billed additionally according to Traffic Fees.

    Billing Example

    Billing for the Guangzhou region is as shown in the following example:
    The backend business is in a different region from API Gateway and receives five million API calls accumulatively in a month, each of which returns a response of about 3 KB in size, and the size of each request of data forwarded from API Gateway to the backend business is 1 KB.

    • API Gateway call fees = 5 million * 0.0089 USD/10,000 calls = 4.45 USD
    • Total data transfer volume = 5 million * 3 KB = 15 million KB = 14.3 GB
    • Total additional data transfer volume = 5 million * 1 KB = 5 million KB = 4.77 GB
    • Total data transfer fees = 14.3 GB * 0.12 USD/GB + 4.77 GB * 0.12 USD/GB = 2.29 USD
    • Total fees = 4.45 USD + 2.29 USD = 6.74 USD

    Notes

    • For more information on arrears processing in API Gateway, data retention and purge schedule, and billing descriptions, please see Notes on Arrears.
    • The WebSocket API will incur public network outbound traffic fees only.

    This pricing document is for reference only. See your bill for the actual price.

    Was this page helpful?

    Was this page helpful?

    • Not at all
    • Not very helpful
    • Somewhat helpful
    • Very helpful
    • Extremely helpful
    Send Feedback
    Help