ElevenLabs
Convert TTS using ElevenLabs
ElevenLabs is a state-of-the-art text-to-speech (TTS) platform with lifelike, expressive voices. Use it to turn agent outputs into natural audio for assistants, IVRs, demos, accessibility features, and more.
Quick Setup
1) Get your API key
- Sign in at elevenlabs.io.
- In the left sidebar, open the Developers tab.
- Go to API Keys → Create / View.
- Copy your API key and store it securely (you’ll paste this into the block’s
apiKey).
2) Find your Voice ID
There are two easy ways:
-
From the ElevenLabs UI
- In the left sidebar, open the Voices tab.
- Click a voice from your library or the VoiceLab.
- Copy the Voice ID shown in the voice details panel (or from the voice URL/details modal if available).
-
From the API (optional)
- Call the “List Voices” endpoint to retrieve available voices and copy the
voice_idyou want to use.
- Call the “List Voices” endpoint to retrieve available voices and copy the
Make sure the voice you pick is included in your current plan (premium/pro voices may require higher tiers).
Usage Instructions
Use the ElevenLabs block to generate speech from text. Provide:
text— the content you want spokenvoiceId— a voice available to your planapiKey— your ElevenLabs API key- (optional)
modelId— defaults toeleven_monolingual_v1
The block returns an audioUrl pointing to the generated audio.
Tools
elevenlabs_tts
Convert text to speech using an ElevenLabs voice.
Input
| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The text to convert to speech. |
voiceId | string | Yes | The target voice ID (must be available to you). |
modelId | string | No | Model to use. Default: eleven_monolingual_v1. |
apiKey | string | Yes | Your ElevenLabs API key. |
Output
| Parameter | Type | Description |
|---|---|---|
audioUrl | string | URL of the generated audio file. |
Screenshot

Troubleshooting
Common error
Error generating speech: Request failed with status 400
Likely causes
- The voice is not available on your current plan (e.g., premium/proprietary voice requiring a higher tier).
- Insufficient credits in your ElevenLabs account.
- A required input is missing or malformed (
text,voiceId, orapiKey). - The
modelIdis invalid for your account/region. - The text violates provider content rules or exceeds internal limits.
How to fix
- Check plan & credits: In ElevenLabs, confirm your subscription tier and remaining credits. Either switch to a voice your plan supports or upgrade your plan.
- Validate inputs: Ensure
textis non-empty,voiceIdis correct, and the API key is valid. - Try default model: Omit
modelId(use default) or switch back toeleven_monolingual_v1. - Shorten or sanitize text: Trim very long inputs or remove problematic characters.
- Test another voice: Pick a standard voice you know your plan includes from the Voices tab.
If errors persist, re-copy the API key from Developers → API Keys and test with a known supported voice from Voices.
Best Practices
- Keep text concise: Very long inputs can increase latency and cost.
- Choose voices by use case: Narration vs. assistant voices, multilingual needs, etc.
- Cache stable audio: If you reuse the same text/voice often, store the generated audio to save credits.
- Handle fallbacks: If a preferred voice fails, retry with a standard voice available to all tiers.
Notes
- Category:
tools - Type:
elevenlabs - Requires a valid API key (Developers tab) and a Voice ID (Voices tab).