ElevenLabs text-to-speech with selectable voice and model.
Authenticate with the X-API-Key request header.
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| text | string | required | Text to synthesize (max 5000 chars). | — |
| voice_id | string | optional | ElevenLabs voice id. | — |
| tts_model | string | optional | TTS model id (eleven_multilingual_v2, eleven_turbo_v2_5, eleven_v3, eleven_flash_v2_5). | default: eleven_v3 |
| voice_settings | object | optional | Voice tuning: { stability 0-1, similarity_boost 0-1, style 0-1, use_speaker_boost, speed }. | — |
| output_format | string | optional | Audio output format (e.g. mp3_44100_128, pcm_24000). | default: mp3_44100_128 |
| language_code | string | optional | ISO 639-1 language code to enforce. | — |
| seed | number | optional | Deterministic sampling seed (0-4294967295). | — |
| previous_text | string | optional | Preceding text for prosody continuity. | — |
| next_text | string | optional | Following text for prosody continuity. | — |
| apply_text_normalization | string | optional | Text normalization mode: auto, on, off. | default: auto |
curl -X POST https://brahmand-api.bulletshorts.co/v1/audio/elevenlabs \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello from Trinetra Brahmand.","voice_id":"Rachel"}'{
"text": "Hello from Trinetra Brahmand.",
"voice_id": "Rachel"
}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.
{
"job_id": "job_elevenlabs_a1b2c3",
"status": "queued"
}{
"id": "job_elevenlabs_a1b2c3",
"model": "elevenlabs",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/elevenlabs/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.