Mozart Developers

ElevenLabs Music API (Eleven Music API): pricing, hosts and alternative

The ElevenLabs Music API, also called the Eleven Music API, costs $0.15 per minute of generated audio, so a 3-minute song is $0.45 (official pricing page). It generates songs from a text prompt at POST /v1/music. Mozart's music API is priced per song instead: from $0.071 a song, 2 songs per request, with lyrics and cover art included, plus stems, audio to MIDI and mastering on the same API. The same Eleven Music models are also sold by fal.ai, Replicate, WaveSpeed and other hosts, at $0.15 to $0.75 a minute; see the Eleven Music API hosts table.

Get API keySee pricing

The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits. You can create a key today and price any request free with "dry_run": true. Read the docs.

Updated November 27, 2026

On this page
MetricElevenLabs Music APIMozart API
Price$0.15 a minute ($0.45 for 3 minutes)From $0.071 a song, 2 songs per request
Smallest purchaseOne clip, billed by lengthOne request (2 songs, 25 credits): $0.071 to $0.091 a song on API plans, or $0.008 a credit on top-ups
Entry price$6 a month (ElevenLabs Starter)$20 a month (Mozart API Starter), or a $20 top-up

How to call the ElevenLabs Music API

This short ElevenLabs Music API tutorial covers the API key, one request in curl, Python and JavaScript, streaming, the parameters that set length, model and format, all 13 endpoints and a composition plan.

To get an ElevenLabs API key, sign in and create one on the API Keys page of the ElevenLabs dashboard (elevenlabs.io/app/api/api-keys, linked from the Music quickstart); the Music API is for paid subscribers (capabilities overview). If you limit the key's scope to certain endpoints, include the Music endpoints (authentication).

Send a POST to https://api.elevenlabs.io/v1/music with your API key in the xi-api-key header, a prompt (or a composition_plan), an optional music_length_ms from 3,000 to 600,000 and an optional model_id (music_v1, the default, music_v2 or music_v2_5). The response body is the audio file itself, in the format set by output_format, so save it straight to disk (compose reference).

Call the ElevenLabs Music API with curl

Terminal
curl https://api.elevenlabs.io/v1/music \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "warm synth pop, 108 BPM", "music_length_ms": 180000, "model_id": "music_v2_5"}' \
  --output song.mp3

ElevenLabs Music API Python SDK

With the official Python SDK (pip install elevenlabs):

Python
import os
from elevenlabs.client import ElevenLabs

elevenlabs = ElevenLabs(api_key=os.getenv("ELEVENLABS_API_KEY"))

track = elevenlabs.music.compose(
    prompt="warm synth pop, 108 BPM",
    music_length_ms=180000,
    model_id="music_v2_5",
)

with open("song.mp3", "wb") as f:
    for chunk in track:
        f.write(chunk)

ElevenLabs Music API JavaScript SDK

With the JavaScript SDK (npm install @elevenlabs/elevenlabs-js), which reads ELEVENLABS_API_KEY from the environment:

JavaScript
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { Readable } from "stream";
import { createWriteStream } from "fs";
import { pipeline } from "stream/promises";

const elevenlabs = new ElevenLabsClient();

const track = await elevenlabs.music.compose({
  prompt: "warm synth pop, 108 BPM",
  musicLengthMs: 180000,
  modelId: "music_v2_5",
});

await pipeline(Readable.from(track), createWriteStream("song.mp3"));

Both SDK samples follow the Music quickstart, with the prompt and length changed.

Stream the ElevenLabs Music API

To get audio as it is generated instead of waiting for the whole file, send the same body to POST /v1/music/stream, which returns streaming audio in the format set by output_format (stream music reference):

Terminal
curl https://api.elevenlabs.io/v1/music/stream \
  -H "xi-api-key: $ELEVENLABS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt": "warm synth pop, 108 BPM", "music_length_ms": 180000, "model_id": "music_v2_5"}' \
  --no-buffer --output song.mp3

In the Python SDK the call is elevenlabs.music.stream(...), which yields audio chunks you can write as they arrive (Music streaming guide):

Python
stream = elevenlabs.music.stream(
    prompt="warm synth pop, 108 BPM",
    music_length_ms=180000,
    model_id="music_v2_5",
)

