music

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

1|Updated Aug 28, 2026
One-click install
npx skills add https://github.com/mooch10/mochiptos --skill music-mooch10
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: music
Source: https://github.com/mooch10/mochiptos/tree/main/frontend/.agents/music
Command: npx skills add https://github.com/mooch10/mochiptos --skill music-mooch10

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, apps, podcasts, or games normally requires composition skills or licensing stock tracks. 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 Generation: Describe the desired style, mood, and instruments in plain language and receive an MP3 audio stream. - Composition Plans: Generate a structured plan with global styles and timed sections, modify it, then compose for fine-grained control over the output. - Detailed Output & Upload: Use compose_detailed to get audio plus metadata and lyrics, or upload audio files for enterprise inpainting workflows. - Use Case: A video creator needs a 30-second lo-fi background track for a vlog. Provide a prompt like "chill lo-fi hip hop beat with jazzy piano chords" and save the streamed result as an MP3 file. ## Quick Start Ask the AI to generate a 30-second chill lo-fi hip hop track with jazzy piano chords and save it as output.mp3 using the ElevenLabs Music API.

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 in Python?▼

Install the elevenlabs package, create an ElevenLabs client, and call client.music.compose with a prompt and music_length_ms in milliseconds. The response is an audio stream you write chunk by chunk to an MP3 file.

What is a composition plan in ElevenLabs music generation?▼

A composition plan is a structured object with global styles and timed sections generated from a prompt via client.music.composition_plan.create. You can inspect and modify it, then pass it to compose for granular control over the generated track.

Can I generate instrumental-only music with ElevenLabs?▼

Yes, set force_instrumental to true when composing with a prompt to guarantee an instrumental output. This option is only available in prompt mode, not when using a composition plan.

Why does ElevenLabs music generation return a bad_prompt error?▼

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

What are the limitations of the ElevenLabs Music API?▼

Music length ranges from 3,000 to 600,000 milliseconds, generation requires a paid ElevenLabs plan, and copyrighted artist or lyric references are rejected. The upload endpoint for inpainting is restricted to enterprise clients.