ElevenLabs Music Generation
Generate complete songs from text prompts with AI-generated lyrics and vocals.
Quick Start
# Basic generation (30 seconds)
uv run {baseDir}/scripts/generate_music.py "upbeat jazz piano"
# Longer track (3 minutes)
uv run {baseDir}/scripts/generate_music.py "epic orchestral battle music" --length 180
# Instrumental only (no vocals)
uv run {baseDir}/scripts/generate_music.py "lo-fi hip hop beats" --length 120 --instrumental
# Custom output path
uv run {baseDir}/scripts/generate_music.py "romantic bossa nova" -o /tmp/bossa.mp3
Options
| Flag |
Description |
-l, --length |
Duration in seconds (3-600, default: 30) |
-o, --output |
Output file path (default: /tmp/music.mp3) |
-i, --instrumental |
Force instrumental, no vocals |
Prompt Engineering Tips
Be Specific About Style
- Include genre, mood, tempo, and instruments
- Reference decades or eras: "90s Brazilian romantic pagode", "1960s sci-fi TV theme"
- Describe energy: "builds from soft to explosive", "relaxed and intimate"
For Vocals
- Specify language: "vocals in Portuguese", "singing in Japanese"
- Describe vocal style: "soulful male vocals", "ethereal female choir"
- Include lyrical themes: "about love and saudade", "celebrating friendship"
Avoid Copyright Issues
- Don't mention artist/band names directly
- Describe the style instead: "classic 90s romantic samba style" not "like Raça Negra"
- If rejected, the API returns a suggested alternative prompt
Example Prompts
MPB (Brazilian Popular Music)
A soulful MPB track featuring gentle acoustic guitar, warm nylon strings,
and dreamy Rhodes piano. Bossa nova-influenced rhythm with soft brushed
drums. Vocals in Portuguese express themes of saudade and the beauty of life.
Epic Orchestral
Epic military march with powerful brass fanfares, thundering timpani drums,
and a soaring choir. Triumphant and heroic, with deep bass tubas, bold
trumpets, snare rolls, and an anthemic melody building to a glorious crescendo.
Lullaby
Gentle orchestral lullaby with sweeping strings, soft brass, and ethereal
wordless soprano vocals. Peaceful yet majestic, evoking wonder and hope.
Perfect for falling asleep while dreaming of adventures.
Comedy Rock
Brazilian comedy rock with absurd, hilarious Portuguese lyrics full of
wordplay. Mix energetic rock guitars with unexpected rhythms - forró
breakdowns, pagode moments. Theatrical, exaggerated vocals singing about
ridiculous situations.
Requirements
- ElevenLabs API Key: Set
ELEVENLABS_API_KEY environment variable
- Paid Plan: Music API requires Creator plan or higher
- uv: For running the Python script with dependencies
Supported Features
- Text-to-music generation up to 10 minutes
- AI-generated lyrics and vocals in multiple languages (English, Spanish, Portuguese, German, Japanese, etc.)
- Instrumental-only mode
- Most musical styles and genres
1---
2name: elevenlabs-music
3description: Generate music from text prompts using ElevenLabs Eleven Music API. Use when creating songs, soundtracks, jingles, lullabies, or any audio music from descriptions. Supports vocals with AI-generated lyrics, instrumental tracks, and multiple genres/styles. Requires paid ElevenLabs plan.
4metadata:
5 source: https://skillmd.com/skills/modbender/elevenlabs-music
6 clawdbot:
7 emoji: 🎵
8 requires:
9 bins:
10 - uv
11 env:
12 - ELEVENLABS_API_KEY
13 primaryEnv: ELEVENLABS_API_KEY
14---
15
16# ElevenLabs Music Generation
17
18Generate complete songs from text prompts with AI-generated lyrics and vocals.
19
20## Quick Start
21
22```bash
23# Basic generation (30 seconds)
24uv run {baseDir}/scripts/generate_music.py "upbeat jazz piano"
25
26# Longer track (3 minutes)
27uv run {baseDir}/scripts/generate_music.py "epic orchestral battle music" --length 180
28
29# Instrumental only (no vocals)
30uv run {baseDir}/scripts/generate_music.py "lo-fi hip hop beats" --length 120 --instrumental
31
32# Custom output path
33uv run {baseDir}/scripts/generate_music.py "romantic bossa nova" -o /tmp/bossa.mp3
34```
35
36## Options
37
38| Flag | Description |
39|------|-------------|
40| `-l, --length` | Duration in seconds (3-600, default: 30) |
41| `-o, --output` | Output file path (default: /tmp/music.mp3) |
42| `-i, --instrumental` | Force instrumental, no vocals |
43
44## Prompt Engineering Tips
45
46### Be Specific About Style
47- Include genre, mood, tempo, and instruments
48- Reference decades or eras: "90s Brazilian romantic pagode", "1960s sci-fi TV theme"
49- Describe energy: "builds from soft to explosive", "relaxed and intimate"
50
51### For Vocals
52- Specify language: "vocals in Portuguese", "singing in Japanese"
53- Describe vocal style: "soulful male vocals", "ethereal female choir"
54- Include lyrical themes: "about love and saudade", "celebrating friendship"
55
56### Avoid Copyright Issues
57- Don't mention artist/band names directly
58- Describe the style instead: "classic 90s romantic samba style" not "like Raça Negra"
59- If rejected, the API returns a suggested alternative prompt
60
61### Example Prompts
62
63**MPB (Brazilian Popular Music)**
64```
65A soulful MPB track featuring gentle acoustic guitar, warm nylon strings,
66and dreamy Rhodes piano. Bossa nova-influenced rhythm with soft brushed
67drums. Vocals in Portuguese express themes of saudade and the beauty of life.
68```
69
70**Epic Orchestral**
71```
72Epic military march with powerful brass fanfares, thundering timpani drums,
73and a soaring choir. Triumphant and heroic, with deep bass tubas, bold
74trumpets, snare rolls, and an anthemic melody building to a glorious crescendo.
75```
76
77**Lullaby**
78```
79Gentle orchestral lullaby with sweeping strings, soft brass, and ethereal
80wordless soprano vocals. Peaceful yet majestic, evoking wonder and hope.
81Perfect for falling asleep while dreaming of adventures.
82```
83
84**Comedy Rock**
85```
86Brazilian comedy rock with absurd, hilarious Portuguese lyrics full of
87wordplay. Mix energetic rock guitars with unexpected rhythms - forró
88breakdowns, pagode moments. Theatrical, exaggerated vocals singing about
89ridiculous situations.
90```
91
92## Requirements
93
94- **ElevenLabs API Key**: Set `ELEVENLABS_API_KEY` environment variable
95- **Paid Plan**: Music API requires Creator plan or higher
96- **uv**: For running the Python script with dependencies
97
98## Supported Features
99
100- Text-to-music generation up to 10 minutes
101- AI-generated lyrics and vocals in multiple languages (English, Spanish, Portuguese, German, Japanese, etc.)
102- Instrumental-only mode
103- Most musical styles and genres