Endpoints

Get Supported Voice For Audio Models

GEThttps://api.oneinfer.ai/v1/ula/get-supported-voice-for-audio-models?model_names=:modelNames

Fetch 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

CodeStatusDescription
200OKSupported voices fetched successfully.
401UnauthorizedMissing or invalid Authorization header / Bearer token.
403ForbiddenInsufficient credit balance or auth failure.
500Internal Server ErrorUnexpected error while fetching supported voices.

Response

202 - application/json