← Back to catalog

Sarvam TTS

Live
audiotts

Sarvam multilingual Indian-language text-to-speech.

Endpoint

POSThttps://brahmand-api.bulletshorts.co/v1/audio/sarvam-tts

Authenticate with the X-API-Key request header.

Pricing

3 credits / 1k chars1 credit = ₹1. Billed on success: per character.

List price. Volume / bulk customers get a discounted rate — contact us for account pricing.

Parameters

NameTypeRequiredDescriptionDefault / options
textstringrequiredText to synthesize.
language_codestringoptionalBCP-47 language code.
default: hi-IN
speakerstringoptionalSpeaker/voice name.
modelstringoptionalTTS model name.

Request

curl
curl -X POST https://brahmand-api.bulletshorts.co/v1/audio/sarvam-tts \
  -H "X-API-Key: $TRINETRA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"नमस्ते, आपका स्वागत है।","language_code":"hi-IN"}'
request body (JSON)
{
  "text": "नमस्ते, आपका स्वागत है।",
  "language_code": "hi-IN"
}

Response

Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.

202 Accepted
{
  "job_id": "job_sarvamtts_a1b2c3",
  "status": "queued"
}
GET /v1/jobs/{id} → succeeded
{
  "id": "job_sarvamtts_a1b2c3",
  "model": "sarvam-tts",
  "status": "succeeded",
  "output": {
    "outputs": [
      {
        "url": "https://cdn.trinetra.ai/out/sarvam-tts/a1b2c3.mp3",
        "type": "audio"
      }
    ]
  },
  "credits_charged": 10
}

Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.