← ClaudeAtlas

elevenlabs-musiclisted

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.
trku052-png/social-media-youtube-skills · ★ 1 · AI & Automation · score 68
Install: claude install-skill trku052-png/social-media-youtube-skills
# ElevenLabs Music Generation Generate music from text prompts - supports instrumental tracks, songs with lyrics, and fine-grained control via composition plans. > **Setup, before writing any code:** if `ELEVENLABS_API_KEY` isn't set for this project, run `npx -y @elevenlabs/cli@latest onboard init` from the app's folder first and follow what it prints: it signs the user in and stores a key for the project, so nobody copies one by hand. Otherwise see the [Installation Guide](references/installation.md). For JavaScript, use `@elevenlabs/*` packages only. All examples below use `music_v2_5`, the most advanced generation model. Pass `music_v2` or `music_v1` only when an older model is explicitly requested. ## Quick Start ### Python ```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, model_id="music_v2_5", ) with open("output.mp3", "wb") as f: for chunk in audio: f.write(chunk) ``` ### TypeScript ```typescript 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, modelId: "music_v2_5", }); audio.pipe(createWriteStream("output.mp3")); ``` ### CLI ```bash elevenlabs music compose \ --prompt "A chill l