Retrieve All Voice Locales
GET
https://api.konpro.ai/v1/voices/localesThis endpoint provides the complete list of supported voice locales, detailing language, region, display labels, and locale codes. Use this to determine which voice options are available for your project's language and regional needs.
Request History
Log in to see full request history
| TIME | STATUS | USER AGENT |
|---|---|---|
| Make a request to see history. | ||
0 Requests This Month
cURL Request
shell
curl --request GET \
--url https://api.konpro.ai/v1/voices/locales \
--header 'accept: application/json' \
--header 'x-api-key: <your-api-key>'Response
Response Structure
Returns an array of locale objects. Each object includes specifics for country, language identifier, and optional tags for further categorization.
| Field | Type | Description |
|---|---|---|
| value | string | Full name of the locale (e.g., "Portuguese (Brazil)") |
| label | string | Short label for quick reference (e.g., "PT-BR") |
| language | string | Associated spoken language (e.g., "Portuguese") |
| tag | string | Optional tag or marker (null if not given) |
| locale | string | Locale identifier (e.g., "pt-BR") |
| language_code | string | Combined language and region code (e.g., "pt-BR") |
Sample Successful Response
json
{
"data": {
"locales": [
{
"value": "Portuguese (Brazil)",
"label": "PT-BR",
"language": "Portuguese",
"tag": null,
"locale": "pt-BR",
"language_code": "pt-BR"
}
]
}
}Usage Notes
- Authentication with your API key is required.
- Only locales supported by your KonPro account and selected voices will be shown.
- Use the label and locale fields for configuring voice selection in video and audio generation.
Example Usage
Shell
curl --request GET \
--url https://api.konpro.ai/v1/voices/locales \
--header 'accept: application/json' \
--header 'x-api-key: <your-api-key>'LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Result
400 - Result
LANGUAGE
CREDENTIALS
HEADER
RESPONSE
Examples
Choose an example:
application/json
200 - Result
400 - Result