Gemini 3.6 Flash and 3.5 Flash Lite are now live on CometAPI →

AI Music API Pricing (2026): Cost per Song Compared

CometAPI
Mia MarenJul 23, 2026
AI Music API Pricing (2026): Cost per Song Compared

TL;DR AI music API pricing ranges from $0.04 for a 30-second Google Lyria 3 Clip to per-minute or per-generation pricing for longer tracks. The best choice depends on output length, structure, licensing, retries, and ultimately the cost per usable song.

AI music APIs are difficult to compare because providers do not sell exactly the same type of output.

A 30-second music clip, a three-minute structured song, and a six-minute audio generation may all be described as "AI music generation," but their billing models and production use cases are very different.

This guide compares current AI music API pricing across Google Lyria, Eleven Music, Stable Audio, and Mureka, then explains how to evaluate the real production cost behind each option.

AI Music API Pricing at a Glance

Provider and modelPublic list priceBilling unitMaximum outputAPI access
Google Lyria 3 Pro$0.08Full songUp to 3 minutesFirst-party API, Preview
Google Lyria 3 Clip$0.0430-second clip30 secondsFirst-party API, Preview
Google Lyria 2 (lyria-002)$0.0630 secondsAbout 30 secondsFirst-party API, GA
Eleven Music$0.15Generated minuteUp to 10 minutesFirst-party API
Stable Audio 2.5$0.20One generationUp to 3 minutesFirst-party API
Stable Audio 3.0$0.26One generationUp to 6 minutesFirst-party API
Mureka API$0.05Per songModel dependentFirst-party API

These prices are not directly interchangeable because providers use different billing units and output formats.

Duration, retries, failed-generation billing, and the percentage of generations that are actually usable can significantly change the final production cost.

The sections below break down each provider before comparing normalized pricing and real cost per usable song.

Google Lyria API Pricing

Google currently offers several Lyria pricing options:

  • Lyria 3 Pro: $0.08 per full song, up to three minutes.
  • Lyria 3 Clip: $0.04 per 30-second clip.
  • Lyria 2: $0.06 per 30 seconds.

According to Google's official Generative AI pricing, Lyria models use different pricing units depending on the generation format.

Lyria 3 Pro is designed for more complete compositions, while Lyria 3 Clip focuses on shorter music assets. Lyria 2 remains the earlier generally available music-generation route.

For developers comparing Google Lyria API pricing, the main question is not simply which model has the lowest price.

The more important question is whether the application needs:

  • Short music clips.
  • Background assets.
  • Full structured songs.
  • Longer production-ready compositions.

At its maximum advertised duration, Lyria 3 Pro works out to a theoretical floor of approximately:

$0.08 / 3 minutes = $0.027 per minute

This makes it one of the lowest normalized prices among models with clearly documented maximum durations.

However, this calculation only matters when the generated output is actually usable.

Developers should review the latest Google Cloud pricing and Lyria documentation before production deployment.

ElevenLabs Music API Pricing

The Eleven Music API costs $0.15 per generated minute according to the official ElevenLabs API pricing.

Estimated generation costs:

DurationEstimated cost
30 seconds$0.08
2 minutes$0.30
5 minutes$0.75
10 minutes$1.50

Eleven Music is designed for longer-form music generation and provides controls around composition, structure, genre, mood, and instrumentation.

The official Eleven Music API documentation describes support for longer-form generation workflows, making it suitable for applications that require more structured musical outputs.

For production teams, the higher per-minute price may still be worthwhile if the model produces more usable outputs with fewer retries and less manual editing.

This is why API list price alone is not enough to determine the cheapest production option.

Stable Audio API Pricing

Stability AI uses credit-based pricing, with one credit equal to $0.01.

According to the official Stability AI developer pricing:

  • Stable Audio 2.5: 20 credits, or $0.20 per generation, for up to three minutes.
  • Stable Audio 3.0: 26 credits, or $0.26 per generation, for up to six minutes.

Because Stable Audio charges per generation rather than per generated minute, its theoretical per-minute price becomes relatively low when the full maximum duration is used.

ModelMaximum-duration calculationTheoretical price floor
Stable Audio 2.5$0.20 / 3 minutes$0.067/min
Stable Audio 3.0$0.26 / 6 minutes$0.043/min

However, maximum duration is not the same as usable duration.

A six-minute generation is only cost-efficient if most of the output meets the application's quality and creative requirements. If a significant portion needs to be discarded or regenerated, the real cost per usable minute will be higher.

For additional background on the model family and API workflow, see CometAPI's Stable Audio 2.0 API overview.

Mureka API Pricing

