Use this powerful n8n workflow template to create an instant Text-to-Speech API endpoint using Elevenlabs. Automate audio generation and streamline your content creation using this robust n8n node configuration.
Download this n8n workflow template and start using it instantly.
Content creators needing on-demand voice generation.
Developers looking for a fast, customizable Text-to-Speech API endpoint built using n8n.
Users who want to utilize the Elevenlabs service without writing custom server code.
Anyone interested in advanced HTTP Request setups within an n8n workflow.
This n8n workflow solves the problem of needing a dedicated backend service to handle text-to-speech conversions via the Elevenlabs API. By utilizing a simple Webhook n8n trigger, this automation instantly provides a high-performance endpoint. When triggered with the necessary text and voice ID, the n8n node executes the API call, and crucially, returns the generated binary audio file directly to the caller. This structure makes the n8n workflow perfect for integrating automated voice generation into larger applications, streamlining video production, and ensuring efficient use of the Elevenlabs service. It's a prime example of leveraging n8n templates for rapid development.
This efficient n8n workflow operates entirely via a dedicated API endpoint:
generate-voice). The incoming request must contain voiceid and text parameters in the body.voiceid and text) are present in the webhook body. If either is missing, the automation is diverted to the 'Error' n8n node.voice_id and includes the text payload in the JSON body. Crucially, it uses custom HTTP authentication to pass the required API key.To set up this powerful n8n workflow template, follow these steps:
your-elevenlabs-api-key with your actual key:{
"headers": {
"xi-api-key": "your-elevenlabs-api-key"
}
} Save these credentials and link them to the 'Generate voice' n8n node.YOURN8NURL/webhook/generate-voice) with a JSON body containing voice_id and text to test the full flow. Webhook (n8n trigger):
Function: Serves as the initiation point for this n8n workflow.
Key Configuration: Configured to listen for POST requests at the path /generate-voice and uses Response Mode: Response Node.
If params correct (n8n node):
Function: Core logic control. Ensures that the incoming JSON payload contains both the required fields: voiceid and text.
Key Configuration: Checks for existence (exists operator) of both parameters.
Generate voice (HTTP Request n8n node):
Function: Communicates with the external Elevenlabs API to convert text into speech.
Key Configuration: URL dynamically uses voiceid; Request body dynamically uses text. Authentication is set to the custom HTTP Auth credential containing the xi-api-key.
Respond to Webhook (Success n8n node):
Function: Successfully terminates the execution and returns the result.
Key Configuration: Set to respond with binary, ensuring the generated audio file is passed back to the user.
Use this comprehensive n8n workflow to generate text via the IBM Granite Speech 3.3 8B model on Replicate. Features robust API polling logic using custom n8n nodes.

Learn how to use this n8n workflow to generate dynamic placeholder images from the DummyJSON API using the HTTP Request n8n node. Perfect for developers and marketers.

Generate high-quality video content from text prompts using the Bytedance Seedance 1 Pro model. This n8n workflow features essential polling logic for asynchronous AI tasks.

Instantly generate text-to-video or image-to-video content using the Bytedance Seedance 1 Lite model and Replicate. This advanced n8n workflow handles asynchronous polling seamlessly.

🎉 Do you want to master AI automation, so you can save time and build cool stuff? I’ve created a welcoming Skool community for non-technical yet resourceful learners.







































