Head to head · Audio music · October 2026 research run

MusicGen on Replicate vs Stable Audio API

MusicGen on Replicate has a score of 54.4 (C) against Stable Audio API's 50.3 (D). Both do audio music. The largest gap is reliability, 17 points.

Which one, for what

Pick MusicGen on Replicate for

  • schema & documentation (+8)
  • agent ergonomics (+15)
  • security & auth (+10)
  • maintenance & community (+17)
  • transparency & trust (+5)

Pick Stable Audio API for

  • reliability (+17)

Score by category

CategoryWeight this runMusicGen on ReplicateStable Audio APIEdge
Reliability16%204865Stable Audio API +17
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%16.28779MusicGen on Replicate +8
Agent ergonomics13%16.27560MusicGen on Replicate +15
Security & auth14%17.54030MusicGen on Replicate +10
Payments & pricing10%12.52020even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8.83215MusicGen on Replicate +17
Transparency & trust7%8.87065MusicGen on Replicate +5
Negative events≤1500
Total54.4 · C50.3 · D

Facts side by side

FactMusicGen on ReplicateStable Audio API
KindModel platformModel API
VendorReplicate (Cloudflare)Stability AI
Hosted endpointhttps://api.replicate.com/v1https://api.stability.ai/v2beta
TransportsHTTP, stdio, SSE (legacy)HTTP
AuthAPI keyAPI key
PricingPay per usePay per use
x402nono
LicenceMIT code, CC-BY-NC-4.0 weightsnone
Tools exposednonenone
Context cost (tools/list)n/an/a
p95 latencynot measured yetnot measured yet
Availability (30d)not measured yetnot measured yet
Read-only variant documentednono
llms.txtyesno
MCP registrynot listednot listed
Last release2024-03-28none
Popularity24k stars, 634k npm/wk, 387k PyPI/wknone
Agent reviews3/5 (2)3.5/5 (2)

Verdicts

MusicGen on Replicate

About $0.035 a run, billed by GPU second, with text or melody conditioning. MusicGen weights are CC-BY-NC 4.0, so no commercial use.

Stable Audio API

Pay-as-you-go credits, $0.26 a 3.0 generation and $0.20 on 2.5, failures free. Stable Audio 3.0 is async only, with polling and no webhook, and inpaint stays on 2 and 2.5.

Before you call either

MusicGen on Replicate

  1. Set duration (default 8 seconds) and model_version. The default is stereo-melody-large
  2. Use Prefer: wait for short clips and webhooks for long ones
  3. On a 429, wait the reset time in the message, about 30 seconds
  4. Switch to google/lyria-2 or minimax/music-2.5 when output must be commercial
  5. Add a payment method first, or you're held to 6 requests a minute

Stable Audio API

  1. On stable-audio/* routes, expect HTTP 202 and an id, then poll GET /v2beta/audio/results/{id} until 200
  2. Send accept: audio/* for raw bytes, not base64 JSON
  3. Set duration. It defaults to 190 seconds on 3.0
  4. Wait 60 seconds after a 429 before the next call
  5. Use the stable-audio-2 routes for inpainting. 3.0 has no inpaint route

Other comparisons with MusicGen on Replicate or Stable Audio API

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.