Usage
Get Voice Usage
An API that allows you to check which voices were used and how much by period, useful for checking voice generation history.
GET
This API queries TTS API usage history for a specified period.
You can understand which voices, including cloned voices, were used for how many minutes.
Please note that dates are based on UTC+0.
Request Parameters
Parameter | Required | Description |
---|---|---|
start_date | ✅ | Inquiry start date (format: YYYY-MM-DD , UTC+0 based) |
end_date | ✅ | Inquiry end date (format: YYYY-MM-DD , UTC+0 based) |
x-sup-api-key | ⭕ | API Key for authentication (included in Header) |
Request Example
Response Example
Tips
- TTS usage aggregation by specific date
- Understanding which characters/styles were used most
- Can be used for monthly budget management or internal reporting logs
Important Notes
- Maximum inquiry period is 30 days.
- If there are no usage records during the period, an empty array is returned.
total_minutes_used
is based on the length of actually generated speech.
Headers
The API key to authenticate and authorize access to the service. This key is required for every request.
Query Parameters
The start date in YYYY-MM-DD format.
Example:
"2024-11-01"
The end date in YYYY-MM-DD format.
Example:
"2024-11-30"
Response
200
application/json
A list of TTS API usage records matching the specified date range.
The response is of type object
.