Developer quickstart
Learn how to make your first ElevenLabs API request.
The ElevenLabs API provides a simple interface to state-of-the-art audio models and features. Follow this guide to learn how to create lifelike speech, generate and modify voices, produce immersive sound effects, isolate background noise from audio, and seamlessly dub audio/videos.
Create an API key
Create an API key in the dashboard here, which you’ll use to securely access the API.
Store the key as a managed secret and pass it to the SDKs either as a environment variable via an .env
file, or directly in your app’s configuration depending on your preference.
Make your first request
You can either use the REST API directly with the HTTP client of your choice, or use one of our official SDKs as shown below. This guide will use the official SDKs to make requests.
Python
Javascript
The environment variables are loaded automatically when using the SDK, but we need to install the python-dotenv
package to load them.
With the ElevenLabs SDK installed, create a file called example.py
and copy one of the following examples into it:
Text to speech
Voice changer
Sound effects
Voice isolator
Voice design
Dubbing
Execute the code with python example.py
. Within a few seconds you should hear the audio play through your speaker.
Next steps
Now that you’ve made your first ElevenLabs API request, you can explore the following resources: