Setup API Billing

We prioritize price transparency and ensure there are no surprises for API users and providers. Our fair and flexible pricing model can accommodate API providers' diverse needs. With real-time spending, earnings, API call logs, and billing statements, you have complete visibility and control over your finances and usage.

Billing Mechanisms

The billing currency is USD. Only status codes 200, 201, and 202 are considered successful responses and billable. All billing data and calculations use high-precision numbers, with rounding only when needed.

There are three billing metrics: requests, inbound, and outbound. Requests are the counts of successful API calls. For both inbound and outbound, we can base on bytes, tokens, and duration. The duration is not the API call duration; it is the duration of the media file included. The media files are typical mp3 voice or mp4 videos.

MechanismsVariablesAvailable Units
requestsrate_by_request, rate_by_request_unit1000 requests
inboundrate_by_inbound, rate_by_inbound_unitper 1,000 bytes, per 1,000 tokens, per 60 seconds duration
outboundrate_by_outboud, rate_by_outboud_unitper 1,000 bytes, per 1,000 tokens, per 60 seconds duration

You can use more than one billing metric simultaneously.

Minimun and Maximun

Per request, all APIs must charge a minimum and maximum. This is an important part of the pricing transparency effort. The charge for an API call will either be the calculated amount based on the billing mechanisms or the minimum or maximum if it falls outside this range.

Cost Calculator

The Cost Calculator is an interactive tool designed for API providers to simulate the impact of different billing mechanisms, including minimum and maximum charges, on their fees per 1000 API calls. API users can also utilize this tool to estimate costs for 1000 API calls. We calculate the average charge to provide a preliminary cost estimate. When actual data is available, the cost is recalculated to reflect more accurate pricing.

Was this page helpful?