All skills
elevenlabs avatar

/music

@68fff59 official
by elevenlabselevenlabs/skills462 stars
74

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.

Use this Skill: https://skilld.dev/gh/elevenlabs/skills/music

This session only. Nothing lands on disk.

referencesinstallation.md

≈513 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Installation

CLI (Recommended)

npm (any platform with Node.js):

npm install -g @elevenlabs/cli

macOS / Linux (Homebrew):

brew install elevenlabs/tap/elevenlabs

Windows (Scoop):

scoop bucket add elevenlabs https://github.com/elevenlabs/scoop-bucket
scoop install elevenlabs

Shell installer:

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.sh | sh

Authenticate either way:

# Option 1: Environment variable (picked up automatically)
export ELEVENLABS_API_KEY="your-api-key"

# Option 2: OAuth login (stores credentials in the OS keyring)
elevenlabs auth login

JavaScript / TypeScript

npm install @elevenlabs/elevenlabs-js

Important: Always use @elevenlabs/elevenlabs-js. The old elevenlabs npm package (v1.x) is deprecated and should not be used.

import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";

// Option 1: Environment variable (recommended)
// Set ELEVENLABS_API_KEY in your environment
const client = new ElevenLabsClient();

// Option 2: Pass directly
const client = new ElevenLabsClient({ apiKey: "your-api-key" });

Python

pip install elevenlabs
from elevenlabs import ElevenLabs

# Option 1: Environment variable (recommended)
# Set ELEVENLABS_API_KEY in your environment
client = ElevenLabs()

# Option 2: Pass directly
client = ElevenLabs(api_key="your-api-key")

CLI Usage

Once the CLI is installed and authenticated, generate music directly from the terminal:

elevenlabs music compose \
  --prompt "A chill lo-fi beat" \
  --music-length-ms 30000 \
  --output output.mp3

Getting an API Key

  1. Sign up at elevenlabs.io
  2. Go to API Keys
  3. Click Create API Key
  4. Copy and store securely

Or use the setup-api-key skill for guided setup.

Note: Music generation requires a paid ElevenLabs plan.

Source: SKILL.md on GitHub

1 warning5d5 checks · Risk SAFE
  • Gen Agent Trust Hub5d

    The skill provides instructions for generating music via the ElevenLabs Music API using official SDKs and CLI tools. All external resources and installation scripts originate from the official vendor and follow secure practices for secret management and tool installation.

  • Socket5d

    No alerts

  • Snyk5d

    Risk: LOW · No issues

  • Runlayer6mo

    2/3 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 68fff59. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated last week
compatibility
Requires internet access and an ElevenLabs API key (ELEVENLABS_API_KEY).
Other metadata
metadata
{
  "openclaw": {
    "requires": {
      "env": [
        "ELEVENLABS_API_KEY"
      ]
    },
    "primaryEnv": "ELEVENLABS_API_KEY"
  }
}

README badge

README badge for elevenlabs/skills/music

Generates instrumental tracks, songs with lyrics, and background music using the ElevenLabs Music API. Supports prompt-based composition, fine-grained control via composition plans with per-section styling, video-to-music generation, and inpainting to edit or extend stored tracks. Requires an ElevenLabs API key and internet access.

Generated from the current SKILL.md.

Does this skill require an API key?
Yes. You must set the ELEVENLABS_API_KEY environment variable to authenticate with the ElevenLabs Music API.
Can I generate music with lyrics?
Yes. Use composition plans to specify lyrics per section (e.g. [Verse], [Chorus]), or pass a prompt that describes a song with vocals. The API will generate audio matching your text.
Does the skill support editing or extending existing audio?
Yes, via inpainting. You can store a generated track or upload existing audio, then create a composition plan that references unchanged slices and regenerates only the parts you want to change.
What models are available?
The skill defaults to music_v2, the current generation model. You can pass model_id='music_v1' if explicitly needed, though music_v2 is recommended.
Can I generate music from video?
Yes. The video_to_music method accepts 1-10 video files (up to 200 MB combined, 600 seconds duration) and generates background music based on a description and optional style tags.

Generated from the current SKILL.md. These answers refresh after source changes.