elevenlabs Music Generation API

Endpoints for generating music from text prompts using AI models.

Operations 1

POST /v1/music Create music #

Documentation

Specifications

Other Resources

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-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 Audio Isolation Agents Music Generation API
  description: The ElevenLabs Audio Isolation API removes background noise from audio recordings, isolating vocal tracks from ambient sounds and interference. This is useful for cleaning up recordings, improving audio quality for podcasts and interviews, and preparing audio files for further processing such as voice cloning or transcription.
  version: '1.0'
  contact:
    name: ElevenLabs Support
    url: https://help.elevenlabs.io
  termsOfService: https://elevenlabs.io/terms-of-service
servers:
- url: https://api.elevenlabs.io
  description: Production Server
security:
- apiKeyAuth: []
tags:
- name: Music Generation
  description: Endpoints for generating music from text prompts using AI models.
paths:
  /v1/music:
    post:
      operationId: createMusic
      summary: Create music
      description: Generates an original musical composition from a text prompt describing the desired genre, mood, tempo, instrumentation, and other characteristics. Returns generated audio in the specified format.
      tags:
      - Music Generation
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MusicGenerationRequest'
      responses:
        '200':
          description: Music generated successfully
          content:
            audio/mpeg:
              schema:
                type: string
                format: binary
        '400':
          description: Bad request - invalid parameters
        '401':
          description: Unauthorized - invalid or missing API key
        '422':
          description: Unprocessable entity - validation error
components:
  schemas:
    MusicGenerationRequest:
      type: object
      required:
      - prompt
      properties:
        prompt:
          type: string
          description: A natural language description of the music to generate. Include details about genre, mood, tempo, instrumentation, and any other desired characteristics.
          maxLength: 1000
        duration_seconds:
          type: number
          description: The desired duration of the generated music in seconds.
          minimum: 1
        loop:
          type: boolean
          description: Whether the generated music should be designed to loop seamlessly.
          default: false
        instrumental:
          type: boolean
          description: Whether to generate instrumental-only music without vocals or lyrics.
          default: false
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: xi-api-key
      description: ElevenLabs API key passed in the xi-api-key header for authentication.
externalDocs:
  description: ElevenLabs Audio Isolation API Documentation
  url: https://elevenlabs.io/docs/api-reference/audio-isolation/audio-isolation