music

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

Updated Sep 1, 2026
One-click install
npx skills add https://github.com/zamansepeti43/c-rak-agent --skill music-zamansepeti43
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: music
Source: https://github.com/zamansepeti43/c-rak-agent/tree/main/video-engine/.agents/skills/music
Command: npx skills add https://github.com/zamansepeti43/c-rak-agent --skill music-zamansepeti43

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, games, podcasts, or apps normally requires composers, licensing, or stock libraries. 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 control over the final track. - 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 producer needs a 60-second epic orchestral intro. Generate a composition plan, adjust the section styles, compose the track, and save it as an MP3. ## 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. 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 JSON object with global styles and timed sections generated from a prompt via music.composition_plan.create. You can inspect and modify it, then pass it to music.compose for granular control over the track.

Which JavaScript package should I use for the ElevenLabs Music API?

Use @elevenlabs/elevenlabs-js for JavaScript and TypeScript projects. The old elevenlabs npm package (v1.x) is deprecated and should not be used.

Can ElevenLabs music generation create songs in the style of specific artists?

No, prompts cannot reference specific artists, bands, or copyrighted lyrics. Such requests return a bad_prompt error that includes a prompt_suggestion with alternative phrasing you can use instead.

Why does ElevenLabs music generation return a 401 or 429 error?

A 401 error means the API key is invalid, so verify ELEVENLABS_API_KEY is set correctly. A 429 error indicates the rate limit was exceeded, and a 422 means the request parameters were invalid.