Skip to main content
ElevenLabs turns text into incredibly lifelike speech. With 1,000+ voices across 26+ languages, your Voice Studio app can offer a seriously impressive text-to-speech experience. Let’s get it set up.

Get your API key

1

Create or sign into your ElevenLabs account

Head to ElevenLabs and sign up or log in.
2

Find your API key

Go to your Profile Settings and locate your API key.
3

Add it to your env

Paste the key in your .env.local file:
ELEVENLABS_API_TOKEN=your_elevenlabs_token
Keep your API key safe. Don’t share it or commit it to version control.

App using ElevenLabs

The Voice Studio app at /apps/voice uses the ElevenLabs API to generate high-quality speech from text.

Voice Studio

Convert text to lifelike speech using 26+ languages and over 1,000 voices

Features

Here’s what you get with ElevenLabs in your app:
  • 1,000+ voices from the ElevenLabs Voice Library — your users have plenty to choose from
  • 26+ languages supported out of the box
  • Fine-tuning controls — adjust stability, similarity, and style to get the perfect audio output
  • Cloud storage — generated audio is uploaded to Cloudflare R2 storage automatically
  • Database tracking — generation data is stored in the generations table in PostgreSQL
  • Credit usage — each generation reduces the user’s credits (configurable in toolConfig.ts)
The voice fine-tuning settings (stability, similarity, style) let your users really dial in the output. Higher stability gives more consistent results, while lower stability adds more expressiveness and variation.

Structure

Understand the full project structure of the codebase.