music
What it does
This skill creates music from text prompts with ElevenLabs Music. It is for creators who need instrumental tracks, jingles, or songs with lyrics.
When to use it
- ✓When you need an instrumental background track for a project.
- ✓When you want a jingle or a song with lyrics for a brand.
- ✓When you want more control over the song structure with a composition plan.
Skill link
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/music/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Create a 30-second lo-fi hip hop background track with jazzy piano chords.”
5 new skills a week. 1 minute to read.
How it works
The agent sends the style description and length to ElevenLabs Music and saves the audio file. For more control, it can first create a composition plan that sets out the sections of the song.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
ElevenLabs Music Generation
Generate music from text prompts - supports instrumental tracks, songs with lyrics, and fine-grained control via composition plans.
Setup: See Installation Guide. For JavaScript, use
@elevenlabs/*packages only.
Quick Start
Python
from elevenlabs import ElevenLabs
client = ElevenLabs()
audio = client.music.compose(
prompt="A chill lo-fi hip hop beat with jazzy piano chords",
music_length_ms=30000
)
with open("output.mp3", "wb") as f:
for chunk in audio:
f.write(chunk)
JavaScript
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { createWriteStream } from "fs";
const client = new ElevenLabsClient();
const audio = await client.music.compose({
prompt: "A chill lo-fi hip hop beat with jazzy piano chords",
musicLengthMs: 30000,
});
audio.pipe(createWriteStream("output.mp3"));
cURL
curl -X POST "https://api.elevenlabs.io/v1/music" \
-H "xi-api-key: $ELEVENLABS_API_KEY" -H "Content-Type: application/json" \
-d '{"prompt": "A chill lo-fi beat", "music_length_ms": 30000}' --output output.mp3
Methods
| Method | Description |
|---|---|
music.compose |
Generate audio from a prompt or composition plan |
music.composition_plan.create |
Generate a structured plan for fine-grained control |
music.compose_detailed |
Generate audio + composition plan + metadata |
music.upload |
Upload an audio file for later inpainting workflows and optionally extract its composition plan |
See API Reference for full parameter details.
music.upload is available to enterprise clients with access to the inpainting feature.
Composition Plans
For granular control, generate a composition plan first, modify it, then compose:
plan = client.music.composition_plan.create(
prompt="An epic orchestral piece building to a climax",
music_length_ms=60000
)
# Inspect/modify styles and sections
print(plan.positiveGlobalStyles) # e.g. ["orchestral", "epic", "cinematic"]
audio = client.music.compose(
composition_plan=plan,
music_length_ms=60000
)
Content Restrictions
- Cannot reference specific artists, bands, or copyrighted lyrics
bad_prompterrors include aprompt_suggestionwith alternative phrasingbad_composition_planerrors include acomposition_plan_suggestion
Error Handling
try:
audio = client.music.compose(prompt="...", music_length_ms=30000)
except Exception as e:
print(f"API error: {e}")
Common errors: 401 (invalid key), 422 (invalid params), 429 (rate limit).
References
FAQ
How long can a track be?
You set the length in milliseconds, so a 30-second track is 30000.
Can I add lyrics?
Yes. Songs can include lyrics, and the skill covers how to add them.
What is a composition plan?
It is a structured outline of the song that gives more control over its sections.
Details
Original description by the author
Generate music using ElevenLabs Music API. Use when creating instrumental tracks, songs with lyrics, background music, jingles, or any AI-generated music composition. Supports prompt-based generation, composition plans for granular control, and detailed output with metadata.
repo: calesthio/OpenMontage
Popularity
- GitHub stars
- 75k
- Ranking position
- #2679
- License
- AGPL-3.0
- Updated
- 10/28/2026
Comments
- …
More skills from this repository
3d-asset-generation
75kHelps your agent choose how to create 3D objects for a scene, using catalogs, text or image to 3D tools, and Blender for final assembly.
acestep
75kHelps your agent create background music, songs, jingles, and stems for a video using the open ACE-Step music generator.
agents
75kHelps your agent build voice AI assistants with ElevenLabs, such as customer service bots and interactive voice characters.
ai-video-gen
75kHelps your agent generate AI video clips from a text description or a reference image, choosing from several video generation services.
Similar skills
openai-whisper-api
394kLets your agent turn an audio recording into text using OpenAI's transcription service, with options for speaker labels and output files.
openai-whisper
394kHelps your agent transcribe audio on your own computer with the Whisper command, with no API key and no cloud upload needed.
sag
394kHelps your agent read text aloud with ElevenLabs voices and play the result on your computer, with tips for pronunciation and expression.