with open("song.mp3", "wb") as f:
    for chunk in stream:
        if chunk:
            f.write(chunk)

In JavaScript the call is elevenlabs.music.stream({ prompt, musicLengthMs, modelId }). For word timestamps and song metadata while streaming, use POST /v1/music/detailed/stream, which sends Server-Sent Events.

Compose request parameters

ParameterValuesNotes
prompt or composition_planA text prompt, or a structured plan of sectionsOne of the two is required; plan section durations are always enforced on music_v2 and music_v2_5
music_length_ms3,000 to 600,000Optional, with prompt only; 3 seconds to 10 minutes in the compose reference (5 minutes on the pricing page)
model_idmusic_v1 (default), music_v2, music_v2_5Optional; music_v1 is removed on 31 Jan 2027
force_instrumentaltrue or falseOptional; no vocals when true
output_formatMP3 up to 320 kbps, PCM up to 48 kHz, OpusOptional; the default is auto

The same models can also be called through third-party hosts, each with its own endpoint, key and price (hosts table).

ElevenLabs Music API endpoints

ElevenLabs' Music API has 8 endpoints plus 5 finetune endpoints (Music API endpoint list). All paths are on https://api.elevenlabs.io.

EndpointWhat it doesNotesSource, fetched 27 Nov 2026
POST /v1/musicGenerates a song from a prompt or a composition planReturns the audio file directly; $0.15 per minuteCompose music
POST /v1/music/streamStreams a song from a prompt or a composition planReturns streaming audio in the format set by output_formatStream music
POST /v1/music/detailedComposes a song and returns metadata with itMultipart response with JSON metadata and the audio fileCompose music with details
POST /v1/music/detailed/streamStreams a song and its metadataServer-Sent Events with the composition plan, song metadata, audio chunks and optional word timestampsStream music with details
POST /v1/music/planDrafts a structured composition plan from a promptCosts no credits; subject to rate limitingCreate composition plan
POST /v1/music/video-to-musicGenerates background music from one or more video filesMultipart upload; videos are combined in orderVideo to music
POST /v1/music/uploadUploads a song for later inpaintingCosts the same as a generation; half is charged if copyrighted content is detectedUpload music
POST /v1/music/stem-separationSplits an uploaded audio file into stemsReturns a ZIP; price not stated on the API pricing pageStem separation
GET /v1/music/finetunesLists your music finetunesGet music finetunes
POST /v1/music/finetunesCreates a music finetune from uploaded files$1.50 per finetune (API pricing page)Create music finetune
GET /v1/music/finetunes/{finetune_id}Gets one finetuneGet music finetune
PATCH /v1/music/finetunes/{finetune_id}Updates a finetuneUpdate music finetune
DELETE /v1/music/finetunes/{finetune_id}Deletes a finetuneDelete music finetune

The list has no audio-to-MIDI or mastering endpoint.

ElevenLabs Music API composition plan example

POST /v1/music/plan drafts a plan like this from a prompt and costs no credits; send it back as composition_plan to fix each section's length and style. On music_v2 and music_v2_5 a plan is a list of chunks, each with text (an optional section name in square brackets, then lyric lines), duration_ms (3,000 to 120,000), positive_styles, and optional negative_styles and context_adherence (low, medium or high) (create composition plan reference):

JSON
{
  "model_id": "music_v2_5",
  "composition_plan": {
    "chunks": [
      {
        "text": "[Intro]",
        "duration_ms": 15000,
        "positive_styles": ["warm synth pop", "108 BPM", "analog pads", "soft kick", "bright arpeggio", "great production quality"],
        "negative_styles": ["distorted guitar"],
        "context_adherence": "high"
      },
      {
        "text": "[Chorus]",
        "duration_ms": 30000,
        "positive_styles": ["full drums", "female vocals", "big synth chords"],
        "context_adherence": "high"
      }
    ]
  }
}

music_v1 takes a different plan shape (positive_global_styles, negative_global_styles and sections, each with section_name, positive_local_styles, negative_local_styles, duration_ms and lines), and each shape is rejected by the other models. In the Python SDK the plan call is elevenlabs.music.composition_plan.create(...), and elevenlabs.music.compose(composition_plan=..., model_id="music_v2_5") renders it (Music quickstart).

