ElevenAPI quickstart
By the end of this guide you will have a working script that sends a text string to the ElevenLabs API and plays the returned audio through your speakers. You will learn how to authenticate with an API key, install the SDK, and make your first text-to-speech request.
For guides covering other capabilities — streaming, voice cloning, speech-to-text — see the Tutorials section.
Use the ElevenLabs text-to-speech skill to generate speech from your AI coding assistant:
Using the Text to Speech API
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.