Enter a prompt, generate a music track with the ElevenLabs Music API, and play it back in the browser.
-
Copy the environment file and add your API key:
cp .env.example .env
Then edit
.envand paste your ElevenLabs API key. -
Install dependencies:
pnpm install
The Music API is currently available to paid ElevenLabs users.
pnpm run devOpen http://localhost:3000 in your browser.
- Enter the kind of music track you want to generate.
- Click Generate music.
- Wait for the request to finish, then play or download the generated track from the page.