Eleven Music API models: music_v1, music_v2 and music_v2_5

The compose endpoint takes model_id music_v1 (the default), music_v2 or music_v2_5 (compose reference). ElevenLabs announced Eleven Music in the API on 18 Aug 2025 (launch post). The pricing page lists one rate, $0.15 a minute, with no per-model price. Audio Reference (an upload of about 30 seconds) works only on music_v2 and music_v2_5, and section durations in a composition plan are always enforced on those two models. music_v1 is removed on 31 Jan 2027 (capabilities overview).

ElevenLabs Music API pricing and plans

The ElevenLabs Music API costs $0.15 per minute of generated audio on every plan, plus $1.50 per finetune, and paid plans start at $6 a month (ElevenLabs Starter).

ElevenLabs lists Eleven Music on its API pricing page at "$0.15 per minute plus $1.50 per finetune", and says "Dollar prices are the same on every plan. Self-serve plans deduct credits at a plan-specific rate." Its consumer pricing FAQ puts Eleven Music at about 900 credits per minute. Cost depends on track length and on how many variants you generate.

ElevenLabs planMonthly priceMusic minutes included (pricing page)Music API access
ElevenLabs Free / Pay as you go$0, then usage3Free: no (Music Terms). Pay as you go: listed on the API page
ElevenLabs Starter$640Yes
ElevenLabs Creator$22147Yes
ElevenLabs Pro$99660Yes
ElevenLabs Scale$2991,993Yes
ElevenLabs Business$9906,600Yes

Each allowance works out to $0.15 a minute of the plan price, for example $6 for 40 minutes. ElevenLabs' pricing page lists Pay as you go in the same column as Free (3 music minutes), and its product page lists "Pay as you go API access"; the Music Terms do not name Pay as you go. ElevenLabs' API pricing FAQ also says "Self-serve plans can buy pay-as-you-go credits, which convert at your plan's rate and expire 12 months after purchase." Sources: the API pricing page, the Music Terms and the Music capabilities overview ("The Music API is available for paid subscribers").

ElevenLabs' pages give different monthly music limits. The API pricing page lists the minutes above. The Music Terms (Exhibit A) and the product page set a monthly generation limit of 11, 17, 62, 304, 1,100 and 4,800 minutes from Free to Business. They also set download limits: downloads not permitted on Free, 30 minutes on Starter, 250 on Creator, up to 4,000 on Business.

This rate applies to Eleven Music only. Speech, sound effects and other ElevenLabs products are priced separately on the same page.

Other details from ElevenLabs' docs:

  • Audio: "44.1kHz, 128-192kbps audio" on the API pricing page; the compose reference also offers MP3 up to 320 kbps, PCM up to 48 kHz and Opus.
  • Inpainting uploads cost the same as a generation, and half the cost is still charged if copyrighted content is detected (upload music reference).
  • Rate limits (concurrency): 2 generations at once on Starter, Creator and Pro, 5 on Scale and Business, 10+ on Enterprise Music (Music Terms, Exhibit A).
  • Not stated: a price for stem separation.

Mozart API plans, for reference

Mozart API plans start with Mozart API Starter at $20 a month for 2,750 credits (220 songs) and work out to $0.071 to $0.091 a song across the self-serve plans, with custom Enterprise plans above them. A song request is 25 credits and always returns 2 songs. Top-ups start at 2,500 credits for $20 ($0.008 a credit) and never expire. The song price does not change with song length. Monthly allowances don't roll over. The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits. You can make keys now. Full table on Mozart API pricing.

Eleven Music API on fal.ai, Replicate and other hosts

ElevenLabs Music models are also served by third-party API hosts, each with its own pricing, limits and terms. The table starts with ElevenLabs direct as the baseline and converts each listed price to an approximate cost per minute of output. Prices are as each page showed them on 27 Nov 2026; check the host's page for current rates.

