music
Installation
SKILL.md
ElevenLabs Music Generation
Generate music from text prompts - supports instrumental tracks, songs with lyrics, and fine-grained control via composition plans.
Setup, before writing any code: if
ELEVENLABS_API_KEYisn't set for this project, runnpx -y @elevenlabs/cli@latest onboard initfrom the app's folder first and follow what it prints: it signs the user in and stores a key for the project, so nobody copies one by hand. Otherwise see the Installation Guide. For JavaScript, use@elevenlabs/*packages only.
All examples below use music_v2_5, the most advanced generation model. Pass music_v2 or
music_v1 only when an older model is explicitly requested.
Quick Start
Python
from elevenlabs import ElevenLabs
client = ElevenLabs()