Endpoints
Get Supported Voice For Audio Models
GET
https://api.oneinfer.ai/v1/ula/get-supported-voice-for-audio-models?model_names=:modelNamesFetch the supported voice_id values for Sarvam TTS models before calling audio generation. This endpoint helps clients dynamically populate valid voices for bulbul:v2 and bulbul:v3.
01Request Parameters
model_namesstring
Comma-separated audio model names. Example: bulbul:v2,bulbul:v3. If omitted, returns all supported voice maps.
Example Request
GET https://api.oneinfer.ai/v1/ula/get-supported-voice-for-audio-models?model_names=bulbul:v3 Authorization: Bearer <YOUR_TOKEN>
02Response
{
"api_details": {
"api_status": "success",
"api_message": "API has returned response successfully."
},
"data": {
"by_model": {
"bulbul:v3": {
"provider": "sarvam",
"default_voice_id": "shubh",
"voice_ids": ["abhilash", "anushka", "manisha", "vidya", "shubh"]
}
},
"unknown_models": []
},
"error": {}
}
Error Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Supported voices fetched successfully. |
| 401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
| 403 | Forbidden | Insufficient credit balance or auth failure. |
| 500 | Internal Server Error | Unexpected error while fetching supported voices. |