
ElevenLabs is now a Kiro Power
- Category
- ElevenAPI
- Date
Generate custom tracks from text prompts with full control over genre, mood, structure, and duration. Trained on licensed stems and music, available for broad commercial use.
Music API
Create music from a single prompt
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
const elevenlabs = new ElevenLabsClient();
const track = await elevenlabs.music.compose({
prompt: "A fast-paced electronic track for a high-adrenaline video game",
musicLengthMs: 30_000,
modelId: "music_v1",
});
Eleven Music is trained on licensed stems and music, designed from the start for broad commercial use. Studio-grade audio output without the complexity of traditional music licensing.

For individuals and small teams building with the Music API

For organizations building music into products at scale
Generate and control music programmatically - from one-shot tracks to section-level composition integrated into your product.

Generate complete tracks from a single text prompt. Control genre, mood, structure, and instrumentation with natural language - Eleven Music interprets complex, multi-layered prompts with nuance.
Go beyond one-shot generations. Use composition plans to define intros, verses, choruses, and outros with independent styles, lyrics, and durations per section.
Stream music in real time for interactive experiences. Ideal for dynamic scoring in games, live creative tools, and media applications.
Created in collaboration with labels, publishers, and artists. All generated music is available for broad commercial use. No complex licensing to manage.
“Sonic Hub just got a game-changing upgrade: With Eleven Music, we're supercharging our audio operating system for brands, agencies and creators, fusing our deep expertise in understanding and coding the sound of a brand with Eleven Music's unparalleled quality of execution in AI music creation. Get ready for a new industry benchmark!”

“From dubbing Reels in local languages, to generating music and character voices in Horizon, ElevenLabs platform enables global creators, businesses, and enterprises to build with voice, music, and sound at scale.”
“ElevenLabs made it easy for us to quickly bring powerful text-to-speech capabilities to our SDK, allowing Agents to respond in real time with expressive voices to user questions or as feedback to what it's seeing.”

“Twilio has integrated ElevenLabs' generative AI voice technology into its CPaaS, enhancing ConversationRelay. This integration allows businesses and developers to create conversational AI voice interactions that sound human, feel expressive, and respond in real time directly from the Twilio CPaaS platform.”

The Eleven Music API lets you generate high-quality, original music from text prompts. You can control genre, mood, structure, duration, and language - and integrate music generation directly into your product or workflow via POST /v1/music.
Yes. Eleven Music is trained on licensed stems and music, created in collaboration with labels, publishers, and artists. Songs are available for broad commercial use on all paid plans. Film, TV, and large studio game rights require an Enterprise plan. See the Eleven Music v1 Terms at elevenlabs.io/eleven-music-v1-terms for the full commercial rights table.
Eleven Music generates studio-grade audio at up to 44.1 kHz. Supported output formats include MP3 (various bitrates up to 192kbps), PCM (up to 48 kHz), u-law, a-law, and Opus. High-quality downloads (PCM 44.1 kHz) are available from the Pro plan.
Eleven Music supports vocals in 59 languages, with native-like quality in 11 languages including English, Portuguese, Italian, Finnish, and Greek.
Yes. Use a simple prompt for one-shot generation, or pass a composition_plan with individual sections - each with its own name, styles, duration, and lyrics. Sections support positive and negative style directions for fine-grained control.
Track duration is configurable via music_length_ms, supporting lengths from 3 seconds (3,000ms) to 10 minutes (600,000ms). Individual sections within a composition plan can be 3 seconds to 2 minutes each.
Yes. Streaming generation allows real-time playback for interactive tools, games, and dynamic scoring applications.
In-painting lets you regenerate specific sections of an existing track while preserving the rest - using the source_from parameter in composition plans. This is currently available to enterprise clients.
Self-serve plans include monthly generation limits (from 11 to 4,800 minutes) and monthly download limits. Enterprise plans offer custom limits and expanded commercial rights. See the pricing page at elevenlabs.io/pricing for current plan details.
Unlike competitors facing legal challenges, Eleven Music is built on properly licensed data. We partnered with labels, publishers, and artists to ensure all generated music is cleared for commercial use. Specific prohibited inputs (artist names, song titles, lyrics) are outlined in the Music Terms at elevenlabs.io/music-terms.
Official SDKs for Python and JavaScript/TypeScript. You can also use the HTTP API directly - POST https://api.elevenlabs.io/v1/music with a JSON body.
For more information, see the API Reference here: https://elevenlabs.io/docs/eleven-api/guides/cookbooks/music
API reference at https://elevenlabs.io/docs/api-reference/music/compose. Guides and cookbooks at https://elevenlabs.io/docs/cookbooks/music.







.webp&w=3840&q=80)
