v5
OpenAPI 3.1.02026-08-043621,4011.8 MBText To Speech Streaming
Converts text into speech using a voice of your choice and returns audio as an audio stream.
Path parameters
Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
Voice ID to be used, you can use https://api.elevenlabs.io/v1/voices to list all the available voices.
Query parameters
When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers.
When enable_logging is set to false zero retention mode will be used for the request. This will mean history features are unavailable for this request, including request stitching. Zero retention mode may only be used by enterprise customers.
You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values: 0 - default mode (no latency optimizations) 1 - normal latency optimizations (about 50% of possible latency improvement of option 3) 2 - strong latency optimizations (about 75% of possible latency improvement of option 3) 3 - max latency optimizations 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates).
Defaults to None.
You can turn on latency optimizations at some cost of quality. The best possible final latency varies by model. Possible values: 0 - default mode (no latency optimizations) 1 - normal latency optimizations (about 50% of possible latency improvement of option 3) 2 - strong latency optimizations (about 75% of possible latency improvement of option 3) 3 - max latency optimizations 4 - max latency optimizations, but also with text normalizer turned off for even more latency savings (best latency, but can mispronounce eg numbers and dates).
Defaults to None.
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
Output format of the generated audio. Formatted as codec_sample_rate_bitrate. So an mp3 with 22.05kHz sample rate at 32kbs is represented as mp3_22050_32. MP3 with 192kbps bitrate requires you to be subscribed to Creator tier or above. PCM with 44.1kHz sample rate requires you to be subscribed to Pro tier or above. Note that the μ-law format (sometimes written mu-law, often approximated as u-law) is commonly used for Twilio audio inputs.
Headers
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.
Request body
Example request
{
"text": "This is a test for the API of ElevenLabs.",
"voice_settings": {
"similarity_boost": 1,
"speed": 1,
"stability": 1,
"style": 0,
"use_speaker_boost": true
},
"pronunciation_dictionary_locators": [
{
"pronunciation_dictionary_id": "test",
"version_id": "id2"
}
],
"seed": 12345,
"previous_text": "In the heart of a lush valley surrounded by towering mountains lies the quaint village of Willowbrook.",
"next_text": "The Willowbrook Festival, held every spring, celebrates the blossoming of the wild bluebells that carpet the nearby forest floors, creating a breathtaking sea of blue under the canopy of fresh green leaves.",
"previous_request_ids": [
"09bOJkdYVjKy2oOiiVtR",
"0p2uKqOnZyce22SPZ9d5",
"1KYvY8WZAKmcjCJ1mvVB"
],
"next_request_ids": [
"3tPgBrD1UdW3snUkGw1K",
"4D1jAxiRFkolBNUGzXkU",
"4c8Z4aWliVR2oipYRXhj"
],
"use_pvc_as_ivc": true,
"apply_language_text_normalization": true
}Response
Streaming audio data