Eleven Music API

elevenlabs/eleven_music
Eleven Music by ElevenLabs is an advanced AI music generation platform that creates high-quality, customizable compositions in real-time.
Output
$0.011666667 / sec
Released
Dec 5, 2025

Overview

‍Eleven Music by ElevenLabs is an advanced AI-driven music generation platform designed to create high-quality, customizable music compositions with a focus on versatility and expressive sound design. It integrates state-of-the-art deep learning techniques to enable seamless music creation for content creators, developers, and enterprises in media, gaming, advertising, and entertainment.

‍

Technical Specifications

Model Scope and Input Capacity

Eleven Music processes diverse musical inputs including MIDI, audio prompts, and textual style/theme descriptions, enabling generation and adaptation of complex compositions and arrangements.

Performance Benchmarks

  • Generation Speed: Real-time to near-real-time music production optimized for streaming and interactive applications.
  • Quality: Produces studio-quality audio outputs with realistic instrumentation and harmonics.
  • Style Diversity: Supports a broad range of genres and moods with flexible style transfer and theme adherence.

Architecture Breakdown

The model is built with a hybrid architecture that combines transformer-based sequence modeling with convolutional layers optimized for audio signal processing. It employs advanced representation learning for melody, rhythm, and texture, supported by a large-scale training dataset of diverse musical recordings and symbolic music data.

API Pricing

  • $0.455 / min

‍

Core Features & Capabilities

  • Composition & Arrangement: Generate full-length tracks or segments in various genres, with user control over tempo, key, instrumentation, and mood.
  • Multimodal Inputs: Combine textual cues, chord progressions, and sample audio to guide music creation fidelity.
  • Adaptive Style Transfer: Modify existing tracks with new styles or expand themes dynamically.
  • Sound Quality: High-fidelity audio rendering through neural audio synthesis pipelines.

Use Cases & Applications

  • Soundtrack creation for games, films, commercials, and VR/AR experiences.
  • Personalized music generation for podcasts, videos, and user content.
  • Interactive music systems for real-time applications like live performances and generative art installations.
  • Music education and research tools focusing on music theory and creativity support.

‍

Audio Generation Code Sample

Audio Output Code Sample

Comparison with Other Models

vs Suno AI: Eleven Music excels in producing studio-quality, coherent tracks with strong vocal synthesis and multilingual support, while Suno AI offers more advanced technical features like a visual timeline editor and stem separation for professional-grade music production workflows.

vs Udio: Eleven Music provides higher sound quality and better structured musical outputs with section-level editing, whereas Udio is simpler and more limited, lacking advanced editing controls and often producing less coherent tracks suitable mainly for basic demos or beginners.

vs MusicAI Sandbox: Eleven Music offers broader genre support and high-quality output with layered control over composition, compared to MusicAI Sandbox which emphasizes experimentation but lacks ElevenMusic’s studio-grade audio fidelity.

vs AIMusic.fm: Eleven Music focuses on detailed prompt-based customization with professional-level mixing and extensive style flexibility, while AIMusic.fm typically targets more automated, less customizable music generation workflows.

Use cases

  • Soundtrack creation for games, films, commercials, and VR/AR experiences.
  • Personalized music generation for podcasts, videos, and user content.
  • Interactive music systems for real-time applications like live performances and generative art installations.
  • Music education and research tools focusing on music theory and creativity support.

‍

How to use Eleven Music API

Install any OpenAI-compatible SDK, point it at api.aimlapi.com/v1, and set the model to elevenlabs/eleven_music.
import requests, time

headers = {"Authorization": "Bearer " + AIMLAPI_KEY}
job = requests.post(
    "https://api.aimlapi.com/v2/generate/audio",
    headers=headers,
    json={
      "model": "elevenlabs/eleven_music",
      "prompt": "Upbeat lofi background music"
    },
).json()
gid = job["generation_id"]

while True:
    res = requests.get(f"https://api.aimlapi.com/v2/generate/audio?generation_id={gid}", headers=headers).json()
    if res.get("status") in ("completed", "error", "failed"):
        break
    time.sleep(3)
print(res)
const headers = {
  Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
  "Content-Type": "application/json",
};
const job = await (await fetch("https://api.aimlapi.com/v2/generate/audio", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "model": "elevenlabs/eleven_music",
    "prompt": "Upbeat lofi background music"
  }),
})).json();

let res;
do {
  await new Promise((r) => setTimeout(r, 3000));
  res = await (await fetch(`https://api.aimlapi.com/v2/generate/audio?generation_id=${job.generation_id}`, { headers })).json();
} while (!["completed", "error", "failed"].includes(res.status));
console.log(res);
# submit the job — the response contains "generation_id"
curl -X POST https://api.aimlapi.com/v2/generate/audio \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"elevenlabs/eleven_music","prompt":"Upbeat lofi background music"}'

# then poll for the result until it is ready
curl "https://api.aimlapi.com/v2/generate/audio?generation_id={generation_id}" -H "Authorization: Bearer $AIMLAPI_KEY"

OpenAI-compatible — swap the base URL and it works with your existing SDK.

Eleven Music API Pricing

TypePrice
Output
$0.011666667 / sec

Eleven Music vs other models

ModelInputOutputContextBest for
Eleven Music
This page
$0.011666667 / sec
Audio generation
$100 / 1M characters
$130 / 1M
Speech synthesis
$100 / 1M characters
$0.13 / 1M tokens
Speech synthesis
$60 / 1M characters
$0.078 / 1M tokens
Speech synthesis
$10 / 1M characters
$0.013 / 1M tokens
Speech synthesis

Frequently asked questions

Eleven Music takes audio, text as input and returns audio.

Eleven Music is priced at $0.01517 / sec.

Eleven Music is billed per generation — a fixed charge per output rather than by prompt length.

Eleven Music was built by ElevenLabs.

Send a request to v2/generate/audio with elevenlabs/eleven_music as the model id.

Yes. Eleven Music is served through AI/ML API, so the same key and endpoint format used for other models applies.

Eleven Music generates original music tracks from text prompts, with support for a range of styles and genres.

Start building with Eleven Music

Get API Key
1000+ models, one API.