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.
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
| Metric | ElevenLabs Music API | Mozart API |
|---|---|---|
| Price | $0.15 a minute ($0.45 for 3 minutes) | From $0.071 a song, 2 songs per request |
| Smallest purchase | One clip, billed by length | One 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
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.mp3ElevenLabs Music API Python SDK
With the official Python SDK (pip install elevenlabs):
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:
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):
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.mp3In the Python SDK the call is elevenlabs.music.stream(...), which yields audio chunks you can write as they arrive (Music streaming guide):
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
| Parameter | Values | Notes |
|---|---|---|
prompt or composition_plan | A text prompt, or a structured plan of sections | One of the two is required; plan section durations are always enforced on music_v2 and music_v2_5 |
music_length_ms | 3,000 to 600,000 | Optional, with prompt only; 3 seconds to 10 minutes in the compose reference (5 minutes on the pricing page) |
model_id | music_v1 (default), music_v2, music_v2_5 | Optional; music_v1 is removed on 31 Jan 2027 |
force_instrumental | true or false | Optional; no vocals when true |
output_format | MP3 up to 320 kbps, PCM up to 48 kHz, Opus | Optional; 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.
| Endpoint | What it does | Notes | Source, fetched 27 Nov 2026 |
|---|---|---|---|
POST /v1/music | Generates a song from a prompt or a composition plan | Returns the audio file directly; $0.15 per minute | Compose music |
POST /v1/music/stream | Streams a song from a prompt or a composition plan | Returns streaming audio in the format set by output_format | Stream music |
POST /v1/music/detailed | Composes a song and returns metadata with it | Multipart response with JSON metadata and the audio file | Compose music with details |
POST /v1/music/detailed/stream | Streams a song and its metadata | Server-Sent Events with the composition plan, song metadata, audio chunks and optional word timestamps | Stream music with details |
POST /v1/music/plan | Drafts a structured composition plan from a prompt | Costs no credits; subject to rate limiting | Create composition plan |
POST /v1/music/video-to-music | Generates background music from one or more video files | Multipart upload; videos are combined in order | Video to music |
POST /v1/music/upload | Uploads a song for later inpainting | Costs the same as a generation; half is charged if copyrighted content is detected | Upload music |
POST /v1/music/stem-separation | Splits an uploaded audio file into stems | Returns a ZIP; price not stated on the API pricing page | Stem separation |
GET /v1/music/finetunes | Lists your music finetunes | Get music finetunes | |
POST /v1/music/finetunes | Creates a music finetune from uploaded files | $1.50 per finetune (API pricing page) | Create music finetune |
GET /v1/music/finetunes/{finetune_id} | Gets one finetune | Get music finetune | |
PATCH /v1/music/finetunes/{finetune_id} | Updates a finetune | Update music finetune | |
DELETE /v1/music/finetunes/{finetune_id} | Deletes a finetune | Delete 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):
{
"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 plan | Monthly price | Music minutes included (pricing page) | Music API access |
|---|---|---|---|
| ElevenLabs Free / Pay as you go | $0, then usage | 3 | Free: no (Music Terms). Pay as you go: listed on the API page |
| ElevenLabs Starter | $6 | 40 | Yes |
| ElevenLabs Creator | $22 | 147 | Yes |
| ElevenLabs Pro | $99 | 660 | Yes |
| ElevenLabs Scale | $299 | 1,993 | Yes |
| ElevenLabs Business | $990 | 6,600 | Yes |
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.
| Host | Model id or endpoint | Listed price | Approx. per minute | Source, fetched 27 Nov 2026 |
|---|---|---|---|---|
| ElevenLabs (direct) | POST /v1/music (music_v1, music_v2, music_v2_5) | $0.15 per minute | $0.15 | API pricing page |
| Picsart | elevenlabs-music-v2 | $0.15 a minute | $0.15 | Picsart pricing |
| Segmind | elevenlabs-music (ElevenLabs Music) | $0.003125 per second of output | About $0.19 | Segmind pricing |
| apiframe | elevenlabs-music | $0.38 for a 2-minute track (38 credits at $0.01 a credit) | About $0.19 | apiframe pricing |
| Replicate | elevenlabs/music | $8.30 per 1,000 seconds of output audio | About $0.50 | Replicate model page |
| fal.ai | elevenlabs/music/v2 | $0.60 per output audio minute, rounded up to the closest minute | $0.60 | fal.ai model page |
| WaveSpeed | elevenlabs/music (/api/v3/elevenlabs/music) | $0.10 per 10 seconds, prorated by music_length_ms | $0.60 | WaveSpeed docs |
| Venice | elevenlabs-music, elevenlabs-music-v2, elevenlabs-music-v2-5 | Duration-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 markup | Venice docs |
| Mage Space | eleven_music (eleven-music-v2.5) | 3.75 Gems per second of output (113 Gems for the default 30 seconds) | 225 Gems; dollar rate not shown | Mage Space playground |
| Krea | /generate/audio/elevenlabs/music | Not shown | Not shown | Krea API reference |
| AIMLAPI | elevenlabs/eleven_music | Not shown | Not shown | AIMLAPI 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 length | ElevenLabs Music API, one song | Mozart 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.60 | Up to the model's max_duration_seconds in GET /v1/models |
| 5 min (longest on ElevenLabs' pricing page) | $0.75 | Up 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:
- Short clips and stings. Lengths go down to 3 seconds.
- Exact lengths and section timing.
music_length_mssets the length in milliseconds. Acomposition_plansets sections, and onmusic_v2andmusic_v2_5section durations are always enforced (onmusic_v1, setrespect_sections_durations). Mozart has aduration_secondsinput and no composition plans. - Streaming audio. ElevenLabs has stream endpoints. Mozart returns a job you poll or get a webhook for.
- Video to music, finetunes or reference audio. ElevenLabs has a video-to-music endpoint, finetunes at $1.50 each, and Audio Reference on
music_v2andmusic_v2_5. Mozart offers no video to music or finetunes in v1. - 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.
| Vendor | API | Pricing unit | Source, fetched 27 Nov 2026 |
|---|---|---|---|
| Mozart API | Mozart 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 Lyria | Vertex AI: Lyria 3 Pro, Lyria 3, Lyria 2 | Lyria 3 Pro $0.08 per full song; Lyria 3 $0.04 per 30-second clip; Lyria 2 $0.06 per count | Vertex AI pricing |
| Stable Audio | Stability AI API: Stable Audio 3.0, Stable Audio 2.5 | 8 credits each, at $0.01 a credit; the unit is not stated | Stability AI pricing |
| MiniMax Music | MiniMax 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 2026 | MiniMax pricing |
| Sonilo | Sonilo API: text to music, video to music, sound effects | Credits 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 month | Sonilo pricing |
| Mureka | Mureka API: songs, instrumentals, lyrics, stems | Prepaid API top-ups, valid 12 months from the last recharge; price per song not shown in the public docs | Mureka API FAQ |
| Mubert | Mubert API | Not shown | Mubert API |
| Beatoven.ai | Beatoven.ai API | Not shown | Beatoven.ai API |
| ACE-Step (open source) | Self-hosted model, Apache License 2.0 | No published price; you run it on your own hardware | ACE-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
| Feature | ElevenLabs Music API | Mozart API |
|---|---|---|
| Pricing unit | $0.15 per minute, per variant, plus $1.50 per finetune | 25 credits per request, 2 songs per request, from $0.071 a song |
| Models | music_v1 (default), music_v2, music_v2_5 | hans-2 (Hans 2.0, Mozart's song model with vocals and lyrics) |
| Songs with vocals | Yes, vocals in 59 languages (product page); force_instrumental | Yes; lyrics and instrumental inputs |
| Lyrics | Through the prompt or a composition plan; compose detailed returns word timestamps | Send your own in lyrics, or write them first with POST /v1/lyrics, which is free |
| Cover art | Not in the Music API endpoint list | Free with every song |
| Covers of a song | Not in the Music API endpoint list | POST /v1/covers, 27 credits |
| Reference audio | Audio 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 separation | POST /v1/music/stem-separation, any uploaded file, returns a ZIP; price not stated | Stem 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 MIDI | No endpoint in the Music API | Audio to MIDI: POST /v1/midi, takes a song_id or upload_id, 16 credits a track |
| Mastering | No endpoint in the Music API | Mastering: POST /v1/songs/{song_id}/master, for a song in your Mozart library, 725 credits a track |
| Length control | music_length_ms, 3 s to 10 min in the API reference; 5 min on the pricing page | duration_seconds input, up to max_duration_seconds from GET /v1/models |
| Section control | composition_plan (durations enforced on music_v2 and music_v2_5); POST /v1/music/plan drafts a plan and costs no credits | Not 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 |
| Delivery | Returns the audio file; stream endpoints | 202 Accepted and a job; poll it or receive a signed webhook |
| Concurrency | 2 on Starter to Pro, 5 on Scale and Business, 10+ on Enterprise Music (Music Terms) | See the API reference |
| Video to music | Yes | No |
| Custom voices or styles | Finetunes via finetune_id, $1.50 each | Not offered in v1 |
| Inpainting | ElevenLabs 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 spend | No Music API on ElevenLabs Free | Test keys, reads, job status, cost estimates and dry_run use no credits |
| Failed jobs | Not stated | Credits come back (credits_refunded on the job) |
| Agents | Hosted 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 music | REST API only, with an API key |
| Versioning | music_v1 (the default) is removed 31 Jan 2027 | A /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_prompterror (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:
- Create an API key on the Mozart Developer page.
- Check the key:
Terminal export MOZART_API_KEY=mzk_... curl https://api.mozartai.com/v1/me \ -H "Authorization: Bearer $MOZART_API_KEY" - 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 - 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 listssong_idsandoutputs, each with an audiourlandduration_seconds, pluscredits_chargedandcredits_refunded. For a WAV, FLAC or M4A file, callPOST /v1/songs/{song_id}/downloadwith aformat(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:
- ElevenLabs API pricing
- ElevenLabs pricing FAQ
- How much does Eleven Music cost?
- Compose music, API reference
- Authentication, API reference
- Music quickstart
- Create composition plan, API reference
- Music API endpoint list and each endpoint reference linked in the endpoints table
- Music streaming guide
- Stem separation, API reference
- Music capabilities overview
- ElevenLabs Music Terms
- Upload music, API reference
- Eleven Music API product page
- Eleven Music, now available in the API (ElevenLabs blog, 18 Aug 2025)
- ElevenLabs MCP for ElevenCreative and ElevenLabs MCP server overview
- Host pages for fal.ai, Replicate, WaveSpeed, Picsart, Venice, Segmind, Mage Space, Krea, AIMLAPI and apiframe, linked in the hosts table
- Vendor pages for Google Lyria (Vertex AI pricing), Stable Audio (Stability AI pricing), MiniMax, Sonilo, Mureka, Mubert, Beatoven.ai and ACE-Step, linked in the alternatives table
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.
Related pages
Does Suno have an API?
What Suno offers developers today, and the alternatives.
Read the guideStem separation API
Split a song into vocals, drums, bass and other.
Read the guideAudio to MIDI API
Turn a song or a recording into a .mid file.
Read the guideMastering API
Bring a generated song up to streaming loudness.
Read the guide
Get a Mozart API key
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.