Mureka currently lists API pricing from $0.045 per song on its official API pricing page.

This is one of the lowest headline prices in the comparison, but the billing unit is not directly comparable with per-minute or maximum-duration pricing.

Before production use, developers should verify the exact:

  • Model.
  • Output duration.
  • Generation workflow.
  • Concurrency limits.
  • Licensing terms.

In other words, "$0.045 per song" should not automatically be treated as cheaper than a three-minute Lyria generation or a six-minute Stable Audio generation without testing them against the same workload.

Does Suno Have a Public Developer API?

Suno is frequently included in AI music comparisons, but its public pricing page currently focuses on creator subscriptions, credits, model access, and commercial-use features rather than listing a first-party per-call developer API price comparable to the providers in the table above.

For that reason, Suno is not included in this article's main API pricing comparison.

Developers comparing AI music costs should distinguish between creator subscriptions and documented production APIs.

Which AI Music API Is Cheapest in 2026?

There is no single cheapest AI music API for every workload because providers use different billing units and output formats.

Among models with clearly documented maximum durations, Lyria 3 Pro has the lowest theoretical normalized per-minute price when its full three-minute output is used.

RouteMaximum-duration calculationTheoretical price floor
Lyria 3 Pro$0.08 / 3 minutes$0.027/min
Stable Audio 3.0$0.26 / 6 minutes$0.043/min
Stable Audio 2.5$0.20 / 3 minutes$0.067/min
Lyria 3 Clip$0.04 / 0.5 minute$0.080/min
Lyria 2$0.06 / 0.5 minute$0.120/min
Eleven MusicDirect per-minute billing$0.150/min

These figures are useful for initial budgeting, but they are not a quality ranking.

A six-minute generation only delivers a low per-minute cost when most of the output is usable. Likewise, generating several independent 30-second clips is not equivalent to generating one coherent full-length song.

Mureka's published per-song price is also difficult to normalize without confirming the exact model and output duration, so it is intentionally excluded from the per-minute table.

The cheapest API therefore depends on what you actually need to produce.

For short-form clips, a low per-generation price may matter most. For longer compositions, structure, consistency, and retry rates can have a larger effect on total cost than the initial API price.

The Real Metric: Cost per Usable Song

For production workloads, the most useful metric is not cost per API call. It is cost per usable song.

The real cost of AI music generation includes every generation, retry, editing step, and review required to produce one output that passes your acceptance criteria.

A simple formula is:

cost per usable song =
  (generation spend
  + retry spend
  + editing spend
  + storage and delivery cost
  + human review cost)
  / accepted songs

For a simpler generation-only estimate:

expected generation cost per accepted song =
  generation cost per attempt / acceptance rate

Consider a two-minute Eleven Music workflow at $0.15 per minute.

ItemCalculationCost
One two-minute generation2 × $0.15$0.30
Expected attempts at 25% acceptance1 / 0.254 attempts
Generation cost per accepted song4 × $0.30$1.20
Example post-processing and storagePlanning assumption$0.06
Estimated workflow cost$1.20 + $0.06$1.26

The 25% acceptance rate and $0.06 post-processing allowance are illustrative assumptions, not ElevenLabs benchmarks.

Using the same hypothetical 25% acceptance rate, one $0.26 Stable Audio 3.0 generation would produce an expected generation cost of:

$0.26 / 0.25 = $1.04 per accepted generation

That does not automatically make Stable Audio cheaper.

The comparison is only meaningful when both outputs meet the same requirements for duration, structure, licensing, prompt adherence, and quality.

A lower list price can still result in a higher production cost if the workflow requires more retries, manual editing, or discarded generations.

For that reason, teams evaluating an AI music API should track both:

  • Cost per generation
  • Cost per accepted output

The second metric is usually more useful for production planning.

How to Compare AI Music APIs for Production

The best AI music API is the one that reliably produces acceptable outputs for your workload—not necessarily the one with the lowest advertised price.

1. Test the Same Workloads

Use consistent prompts based on real production requirements.

For example:

  • A 30-second background track for social video.
  • A two-minute structured song.
  • A loopable soundtrack for a game or application.
  • A brand-safe advertising track with defined instruments, tempo, and exclusions.

Avoid comparing providers using different prompts or hand-picked demos.

2. Measure End-to-End Completion Time

For asynchronous generation workflows, track:

  • Queue time.
  • Generation time.
  • Callback or webhook delay.
  • Download time.
  • p50 completion time.
  • p95 completion time.
  • Provider errors and timeouts.

Request latency alone does not describe the complete production experience.

3. Track the Full Cost of Every Generation

