The best AI music API going in to 2027, one per job
Published November 2026 · Updated November 30, 2026
There is no single best AI music API; there is a best one for each job a developer's code or an AI agent brings. Here are the 8 jobs, the pick for each and the fact that decides it, then the 10 self-serve APIs side by side on what a pipeline needs going in to 2027: how a job comes back, an MCP server, video in, stems, MIDI in, price and whether you may publish what it makes. Every fact is from the vendor's own pages, checked November 30, 2026. Doseedo makes this page. It is the pick for 4 of the 8 jobs, and the others name the API that is.
The best AI music API going in to 2027, at a glance
The best API to score a video
The pick: Doseedo score_video. The one here that hands back a finished deliverable rather than a music file: the scored video, the score alone, M&E and stems, with a credit ceiling a pipeline sets. It is also far dearer per minute and slower than the two below; for a quick bed under a video, use one of them.
- Doseedo score_video: A finished video in (a link or an upload, up to 256 MB); doseedo's film composer watches it, spots the cues, writes and plays every part on real instruments and mixes it under the dialogue. Back: the scored video, the score alone as a WAV, a printmaster, M&E, dialogue, music and effects stems, and the cue list. One asynchronous job (
POST /api/jobs, kindscore_video) with a signed webhook andmax_credits, a ceiling the run never passes. About 5 to 25 minutes, and 310 to 750 credits for a one-minute video (Pro: 2,000 credits a month for $12). - ElevenLabs video to music: Up to 10 clips (200 MB, 600 s in all) in, music to them out;
add_sfxadds effects cued from the video andseparate_tracksreturns music and effects as separate files. A subscription is required; music is $0.15 a minute. Synchronous. - Mureka Soundtrack: A video or an image in, music that continues for the video's length, up to 5 min 30 s, at $0.10 a call; stems (2, 5 or 12, the 12 with MIDI) are priced separately. Asynchronous: poll a query endpoint. Prepaid packs from $10, valid 12 months; paid API calls carry "full usage rights and commercial authorization". Its MCP server is open source and runs locally.
The best MIDI to audio API
The pick: Doseedo. First on this site's ranking of AI instruments that play your MIDI (checked November 21, 2026), and of the two APIs here that take notes in, the one that returns each part as its own stem.
- Doseedo: Notes as JSON, or a MIDI or MusicXML file, in; each part played exactly as written on one of 100+ instruments (orchestra, band and World), each its own WAV, up to four takes ranked best first. 10 credits per 30 s of audio per group of up to six parts; a quote prices a call first, and the instrument list with each one's range is open with no key.
- Soundverse: MIDI to song among songs, instrumentals, singing, stems (2, 6 or 12) and effects for a video. Each call names its license tier: an instrumental is $0.07 royalty-free, $0.28 for sync (film, TV, ads, games), $0.70 master. Asynchronous: poll or an SSE stream, with an Idempotency-Key.
More: the best AI instruments.
The best AI song generation API
The pick: MusicGPT. Built for pipelines on every point its pages cover: a webhook per request, SDKs, all three no-code platforms and the lowest price per song with vocals here. Choose Treblo to own the output outright, ElevenLabs for one vendor with official SDKs, or Lyria if you are on Google Cloud.
- MusicGPT: Songs with vocals, instrumentals or vocals alone, remix, extend and inpaint, plus sound effects, stem extraction and audio to MIDI, two versions a call, as MP3 or WAV. Asynchronous, with a
webhook_urlon each request; Python and Node SDKs; a verified n8n node, Zapier and Make. Per song $0.035 to $0.10 by plan and model, up to 10 free songs, and 1, 3 or 10 jobs at once (Free, Plus, Pro). Paid plans carry "full commercial rights"; MusicGPT keeps a perpetual license to use outputs for marketing and training. Its API page and its docs give different plan prices. - Treblo: Formerly Sonauto. Songs with vocals or instrumental, up to 4:45, as Opus, MP3, FLAC, WAV or M4A. A webhook on every status change, streaming from about 15 s, and an Idempotency-Key header. $0.06 a song pay as you go; Starter $11 a month for 200 songs; a free trial of about 30 songs after a card check. Its API terms assign the output to you and say nothing restricts monetization.
- ElevenLabs Music API: Songs with vocals or instrumental (3 s to 5 min on its capabilities page; the API reference allows 10), as MP3, PCM or Opus, and stems from any audio file. Official Python and JavaScript SDKs and a hosted MCP server. Music is $0.15 a minute. Calls are synchronous: the audio comes back in the response, and there is no music webhook. Its music terms make Free through Pro "For Individual Use Only" (a company needs Scale, under 10 people, or Business, under 50), and self-serve plans exclude film, TV, radio and studio games.
- Google Lyria 3.5 (Gemini API): Full songs with vocals and timed lyrics from text and up to 10 images, 44.1 kHz stereo, at $0.08 a song (Lyria 3 Clip, a fixed 30 s, $0.04); not on the free tier. The finished result comes back in one response. Google "won't claim ownership" of what it makes, every output carries a SynthID watermark, and the music page makes no statement on commercial use.
Doseedo is not the pick here. Its API plays notes you or your agent wrote, and its prompt-only generation is a sketch, not a song with a lead vocal.
The best API for background music
The pick: Stability AI Stable Audio 3.0. The lowest price per minute here for long instrumental beds, with the output assigned to you: $0.08 for up to six minutes a call.
- Stability AI Stable Audio 3.0: Instrumental music and sound effects from a prompt, audio to audio and inpainting, as MP3 or WAV at 44.1 kHz stereo, 1 to 380 s a call (its prose says up to six minutes). $0.08 a generation (8 credits), 25 free credits, 150 requests per 10 s. Asynchronous: a job id, then poll; results are kept 24 hours. Its terms assign the output to you and its FAQ allows commercial use. Not for intelligible vocals.
- Mubert API: Instrumental tracks from text, an image, a BPM, a genre or an activity, 15 s to 25 min, MP3 or WAV, a live stream over WebRTC and a 12,000-track library; a part (drums, bass, leads) can be replaced or removed. A hosted MCP server that checks your quota before spending it, webhooks on Startup and above, and a verified n8n node. Its Trial plan allows "No monetized content"; Startup adds monetized content.
- Loudly Music API: Music from parameters or text, 30 to 420 s, MP3 and WAV, with 4 stems (12 on its vocal songs), remixing and mastering, behind a hosted MCP server. $0.15 a track pay as you go, $0.125 on its $125-a-month plan, a sub-license included. Its license forbids claiming Content ID on the output, and Loudly keeps the rights.
Doseedo's band generators play a style's arrangement under your direction, every part its own stem with its MIDI, for 10 credits per 30 s per six parts: more per minute than these, for music whose notes you can open and change.
The best sound effects API
The pick: ElevenLabs Sound Effects API. The most complete sound-effects API here: looping, WAV and the same SDKs and hosted MCP server as its music.
- ElevenLabs Sound Effects API: A description in, a sound effect of up to 30 s out, loopable, as MP3, or 48 kHz WAV when not looping, from the same SDKs and hosted MCP server as its music. $0.12 a minute of audio.
- Soundverse Video to SFX: A video in, up to 300 s a call, sound effects timed to it out, at $0.03 to $0.045 a second per take; 20 calls an hour, 100 a day. It makes effects for a video, not music.
Doseedo's generate_sound makes one hit, a loop cut to a tempo or a texture for 10 credits a sound; for a whole film its sound designer places each effect on its moment, in layered stacks.
The best stem separation API
The pick: Doseedo. The one here whose pages document each stem's notes as MIDI and a DAW session from the same job.
- Doseedo: A mix in, its stems as WAVs out: six stems or wider instrument sets, drums and guitars split further, and each stem's notes as MIDI; the same separation can come back as a Logic Pro or Ableton Live session. 20 credits a separation.
- ElevenLabs stem separation: Any audio file in, its stems out as a ZIP, on the same API, SDKs and MCP server as its music.
- MusicGPT: Stem extraction and audio to MIDI among its endpoints, inputs up to 8 minutes, with a webhook per request; free stem splits are rate-limited.
The best music MCP server
The pick: Doseedo MCP. The one here where the agent writes the music itself and hears it played, not only prompts for it, with the widest set of music jobs on one hosted connection.
- Doseedo MCP: Hosted at api.doseedo.com/mcp (Streamable HTTP; OAuth or an API key), in the official MCP Registry: the agent writes the notes and doseedo plays them on 100+ instruments, scores a finished video, makes sound effects, splits and transcribes stems, and reads, edits and converts DAW projects. Every error carries
retryableand the one next step. - ElevenLabs MCP: Hosted at api.elevenlabs.io/v1/mcp with OAuth, in the official MCP Registry: speech, music and sound effects on one connection.
- Suno MCP: Hosted at api.suno.com/mcp: a beta from October 28, available to everyone since November 18, on every plan, spending your credits. Suno publishes no public API docs or prices. Commercial rights start on Pro ($10 a month) and cover downloaded output, 20 downloads a month on Pro.
- Mubert MCP: Hosted at mcp.mubert.com/mcp (OAuth 2.1 or a bearer token), in the official MCP Registry: instrumental tracks and streams, checking your quota before it spends it.
- Loudly MCP: Hosted at mcp.loudly.com, in the official MCP Registry: generation, stems, mixing and mastering on one connection.
More: the doseedo MCP server.
The best music API for n8n, Zapier and Make
The pick: MusicGPT. The one here on all three platforms with music actions. ElevenLabs is on all three too, but none of its listings names a music action.
- MusicGPT: A verified n8n node built by MusicGPT, and apps on Zapier and Make, over its asynchronous API with a webhook per request.
- ElevenLabs: A verified n8n node built by ElevenLabs, and Zapier and Make listings; none of the three names a music action.
- Mubert: A verified n8n node built by Mubert; not on Zapier or Make.
Doseedo has no node of its own on these yet. Its jobs API is one HTTP request with an X-API-Key and an Idempotency-Key, and a signed webhook when the job ends, which an HTTP step in any of the three can send and receive.
The music APIs side by side
The ten self-serve APIs on the questions a pipeline asks before its first call. "Not stated" means we did not find it on the vendor's pages.
| API | How a job comes back | Hosted MCP server | Video in | Stems | Your MIDI in | Lowest price shown | Publish monetized content on its cheapest paid plan |
|---|---|---|---|---|---|---|---|
| Doseedo | Webhook (signed), long-poll or events | Yes, official registry | Yes: scores it | Yes, with each stem's MIDI | Yes | 10 credits per 30 s per six parts (Pro: 2,000 credits for $12 a month) | Yes: you own what you make, the free plan included |
| ElevenLabs | In the response (no music webhook) | Yes, official registry | Yes, with effects | Yes | Not stated | $0.15 a minute | Starter for individuals; a company needs Scale or Business; not film, TV, radio, studio games |
| Stability AI | Poll (results kept 24 h) | Docs only | No | No | No | $0.08 a generation | Yes: the output is assigned to you |
| Google Lyria | In the response | Open source (genmedia) | No (text and images) | No | No | $0.04 a clip, $0.08 a song | Not stated; Google claims no ownership; SynthID watermark |
| Mubert | Poll; webhooks on Startup and above | Yes, official registry | No | Custom plan | No | Not shown without a sale | Not on Trial; yes from Startup |
| Loudly | In the response | Yes, official registry | No | 4 (12 on vocal songs) | No | $0.125 a track | Sub-license; Loudly keeps the rights; no Content ID claims |
| MusicGPT | Webhook per request | No official server | No (images) | Yes | No | $0.035 a song | "Full commercial rights" on paid plans |
| Mureka | Poll | Open source, runs locally | Yes: music for its length | 2, 5 or 12 | No | $0.03 a song from lyrics | "Full usage rights and commercial authorization" |
| Treblo | Webhook on every status change | No | No | No | No | $0.06 a song | Yes: the output is assigned to you |
| Soundverse | Poll or SSE | A page; not on the registries | Effects only | 2, 6 or 12 | Yes | $0.07 an instrumental (royalty-free tier) | By the tier each call names; sync tier for film, TV, ads, games |
Sources: ElevenLabs, Stability AI, Google, Mubert, Loudly, MusicGPT, Mureka, Treblo and Soundverse as listed under each job above; Doseedo from /pricing, /music-api and /mcp.
Named in searches, but no API to call
These come up in searches for an AI music API but have no API a developer can sign up for and call today.
- Suno: platform.suno.com is sign-in only, with no public API docs or prices; Suno's own hosted MCP server is the supported way in (above). Its terms forbid robots and scraping, so a reseller's "Suno API" is not Suno's. (Platform, MCP, MCP release note, Pricing, Terms)
- Udio: udio.com/api returns a 404; there is no API. (Udio)
- MiniMax Music: Its music and lyrics APIs have been closed to new users since August 20, 2026; the model weights are open for self-hosting. (Pricing)
- Beatoven.ai: A documented API with four stems on every track, but its pricing link returns a 404 and its API sign-up site does not resolve; confirm it is on sale before building on it. (API page, API spec)
- SOUNDRAW: An API for embedding its music in an app, from $29.99 a month for 100 songs; its API license asks you to negotiate with SOUNDRAW before commercial use and shares revenue on downloads, so it is not a fit for automated publishing. (API)
- AIVA, Soundful, Musicfy, Tad AI: No public API: aiva.ai/api redirects home, Soundful Studio is no longer available to the public, Musicfy takes an interest form, tad.ai/api returns a 404.
How the picks are made
Each job is the work a pipeline or an agent brings, not a product category. The pick is the API whose own pages document the most of that job for code that runs unattended: how a job comes back (a webhook beats polling), what comes back, what it costs and what you may do with it. Where this site keeps a sourced ranking for the job, the pick is that ranking's first place. A vendor that publishes no API docs or prices is not ranked.
Sources
Every fact about another company's product was read from that company's own pages on November 30, 2026, except where a job links its own ranking, whose sources and check date are on that page. We claim nothing we did not find there, and where a vendor's pages disagree with each other the line says so. Prices and plans change quickly, sale prices most of all; corrections are welcome at [email protected].
- Music for a finished video, in one call: ElevenLabs video to music (Video to music API, API pricing); Mureka Soundtrack (Platform, Pricing, FAQ, Soundtrack API, MCP)
- Your notes played on real instruments: Soundverse (Platform, Pricing, Docs, Video to SFX, MCP); more at the best AI instruments
- A song with vocals from a prompt: MusicGPT (API, Pricing, Webhooks, SDK, Rate limits, Terms, n8n); Treblo (Developers, Pricing, Docs, API terms); ElevenLabs Music API (Music, Compose API, API pricing, Music terms, SDKs); Google Lyria 3.5 (Gemini API) (Music generation, Lyria 3.5, Gemini API pricing, Gemini API terms)
- Instrumental background music at volume: Stability AI Stable Audio 3.0 (Pricing, FAQ, Text to audio API, Prompt guide, Terms); Mubert API (API, API docs, n8n); Loudly Music API (Music API, Developer pricing, MCP, License)
- Sound effects from a description: ElevenLabs Sound Effects API (Sound effects, API pricing, SDKs); Soundverse Video to SFX (Platform, Pricing, Docs, Video to SFX, MCP)
- Stems from a finished mix: ElevenLabs stem separation (Stem separation API, SDKs); MusicGPT (API, Pricing, Webhooks, SDK, Rate limits, Terms, n8n)
- A music MCP server for an AI agent: ElevenLabs MCP (Hosted MCP); Suno MCP (Platform, MCP, MCP release note, Pricing, Terms); Mubert MCP (API, API docs, n8n); Loudly MCP (Music API, Developer pricing, MCP, License); more at the doseedo MCP server
- A no-code flow in n8n, Zapier or Make: MusicGPT (API, Pricing, Webhooks, SDK, Rate limits, Terms, n8n); ElevenLabs (n8n); Mubert (API, API docs, n8n)
The same question, asked other ways
This page answers all of these, one job at a time.
Score every video your pipeline makes
One API key for every Doseedo job: a video scored, notes played, stems split. A free account has 120 credits a month.
Read the music API →FAQ
What is the best AI music API going in to 2027?
It depends on the job. For music for a finished video, in one call: Doseedo score_video. For your notes played on real instruments: Doseedo. For a song with vocals from a prompt: MusicGPT. For instrumental background music at volume: Stability AI Stable Audio 3.0. For sound effects from a description: ElevenLabs Sound Effects API. For stems from a finished mix: Doseedo. For a music MCP server for an AI agent: Doseedo MCP. For a no-code flow in n8n, Zapier or Make: MusicGPT. Each pick is from the vendors' own pages, checked November 30, 2026.
Which AI music APIs have webhooks?
MusicGPT (a webhook_url on each request), Treblo (on every status change), Mubert (on Startup and above) and Doseedo (signed webhooks on every job). Stability AI, Mureka and Soundverse are asynchronous with polling (Soundverse also streams events). ElevenLabs music, Google Lyria and Loudly return the result in the response.
Which AI music API can score a video?
Doseedo's score_video returns the scored video, the score alone, M&E, stems and the cue list from one job, at the highest price per minute here. ElevenLabs' video-to-music takes up to 10 clips and can add effects cued from the video. Mureka's Soundtrack makes music for a video's length, up to 5 min 30 s, for $0.10. Soundverse makes sound effects for a video, not music.
Which AI music APIs have an MCP server for agents?
Hosted: Doseedo, ElevenLabs, Suno, Mubert and Loudly; Doseedo, ElevenLabs, Mubert and Loudly are in the official MCP Registry. Open source to run yourself: Mureka and Google's genmedia servers. Stability AI's MCP server serves its docs only.
Can I monetize videos with music from an AI music API?
On the cheapest paid plan: yes with Stability AI and Treblo (the output is assigned to you), Mureka and MusicGPT (commercial rights on paid calls), and Doseedo (you own what you make, the free plan included). ElevenLabs Starter allows it for individuals, not for film, TV, radio or studio games. Mubert's Trial does not; Loudly forbids Content ID claims and keeps the rights; Soundverse depends on the license tier each call names.
Does Suno have an API?
Not a public one: platform.suno.com is sign-in only, with no published docs or prices. Suno's own hosted MCP server, open to everyone since November 18, 2026, spends your plan's credits; commercial rights start on Pro and cover downloaded output, 20 downloads a month on Pro.
Which is the cheapest AI music API?
Per song with vocals, MusicGPT from $0.035 and Mureka from $0.03 for a song from lyrics. Per minute of instrumental music, Stability AI: $0.08 a generation of up to six minutes. Google Lyria is $0.04 for a 30-second clip and $0.08 a song.
Is Doseedo the best AI music API?
For 4 of the 8 jobs on this page: music for a finished video, in one call, your notes played on real instruments, stems from a finished mix, a music MCP server for an AI agent. For the other 4 it is not the pick, and the page names the API that is: MusicGPT for a song with vocals from a prompt, Stability AI Stable Audio 3.0 for instrumental background music at volume, ElevenLabs Sound Effects API for sound effects from a description, MusicGPT for a no-code flow in n8n, Zapier or Make.