elevenlabs Music Generation API

Endpoints for generating music from text prompts using AI models.

Operations 7

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/music/plan Draft a composition plan for a song · Generate Composition Plan #
Ask an LLM
“Can I get a section-by-section plan for a song before generating audio?”
“Is there a way to revise an existing composition plan with a new prompt?”
Tell an agent
Generate a composition plan for {prompt}.
Plan a {music_length_ms} ms song from prompt {prompt}.
POST /v1/music Generate a song from a text prompt · Compose Music #
Ask an LLM
“Can ElevenLabs make an original song from a description of the mood and genre?”
“Is it possible to generate an instrumental track that loops?”
Tell an agent
Generate music from the prompt {prompt}.
Make a {duration_seconds}-second instrumental track: {prompt}.
POST /v1/music/detailed Compose a song with timestamps and metadata · Compose Music With A Detailed Response #
Ask an LLM
“Can I get word timestamps and a waveform along with a composed song?”
“How do I compose a song from my own lyrics and a composition plan?”
Tell an agent
Compose a song from plan {composition_plan} and return detailed metadata.
Compose {prompt} with lyric timestamps {with_timestamps} and a waveform visual {with_waveform_visual}.
POST /v1/music/detailed/stream Stream a song with metadata over SSE · Stream Composed Music With A Detailed Response #
Ask an LLM
“Can I receive a song and its timestamps as server-sent events while it generates?”
“Which music call streams audio together with detailed metadata?”
Tell an agent
Stream a detailed composition of {prompt} as server-sent events.
Stream composition plan {composition_plan} over SSE with timestamps {with_timestamps}.
POST /v1/music/stream Stream composed music audio · Stream Composed Music #
Ask an LLM
“How do I start playing a generated song before it finishes composing?”
“Can I stream just the audio of a song made from a plan, without extra metadata?”
Tell an agent
Stream the audio of a song composed from {prompt}.
Stream audio only for plan {composition_plan} in output format {output_format}.
POST /v1/music/upload Upload a song for later inpainting · Upload Music #
Ask an LLM
“Can I upload my own track so I can edit parts of it later?”
“Is uploading a song charged, and is it checked for copyright?”
Tell an agent
Upload music file {file} for inpainting.
Upload {file} and extract its composition plan ({extract_composition_plan}).
POST /v1/music/stem-separation Split a song into separate stems · Stem Separation #
Ask an LLM
“Can I separate vocals, drums and other instruments from a track?”
“Why does stem separation take a long time on long songs?”
Tell an agent
Split {file} into stems.
Separate {file} into stems using variation {stem_variation_id}.

Documentation

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/elevenlabs:elevenlabs-music-generation-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

elevenlabs-music-generation-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: ElevenLabs API Documentation Music Generation API
  description: This is the documentation for the ElevenLabs API. You can use this API to use our service programmatically, this is done by using your API key. You can find your API key in the dashboard at https://elevenlabs.io/app/settings/api-keys.
  version: '1.0'
tags:


# --- truncated at 32 KB (52 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/elevenlabs/refs/heads/main/openapi/elevenlabs-music-generation-api-openapi.yml