music

Generate music tracks from text prompts using the ElevenLabs Music API.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/X-manist/Cohmira --skill music-x-manist
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: music
Source: https://github.com/X-manist/Cohmira/tree/main/src/builtin-plugins/openmontage/.agents/skills/music
Command: npx skills add https://github.com/X-manist/Cohmira --skill music-x-manist

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires elevenlabs, @elevenlabs/elevenlabs-js, and includes references (resource) components.

What problem does it solve? Creating original music for videos, podcasts, games, or marketing content normally requires composers, licensing fees, or stock music searches. This Skill lets you generate instrumental tracks, songs with lyrics, jingles, and background music directly from text prompts via the ElevenLabs Music API. ## Core Features & Use Cases - Prompt-Based Composition: Generate audio from natural language descriptions with control over duration (3,000–600,000 ms) and instrumental-only output. - Composition Plans: Create a structured plan with global styles and per-section durations, modify it, then compose for fine-grained creative control. - Detailed Output & Upload: Use compose_detailed to get audio plus metadata and lyrics, or upload existing audio for enterprise inpainting workflows. - Use Case: A video editor needs a 30-second lo-fi background track for a vlog. Provide the prompt and length, receive an MP3 stream, and save it directly to the project. ## Quick Start Use the music skill to generate a 30-second chill lo-fi hip hop track with jazzy piano chords and save it as output.mp3.

Frequently Asked Questions about music

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate music with the ElevenLabs API?

Call client.music.compose with a text prompt and optional music_length_ms duration, then write the returned audio stream to a file. Both the Python elevenlabs package and the JavaScript @elevenlabs/elevenlabs-js package support this method.

What is a composition plan in ElevenLabs music generation?

A composition plan is a structured JSON object with global styles and per-section durations generated from a prompt via music.composition_plan.create. You can inspect and modify it, then pass it to music.compose for fine-grained control over the output.

Does ElevenLabs music generation require a paid plan?

Yes, music generation requires a paid ElevenLabs plan and a valid API key set as the ELEVENLABS_API_KEY environment variable. You can create a key in the API Keys section of your ElevenLabs account settings.

Why does my music prompt return a bad_prompt error?

The bad_prompt error occurs when a prompt references copyrighted material such as specific artists, bands, or copyrighted lyrics. The error response includes a prompt_suggestion field with alternative phrasing you can use instead.

Can I force ElevenLabs to generate instrumental-only music?

Yes, set the force_instrumental parameter to true when calling music.compose in prompt mode. This guarantees the generated track contains no vocals or lyrics.