HostModel id or endpointListed priceApprox. per minuteSource, fetched 27 Nov 2026
ElevenLabs (direct)POST /v1/music (music_v1, music_v2, music_v2_5)$0.15 per minute$0.15API pricing page
Picsartelevenlabs-music-v2$0.15 a minute$0.15Picsart pricing
Segmindelevenlabs-music (ElevenLabs Music)$0.003125 per second of outputAbout $0.19Segmind pricing
apiframeelevenlabs-music$0.38 for a 2-minute track (38 credits at $0.01 a credit)About $0.19apiframe pricing
Replicateelevenlabs/music$8.30 per 1,000 seconds of output audioAbout $0.50Replicate model page
fal.aielevenlabs/music/v2$0.60 per output audio minute, rounded up to the closest minute$0.60fal.ai model page
WaveSpeedelevenlabs/music (/api/v3/elevenlabs/music)$0.10 per 10 seconds, prorated by music_length_ms$0.60WaveSpeed docs
Veniceelevenlabs-music, elevenlabs-music-v2, elevenlabs-music-v2-5Duration-tiered, quoted by its Audio Quote API; base price $0.75 a minute for 3 to 600 seconds, rounded up to the minute, before markup$0.75 base, before markupVenice docs
Mage Spaceeleven_music (eleven-music-v2.5)3.75 Gems per second of output (113 Gems for the default 30 seconds)225 Gems; dollar rate not shownMage Space playground
Krea/generate/audio/elevenlabs/musicNot shownNot shownKrea API reference
AIMLAPIelevenlabs/eleven_musicNot shownNot shownAIMLAPI docs

ElevenLabs Music API cost per song

A 3-minute song on the ElevenLabs Music API costs $0.45 per variant at $0.15 a minute, a 1-minute track costs $0.15 and a 5-minute track costs $0.75. On Mozart's per-song pricing, each song costs $0.071 to $0.091 on API plans whatever its length, sold 2 songs per request.