For each request, record:

  • Provider and model version.
  • Requested and returned duration.
  • Number of outputs.
  • Amount billed.
  • End-to-end completion time.
  • Providing success or failure.
  • Editorial acceptance or rejection.
  • Retry reason.
  • Human review and editing time.

These fields allow teams to calculate cost per accepted output rather than relying only on provider pricing pages.

4. Review Licensing Before Scaling

Commercial-use terms can vary by provider, model, plan, and distribution channel.

Before production deployment, check whether your intended use covers:

  • Advertising.
  • Film and television.
  • Games.
  • Podcasts.
  • Streaming distribution.
  • Client work.
  • High-volume automated generation.

Also review restrictions around attribution, artist imitation, output ownership, and enterprise licensing.

5. Test Failure and Version Behavior

Before choosing a provider, confirm:

  • Whether failed jobs are billed.
  • How moderation failures are handled.
  • Webhook retry behavior.
  • Idempotency support.
  • Output URL expiration.
  • Model version pinning.
  • Concurrency and rate limits.
  • Fallback behavior.

A slightly cheaper generation can become more expensive if it creates additional operational work.

Which AI Music API Fits Each Workload?

WorkloadFirst route to testWhyMain check
Short instrumental assetsLyria 2Established short-form API30-second limitation
Short music clips with newer capabilitiesLyria 3 ClipLow per-clip pricePreview availability
Structured full songsLyria 3 ProComplete compositions up to three minutesPreview status and acceptance rate
Long-form audio assetsStable Audio 3.0Up to six minutes at fixed generation pricingUseful output across full duration
Detailed structured compositionsEleven MusicStrong composition and section controlsLicensing and acceptance rate
Low-cost song-generation experimentsMureka APILow published per-song priceExact model and output contract

This table is a starting point for testing, not a universal ranking.

The best production setup may use different models for different workloads rather than routing every request to one provider.

A Practical 50-Prompt AI Music API Evaluation

Once you have narrowed the shortlist, run a controlled benchmark using real production briefs.

A practical 50-prompt test could include:

  • 15 short background tracks.
  • 10 loopable game or application tracks.
  • 10 structured songs.
  • 10 brand-constrained advertising tracks.
  • 5 difficult multilingual or reference-based tasks.

For each provider, calculate:

acceptance rate =
  accepted outputs / completed outputs
cost per accepted output =
  total API spend / accepted outputs
p95 delivery time =
  95th percentile of end-to-end completion time

Do not combine fundamentally different workloads into one overall score.

A provider may be the best option for short background music but perform poorly for longer structured compositions.

The goal should be to identify the best route for each workload rather than declare one universal "best AI music API."

Check Current Model Availability and Pricing on CometAPI

The models in this guide are compared using their providers' public pricing and are not necessarily available through CometAPI.

For models currently supported by CometAPI, check the latest CometAPI pricing page before integration. Model availability and pricing can change, so verify the exact model and endpoint rather than relying on older articles or cached prices.

Developers researching Stability's music-generation model family can also read CometAPI's Stable Audio 2.0 API overview for additional background on the model family and API workflow.

FAQ

How much does an AI music API cost in 2026?

Current public AI music API prices include $0.04 for a 30-second Google Lyria 3 Clip, $0.08 for a Lyria 3 Pro song of up to three minutes, $0.15 per generated minute for Eleven Music, and $0.20 to $0.26 per generation for Stable Audio. Mureka's public API pricing currently starts at $0.045 per song.

Which AI music API is cheapest in 2026?

There is no universal cheapest option because the APIs use different billing units and output formats. Among models with clearly documented maximum durations, Lyria 3 Pro has a theoretical floor of roughly $0.027 per minute when the full three-minute output is used. Mureka also lists a low per-song price, but its output contract should be verified before making a direct comparison.

Does Suno have an API for developers?

Suno's public pricing currently focuses on creator subscriptions, credits, and model access rather than listing a first-party per-call developer API price comparable to the APIs in the main table above. For that reason, Suno is not included in this article's primary API pricing comparison.

How do I calculate the real cost of AI music generation?

Add generation, retry, editing, storage, delivery, and human review costs, then divide the total by the number of outputs that pass your acceptance criteria. A low acceptance rate can make an API with a low advertised price significantly more expensive in production.

What should I test before choosing an AI music API?

Compare prompt adherence, audio quality, song structure, duration, completion time, acceptance rate, retry behavior, rate limits, model stability, commercial-use terms, and cost per accepted output. Use the same prompts and acceptance criteria for every provider.

Ready to cut AI development costs by 20%?

Start free in minutes. Free trial credits included. No credit card required.

Read More