Latenode

Automate Text-to-Speech with ElevenLabs API and Save Audio Files

This Latenode automation template provides a convenient API endpoint to generate high-quality text-to-speech audio using the ElevenLabs API.

Users can trigger the workflow by sending a POST request to the webhook with the desired voice ID and text, and the template will handle the API call to ElevenLabs and return the generated audio file. This solution is particularly useful for video producers, content creators, and anyone who needs to quickly convert written content into spoken audio.

Updated Apr 2, 2026Est. run: 8sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runs in credits: 1 credit = 30 seconds of processing. Minimum charge per run depends on your plan. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how credits work →
Video, audio & media

Workflow preview

What this template does

  • Receives text input and voice ID from a webhook
  • Sends the text and voice ID to the ElevenLabs API
  • Retrieves the generated audio file from ElevenLabs
  • Saves the audio file to a specified storage location
  • Returns the download URL of the saved audio file

How it works

1
Trigger

Receive POST request with text and voice ID

The workflow is triggered by a POST request to the webhook endpoint, which includes the desired text to be converted to speech and the voice ID for the ElevenLabs API.

2
Action

Generate Speech

The template makes an HTTP request to the ElevenLabs API, passing the provided text and voice ID. The API generates a high-quality audio file from the text.

3
Action

Handle Response

The generated audio file is returned from the ElevenLabs API. The template can then save the audio file to a specified storage location, making it available for further use.

Setup guide

1

Add ElevenLabs API Key Credential

Add your ElevenLabs API key as a credential in the Latenode Credentials panel. This will allow the workflow to securely access the ElevenLabs API to generate speech audio.

2

Configure Webhook Node

Add a Webhook node to the workflow and configure it to receive POST requests. This will be the entry point for users to trigger the text-to-speech generation.

3

Validate Input Parameters

Add an HTTP Request node after the Webhook node. Configure it to check if the required `voice_id` and `text` parameters are present in the incoming webhook request.

4

Generate Speech Audio

Add a JavaScript node after the input validation step. In this node, use the ElevenLabs API credential and the input parameters to make a POST request to the ElevenLabs API and retrieve the generated speech audio file.

5

Return Generated Audio

Add a final node to the workflow that will return the generated speech audio file as the response to the initial webhook request.

Requirements

Obtain an ElevenLabs API key from the ElevenLabs website
Configure the API key in the Latenode workflow as a secure variable
Ensure the Latenode workflow has the HTTP Request and Code nodes enabled
Provide the desired text-to-speech content as input when triggering the Latenode workflow

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →
Video, audio & media

Automatically upload YouTube videos with AI-generated metadata

This workflow automates the process of uploading videos to YouTube, including generating optimized metadata such as titles, descriptions, and tags using AI-powered analysis of video transcripts. It monitors a designated Google Drive folder for new video uploads, automatically retrieves the videos, uploads them to YouTube, and applies the generated metadata without manual intervention. The workflow is designed for content creators, marketing teams, and channel managers who want a simple, hands-off solution to upload videos and automatically generate optimized metadata.

15s$0.0009
Video, audio & media

Automate Google Drive to YouTube video publishing

This automation allows users to easily upload new videos from their Google Drive folders to their YouTube channel. It works by monitoring a specified Google Drive folder for any new video files, and then automatically uploading those files to the user's connected YouTube channel. This integration simplifies the process of sharing video content across the two platforms, saving users time and effort. The key steps involved are: 1) Detecting new video files in a Google Drive folder, and 2) Uploading those files to the user's YouTube channel with the option to customize metadata like title and description.

7s$0.0004
Video, audio & media

Automatically sync new YouTube channel videos to an RSS feed

This automation allows users to monitor a specific YouTube channel for new video uploads and automatically generate an RSS feed containing the video details. The feed can then be used in feed readers or other automation tools to stay up-to-date on the latest content from the YouTube channel. The workflow involves a 'New Video in Channel' trigger that watches for new videos, and a 'Create Item in Feed' action that generates a new feed item with the video's title, description, and source URL. This integration leverages YouTube and Zapier's RSS functionality to provide a convenient way for users to track and distribute their YouTube channel's content.

9s$0.0006