Song lengthElevenLabs Music API, one songMozart API, per song (sold 2 per request)
1 min$0.15$0.071 to $0.091
2 min$0.30$0.071 to $0.091
3 min$0.45$0.071 to $0.091
4 min$0.60Up to the model's max_duration_seconds in GET /v1/models
5 min (longest on ElevenLabs' pricing page)$0.75Up to the model's max_duration_seconds in GET /v1/models

Assumptions: ElevenLabs at $0.15 per generated minute, billed per variant, finetune fees excluded. Mozart at its listed per-song price on each API plan, which does not change with song length.

Mozart sells songs in pairs, so the smallest purchase is one request of 2 songs: 25 credits, at $0.071 to $0.091 a song on the API plans or $0.008 a credit on top-ups. Mozart's maximum song length for hans-2 is its max_duration_seconds in GET /v1/models.

Two takes. If you want two takes to choose from: two 3-minute variants on ElevenLabs are 6 billed minutes, $0.90. One Mozart request returns 2 songs, at $0.071 to $0.091 a song on API plans.

Same budget.

  • Around $20 a month: ElevenLabs Creator at $22 lists 147 minutes on its pricing page (about 49 three-minute songs); the Music Terms cap generation at 62 minutes (about 20). Mozart API Starter at $20 includes 220 songs.
  • About $1,000 a month: ElevenLabs Business at $990 lists 6,600 minutes (about 2,200 three-minute songs); the Music Terms cap generation at 4,800 minutes (1,600). Mozart's larger API plans work out to as little as $0.071 a song; see Mozart API pricing.
  • Smallest budgets: ElevenLabs Starter is $6 a month for 40 minutes. Mozart's API plans start at $20.
  • Prepaid usage: Mozart top-ups are $0.008 a credit (a song request is 25 credits) and never expire. ElevenLabs lists Pay as you go at $0.15 a minute; its pay-as-you-go credits expire 12 months after purchase.

ElevenLabs Music API alternative: when to use ElevenLabs vs Mozart

If you are looking for an ElevenLabs Music API alternative, the deciding question is song length. Per-minute billing is cheaper for short clips; per-song billing is cheaper for full-length songs.

To find where the two prices meet for your use, compare ElevenLabs' $0.15 a minute with Mozart's per-song price ($0.071 to $0.091 on API plans). If you need only one clip, compare against a full Mozart request of 2 songs instead. A 15-second ElevenLabs clip is about $0.04 ($0.0375).

ElevenLabs is the closer fit when you need:

  1. Short clips and stings. Lengths go down to 3 seconds.
  2. Exact lengths and section timing. music_length_ms sets the length in milliseconds. A composition_plan sets sections, and on music_v2 and music_v2_5 section durations are always enforced (on music_v1, set respect_sections_durations). Mozart has a duration_seconds input and no composition plans.
  3. Streaming audio. ElevenLabs has stream endpoints. Mozart returns a job you poll or get a webhook for.
  4. Video to music, finetunes or reference audio. ElevenLabs has a video-to-music endpoint, finetunes at $1.50 each, and Audio Reference on music_v2 and music_v2_5. Mozart offers no video to music or finetunes in v1.
  5. A small monthly commitment. ElevenLabs Starter is $6 a month.

As an ElevenLabs Music API alternative, Mozart is the closer fit when you make full-length songs, want two takes per prompt, want lyrics and cover art with every song, or chain a song into stems, MIDI and mastering in one API.

Comparing ElevenLabs Music API alternatives

Other music generation APIs bill in different units, so compare output as well as price. Prices are as each vendor's own page showed them on 27 Nov 2026.

VendorAPIPricing unitSource, fetched 27 Nov 2026
Mozart APIMozart API (hans-2)From $0.071 per song, 2 songs per 25-credit request ($0.071 to $0.091 a song on API plans; $0.008 a credit on top-ups)Mozart API pricing
Google LyriaVertex AI: Lyria 3 Pro, Lyria 3, Lyria 2Lyria 3 Pro $0.08 per full song; Lyria 3 $0.04 per 30-second clip; Lyria 2 $0.06 per countVertex AI pricing
Stable AudioStability AI API: Stable Audio 3.0, Stable Audio 2.58 credits each, at $0.01 a credit; the unit is not statedStability AI pricing
MiniMax MusicMiniMax API: Music-3.0 to Music-2.0$0.15 per track up to 5 minutes (Music-2.0 $0.03); closed to new users since 20 Aug 2026MiniMax pricing
SoniloSonilo API: text to music, video to music, sound effectsCredits per output second: text to music 5, video to music 18; 15-second and 200-credit minimum per generation; Pro plan 40,000 credits a monthSonilo pricing
MurekaMureka API: songs, instrumentals, lyrics, stemsPrepaid API top-ups, valid 12 months from the last recharge; price per song not shown in the public docsMureka API FAQ
MubertMubert APINot shownMubert API
Beatoven.aiBeatoven.ai APINot shownBeatoven.ai API
ACE-Step (open source)Self-hosted model, Apache License 2.0No published price; you run it on your own hardwareACE-Step on GitHub

For Suno, whose API is a partner beta with no public sign-up as of Nov 2026, see Does Suno have an API?.

Feature comparison: ElevenLabs vs Mozart API

FeatureElevenLabs Music APIMozart API
Pricing unit$0.15 per minute, per variant, plus $1.50 per finetune25 credits per request, 2 songs per request, from $0.071 a song
Modelsmusic_v1 (default), music_v2, music_v2_5hans-2 (Hans 2.0, Mozart's song model with vocals and lyrics)
Songs with vocalsYes, vocals in 59 languages (product page); force_instrumentalYes; lyrics and instrumental inputs
LyricsThrough the prompt or a composition plan; compose detailed returns word timestampsSend your own in lyrics, or write them first with POST /v1/lyrics, which is free
Cover artNot in the Music API endpoint listFree with every song
Covers of a songNot in the Music API endpoint listPOST /v1/covers, 27 credits
Reference audioAudio Reference on music_v2 and music_v2_5, an upload of about 30 seconds, all paid plans (capabilities overview)Covers take source_song_id or source_upload_id
Stem separationPOST /v1/music/stem-separation, any uploaded file, returns a ZIP; price not statedStem separation: POST /v1/songs/{song_id}/stems, twoStem or fourStem mode for a song in your Mozart library, 23 credits per minute of audio
Audio to MIDINo endpoint in the Music APIAudio to MIDI: POST /v1/midi, takes a song_id or upload_id, 16 credits a track
MasteringNo endpoint in the Music APIMastering: POST /v1/songs/{song_id}/master, for a song in your Mozart library, 725 credits a track
Length controlmusic_length_ms, 3 s to 10 min in the API reference; 5 min on the pricing pageduration_seconds input, up to max_duration_seconds from GET /v1/models
Section controlcomposition_plan (durations enforced on music_v2 and music_v2_5); POST /v1/music/plan drafts a plan and costs no creditsNot offered
Output formats"44.1kHz, 128-192kbps" (API pricing page); MP3 up to 320 kbps, PCM up to 48 kHz or Opus (compose reference)MP3, WAV, FLAC or M4A from POST /v1/songs/{song_id}/download
DeliveryReturns the audio file; stream endpoints202 Accepted and a job; poll it or receive a signed webhook
Concurrency2 on Starter to Pro, 5 on Scale and Business, 10+ on Enterprise Music (Music Terms)See the API reference
Video to musicYesNo
Custom voices or stylesFinetunes via finetune_id, $1.50 eachNot offered in v1
InpaintingElevenLabs Enterprise only (product page)POST /v1/inpaints rewrites a section of 3 to 60 seconds in a song you made; 33 credits cover up to a minute of the source song, then 33 a minute, billed per second
Testing without spendNo Music API on ElevenLabs FreeTest keys, reads, job status, cost estimates and dry_run use no credits
Failed jobsNot statedCredits come back (credits_refunded on the job)
AgentsHosted MCP servers with OAuth sign-in; the ElevenCreative server (https://api.elevenlabs.io/v1/mcp-creative) includes music and spends workspace credits. The versions in Claude's connector directory do not include musicREST API only, with an API key
Versioningmusic_v1 (the default) is removed 31 Jan 2027A /v1 shape never changes in place; removals get six months' notice

ElevenLabs cells: compose and create-composition-plan references, Music llms.txt, stem separation reference, capabilities overview, product page, API pricing page, Music Terms and both ElevenLabs MCP docs pages, all linked under How we sourced this page. Mozart cells: Mozart API docs and pricing.

ElevenLabs Music API licensing and commercial use

The ElevenLabs Music API includes commercial use licensing on paid plans from Starter ($6 a month) up, streaming distribution from Creator ($22 a month) up, and film, TV, radio or studio game rights only on Enterprise Music.

From the Music Terms (last updated 09 Oct 2026) and the API pricing page:

  • The Music Terms give ElevenLabs Free no API access. The API starts at ElevenLabs Starter in the Music Terms; the product page also lists Pay as you go API access.
  • The ElevenLabs API pricing page says "Commercial use licensing on Starter+ plans". The Music Terms allow commercial use on ElevenLabs Free too, with attribution ("denote Eleven Music when distributing"), and require no attribution on paid plans.
  • Distribution to streaming services is prohibited on ElevenLabs Free and ElevenLabs Starter, and allowed from ElevenLabs Creator up.
  • Exhibit A of the Music Terms marks Free, Starter, Creator and Pro as "For Individual Use Only"; Scale is for individuals or organizations with fewer than 10 employees and Business fewer than 50.
  • Film, TV, radio and studio games are excluded below ElevenLabs Enterprise Music.
  • Prompts may not include artist names, song or album titles, label names or distinctive lyrics; the API rejects them with a bad_prompt error (see the FAQ).

Mozart licensing terms are in the Mozart Terms of Service.

Migrating from the ElevenLabs Music API to Mozart

The main difference is the response. ElevenLabs POST /v1/music returns the audio file. Mozart POST /v1/songs returns 202 Accepted with a job, needs an Idempotency-Key header on every write, and finishes by webhook or when you poll the job. Reuse the same Idempotency-Key when you retry the same request; use a new key for a new request. A key is bound to its first request for 90 days; its response is replayed for 24 hours.

ElevenLabs: see How to call the ElevenLabs Music API above.

Mozart:

  1. Create an API key on the Mozart Developer page.
  2. Check the key:
    Terminal
    export MOZART_API_KEY=mzk_...
    curl https://api.mozartai.com/v1/me \
      -H "Authorization: Bearer $MOZART_API_KEY"
  3. Request a song (each request returns 2 songs):
    Terminal
    curl https://api.mozartai.com/v1/songs \
      -H "Authorization: Bearer $MOZART_API_KEY" \
      -H "Idempotency-Key: $(uuidgen)" \
      -H "Content-Type: application/json" \
      -d @- <<'JSON'
    {
      "model": "hans-2",
      "prompt": "warm synth pop, 108 BPM",
      "instrumental": true
    }
    JSON
  4. Get the result. Add a webhook URL on your developer account for a signed callback when the job finishes, or poll GET /v1/jobs/{job_id}. The finished job lists song_ids and outputs, each with an audio url and duration_seconds, plus credits_charged and credits_refunded. For a WAV, FLAC or M4A file, call POST /v1/songs/{song_id}/download with a format (MP3 is the default).

To see the cost first, send "dry_run": true. It is free and starts nothing. The OpenAPI 3.1 document is at https://api.mozartai.com/v1/openapi.json. Every route is in the API reference.

How we sourced this page

Every ElevenLabs, host and vendor figure comes from these pages, fetched on 27 Nov 2026:

Where ElevenLabs' pages disagree, as on maximum length (5 minutes on the pricing page and overview, 10 minutes in the API reference and product page), monthly music limits (pricing page minutes vs Music Terms generation limits) and commercial use on Free, we show both. Mozart figures come from the Mozart API pricing page and docs. If a number here is out of date, use Talk to us on Mozart API pricing and we'll fix it.

Comparing other vendors? See Does Suno have an API? or start at the Mozart music API.

Frequently asked questions

Does ElevenLabs have a music API?

Yes. Eleven Music is available over the ElevenLabs API at POST /v1/music on paid ElevenLabs plans from Starter ($6 a month). It also has stream, composition plan, video-to-music, stem separation and finetune endpoints (ElevenLabs docs).

How do I get an ElevenLabs API key for the Music API?

Sign in to ElevenLabs and create a key on the API Keys page of the dashboard (elevenlabs.io/app/api/api-keys), then send it in the xi-api-key header. The Music API is for paid subscribers; see How to call the ElevenLabs Music API.

How much does the ElevenLabs Music API cost?

The ElevenLabs Music API costs $0.15 per minute of generated music, plus $1.50 per finetune, on every plan (ElevenLabs API pricing page). Self-serve plans deduct credits at a plan-specific rate (ElevenLabs' consumer FAQ says about 900 credits per minute), and subscriptions start at ElevenLabs Starter ($6 a month).

Is the ElevenLabs Music API pay as you go?

Yes, with caveats. ElevenLabs' API pricing page lists Pay as you go in the same column as Free, at $0.15 a music minute, and its Eleven Music API page lists "Pay as you go API access". Its API pricing FAQ says "Self-serve plans can buy pay-as-you-go credits, which convert at your plan's rate and expire 12 months after purchase."

How much is a 3-minute song on the ElevenLabs Music API?

A 3-minute song on the ElevenLabs Music API costs $0.45 per variant at $0.15 a minute, or $0.90 for two 3-minute variants. For comparison, one Mozart request returns 2 songs at $0.071 to $0.091 a song on the API plans.

How do I download a song from the ElevenLabs Music API?

POST /v1/music returns the audio file in the response body, so save the response to a file. output_format sets MP3 (up to 320 kbps), PCM (up to 48 kHz) or Opus. ElevenLabs' Music Terms also set monthly download limits: downloads not permitted on Free, 30 minutes on Starter, 250 on Creator, up to 4,000 on Business.

Can the ElevenLabs Music API stream audio?

Yes. POST /v1/music/stream takes the same prompt or composition plan as POST /v1/music and returns streaming audio, and POST /v1/music/detailed/stream streams the song with metadata and optional word timestamps as Server-Sent Events. In the SDKs the call is music.stream; see Stream the ElevenLabs Music API.

Which Eleven Music API models are there, and what is music_v2_5?

Eleven Music offers three models at $0.15 a minute: music_v1 (the default, being removed on 31 Jan 2027), music_v2 and music_v2_5. Unlike music_v1, both music_v2 and music_v2_5 support Audio Reference (about 30 seconds of uploaded audio) and always enforce section durations in a composition plan (ElevenLabs compose reference and capabilities overview).

Can I use ElevenLabs Music API songs commercially?

Yes, on paid plans: the API pricing page lists commercial use licensing on Starter and above. Distribution to streaming services starts at ElevenLabs Creator, and film, TV, radio and studio games need ElevenLabs Enterprise Music. Plans from Free to Pro are marked for individual use only, Scale for organizations under 10 employees and Business under 50 (ElevenLabs Music Terms, updated 09 Oct 2026).

Is there a free ElevenLabs Music API?

Not on the Free plan. The ElevenLabs Music Terms give Free no API access, and the docs say the Music API is for paid subscribers; ElevenLabs' API page also lists Pay as you go API access. On Mozart, test keys, reads, job status and cost estimates use no credits, and paid songs start with Mozart API Starter at $20 a month.

How long can ElevenLabs Music API songs be?

ElevenLabs Music API songs can be 3 seconds to 10 minutes long in the compose reference (music_length_ms up to 600,000) and on the product page, while the pricing page and capabilities overview list a 5-minute limit.

Does the ElevenLabs Music API do stems or MIDI?

Stems, yes: POST /v1/music/stem-separation takes an uploaded file and returns a ZIP of stems, with no price on the API pricing page. The Music API lists no audio-to-MIDI or mastering endpoint. Mozart has stem separation, audio to MIDI and mastering endpoints.

What are the ElevenLabs Music API rate limits?

ElevenLabs allows 2 generations at once on Starter, Creator and Pro, 5 on Scale and Business, and 10+ on Enterprise Music (Music Terms, Exhibit A).

Why does the ElevenLabs Music API return bad_prompt?

Prompts that name a band or musician or use copyrighted lyrics are rejected with a bad_prompt error that includes a prompt_suggestion, a revised prompt you can send instead. Composition plans with copyrighted styles return bad_composition_plan with a composition_plan_suggestion, and prompts with harmful material get no suggestion. Remove the reference and resend, or use the suggestion (ElevenLabs Music quickstart and Music Terms).

Is there an open-source ElevenLabs Music API alternative?

ACE-Step is an open-source music generation model on GitHub, licensed under Apache License 2.0. Its README says it "synthesizes up to 4 minutes of music in just 20 seconds on an A100 GPU". You run it on your own hardware rather than call a hosted API (ACE-Step on GitHub, fetched 27 Nov 2026).

Where else can I use the Eleven Music API?

Besides ElevenLabs itself, the Eleven Music models are served by fal.ai ($0.60 a minute), Replicate (about $0.50 a minute), WaveSpeed ($0.60 a minute), Picsart ($0.15 a minute), Venice ($0.75 a minute base price before markup), Segmind (about $0.19 a minute), apiframe ($0.38 for a 2-minute track), Mage Space (3.75 Gems a second), Krea and AIMLAPI, each with its own pricing and terms (hosts table, fetched 27 Nov 2026).

Is there an ElevenLabs Music API alternative priced per song?

Yes. Mozart's music API charges per request, not per minute: from $0.071 a song, 2 songs per request, and the price does not change with song length. ElevenLabs and third-party hosts such as fal.ai bill Eleven Music by the minute ($0.15 and $0.60 per output minute). A request also returns lyrics and cover art, and stems, audio to MIDI and mastering are on the same API. Does Suno have an API? covers Suno.

Get a Mozart API key

Get API keySee pricing

The REST API needs an API plan (Starter, Build, Scale or Growth), from $20 a month, or prepaid API credits, and spends API credits. See Mozart API pricing or read the docs.

Mozart is not affiliated with ElevenLabs. ElevenLabs and Eleven Music are trademarks of their owner, and fal.ai, Replicate, WaveSpeed, Picsart, Venice, Segmind, Mage Space, Krea, AIMLAPI, apiframe, Google, Lyria, Stability AI, Stable Audio, MiniMax, Sonilo, Mureka, Mubert, Beatoven.ai and ACE-Step of theirs, named here only to identify the products compared. Mozart is not affiliated with or endorsed by any of them.