Mubert in Chat Describe a track, then edit it with words Edit music with words Mubert Cast Turn a raw recording into a finished podcast episode Finish podcast episodes Mubert Fuse Upload a clip, get music that fits its length and mood Music that fits your video

Text to Music: How Prompt-to-Track Generators Work, and Why Keeping the File Is What You Pay For

Text to music generators make tracks cheaply: Google bills $0.06 per 30 seconds of Lyria 2 audio, and Suno's $8 plan caps downloads at 20 a month. Below: three model types, prompts that work, three price models and the licence check.

  
Cloudflare: loading...
Need an idea? Browse 168 music prompts →
Text to Music: How Generators Work and What They CostText to Music: How Generators Work and What They Cost

Text to music generators charge very little to make a track: Google bills $0.06 per 30 seconds of Lyria 2 audio. The bill arrives when you keep the file, and since September 3, 2026 Suno’s $8 Pro plan has allowed 20 downloads a month. In between, a text model turns your prompt into numbers and an audio model builds sound that fits them. This post is for creators and product teams who keep hearing “type a sentence, get a song” and want to know what happens between the prompt and the WAV file. It also covers what the bill looks like once the licence is counted.

Think of a vending machine where pressing the buttons is free. The charge comes at the tray, when the can drops out.

Text to Music: How Generators Work and What They CostText to Music: How Generators Work and What They Cost

Text to music turns your prompt into numbers first

Every text to music system starts by encoding the prompt. Your sentence becomes a list of numbers (an “embedding”) that sits close to descriptions of similar music the model saw in training. The model doesn’t read “melancholy” the way you do. Instead, it checks where “melancholy” landed among the captions people wrote about real recordings.

Those captions matter more than most people expect. When Google’s researchers released MusicLM in 2023, they published MusicCaps with it: 5.5k music-text pairs with descriptions written by human experts. That’s a small dictionary for a large language. Meta says the text and metadata behind MusicGen were English only, and Lyria 2 takes prompts in US English only. So “lo-fi” works fine. The word your aunt uses for the song everyone dances to at weddings probably won’t.

We found this out the slow way. Once, we wrote a prompt like a short story: rain on a train window, a missed call, the city going by. The model gave us a perfectly nice piano loop with no train in it. Genre, tempo, instruments and energy got through. The plot didn’t, because nobody captions a recording with its plot.

Meta also lists a quieter limit. Its training set “contains a larger portion of western-style music”, so a prompt for a style the model rarely heard comes back as the closest western thing it knows. If you want to see which words a model actually follows, we tested that in one sentence, one track, and the words it ignores.

How to write a text to music prompt the model follows

A text to music prompt works best when it reads like a caption: genre, mood, tempo, two or three instruments, and what the track is for. “Calm lo-fi hip hop, soft piano, 80 BPM, for a tutorial” beats a paragraph of poetry. Every word in it is one a person might have written about a real recording.

Saying what to leave out helps too. Lyria 2 has a negative prompt field for exactly that. Put “vocals, drums” there and you get a bed that stays out of your voiceover’s way. Plenty of tools have no such field. In those, leave the unwanted instrument out of the prompt entirely, since “no drums” still puts the word “drums” in front of the encoder.

Repeatability is the other trick. Lyria 2 accepts a seed, a number that pins down the random part of the generation, although it can’t be combined with asking for several samples in one request. Change one word, keep the seed, and you hear what that word actually did. It’s the closest thing to a controlled experiment you’ll get from a text to music tool.

Then stop. Five rewrites of the same prompt usually teach you more about the model than about your track.

Three ways a text to music model makes the sound

After a text to music system turns the prompt into numbers, one of three families of models makes the audio. Two come from research labs. We build the third, so read that part with our bias in mind.

Language models that predict audio tokens

The first approach treats music like text and learns to predict it piece by piece. A neural codec compresses audio into discrete “tokens” (short codes that each stand for a tiny slice of sound). Then a transformer predicts the next token, the same way a chatbot predicts the next word. Meta’s MusicGen works like this. Its paper describes a single language model working over several streams of compressed tokens, and the official repository adds that the tokenizer runs at 32 kHz with 4 codebooks sampled at 50 Hz.

In plain terms, the model makes four small guesses 50 times a second. A decoder turns those guesses back into a waveform.

Structure is the strength. Because it predicts in order, a chorus can “remember” the verse before it. Still, the weakness comes from the same place: every extra second means more predictions, so long tracks take longer and tend to drift. Meta’s announcement lists capturing “even longer range dependencies” as future work. That’s a polite way of saying minute four can forget minute one.

A model is also only as good as its diet. Meta says MusicGen learned from about 20,000 hours of music, roughly 400,000 recordings that were Meta-owned or specifically licensed.

Diffusion models that clean up noise

The second approach starts with static. A diffusion model takes random noise and removes it step by step until what’s left fits the prompt, the same trick image generators use. Stability AI’s research paper on timing-conditioned latent diffusion adds a length input, so you can tell the model how long the clip should be. It reports up to 95 seconds of 44.1 kHz stereo, rendered in about 8 seconds on one NVIDIA A100 GPU.

Diffusion is fast and good at texture. But it shapes the whole clip at once, so its length ceiling is set during training. Anything longer gets stitched.

Composition from samples real musicians recorded

This kind of text to music system doesn’t generate raw waveforms at all. Instead, it composes a track by arranging loops and stems (single instrument parts) that human musicians recorded and uploaded. Mubert Render works this way: AI writes the track from a library of artist-made samples, and the artists who upload them get paid. Sound quality is whatever the musician recorded. Length is whatever you asked for, because the arrangement is written to that duration rather than faded out of a fixed file.

There’s a trade-off. A sample-based system won’t invent a singer performing your lyrics. It makes instrumentals and background music, so a ballad about your cat with vocals needs a different tool (and possibly a different conversation).

Sample rate shows what a generated clip is fit for

Not every text to music tool outputs the same audio quality, and the spec sheet tells you before your ears do. Lyria 2 returns 48 kHz WAV, the rate video editors already work in. Stable Audio’s research model renders 44.1 kHz stereo, the CD rate. MusicGen’s tokenizer runs at 32 kHz.

That last number matters more than it looks. A 32 kHz file can’t hold anything above 16 kHz, which trims some of the airy top end of cymbals. Laptop speakers hide it. On good headphones, though, the hi-hats sound like they’re playing behind a curtain.

Format matters too. A WAV survives a few rounds of editing, while an MP3 you re-encode on every export loses a little each time, like a photocopy of a photocopy. If a tool only gives you compressed audio, edit once and export once.

Length is where generators quietly cut corners

Most text to music generators produce clips of a fixed length and leave the rest to you. Lyria 2 returns 30-second clips. The Stable Audio paper tops out at 95 seconds. Videos are almost never exactly 30 or 95 seconds long.

So people loop, crossfade and trim. For a 15-second Short that’s fine. In a 7-minute tutorial it hurts, because a loop seam every 30 seconds becomes the only thing a viewer notices, like a carpet with the same coffee stain printed on it every metre. If you have to loop, cut on the downbeat of a bar and crossfade over a beat or two, and the seam at least lands where a listener expects change.

Length also keeps changing after you start. In Mubert’s own data, last 28 days, about one in four tracks generated on Render (25.8%) was re-cut to a different duration. People rarely know the final length when they press generate. Every edit of the video moves it again.

A quick tangent. Video editors have a name for the moment the music ends three seconds before the picture does. We can’t print it. Anyway.

Video editor staring in horror at a timeline where a 30-second music clip has been copied and pasted fourteen times to cover a 7-minute video, with visible seams glowing red at every joinVideo editor staring in horror at a timeline where a 30-second music clip has been copied and pasted fourteen times to cover a 7-minute video, with visible seams glowing red at every join

What text to music costs: making is cheap, keeping is the bill

Generating text to music costs little. You pay for the files you download and the rights that come with them. The published prices fall into three models. Count the drafts and they behave very differently.

Per-second APIs bill every draft

Google charges $0.06 per 30 seconds of Lyria 2 output on Vertex AI. A three-minute background track is six clips, so $0.36 before you stitch anything. The meter runs on every attempt. That includes the ones you throw away, so if you make four three-minute drafts to keep one, the kept track cost $1.44.

Still cheap. But the API gives you clips, not a finished track. Joining them, matching them to the edit and hiding seams falls to your code or your editor. If you’re building this into a product, our post on the API workflow with webhooks covers what happens between the request and the file.

Download caps set the real unit price

Subscriptions hide the price in a different place. According to Digital Music News, Suno’s Pro plan costs $8 a month and allows 20 downloads. Premier costs $24 and allows 60. Free accounts get seven downloads in total, and the limits cover every song in the library, including older ones. Extra downloads can be bought, and Premier subscribers working in Suno Studio have no cap.

So for a subscription text to music tool, the cap is the real unit. Use all 20 Pro downloads and each kept track works out to $0.40. Premier comes to the same 40 cents. Generate 200 songs and download 20, and the other 180 were rehearsal. We compared where other free tiers draw this line in free AI music generator plans on one 60-second brief, and the pattern held: making the track is free, keeping it costs money.

Open weights are free until you ship

The third option is to run a text to music model yourself. MusicGen’s code uses the MIT licence. The model weights don’t: they sit under CC-BY-NC 4.0, and the NC stands for non-commercial. Running it on your own hardware is free in the way a puppy is free. You pay for the GPU, the engineer, and the afternoon your drivers spend disagreeing with your Python version.

The same 10-minute video, priced three ways

One real job shows the difference. Take a 10-minute video that needs a bed under the voice. On Lyria 2, ten minutes is 20 clips. That’s $1.20 a draft, or $4.80 for four drafts, plus the time it takes to hide 19 seams.

On Suno Pro, the job spends downloads instead of dollars. Need three songs to fill the runtime? (Fine, one rhetorical question, mid-section.) That’s three of your 20, or $1.20 of the month at full use. If you only use five downloads a month, each one cost you $1.60.

With open weights, the audio is free. The GPU hours cost whatever your cloud bill says, and commercial use isn’t on the table anyway.

None of this is expensive. The difference is where the work lands: in your budget, in your monthly cap, or on your timeline. For scale on the other side, a single stock library licence can cost more than a year of any subscription above, as we found when we checked what a stock music licence buys per track. Our own prices sit on the live pricing page, and we won’t quote one here that will be out of date by spring.

The licence decides the real price of text to music

Two text to music tracks that sound the same can cost very different amounts once you count what you’re allowed to do with them. The questions are boring and decisive. Can you use it commercially? On which platforms, in an ad, a game, a client project? And what proof do you have when someone asks?

The answers differ a lot. Digital Music News reports that Suno’s Pro plan comes with the right to license your tracks commercially. When ElevenLabs launched Eleven Music in August 2025, it signed licensing deals with Merlin and Kobalt for training data and said outputs were cleared for broad commercial use, according to Music Business Worldwide. Google watermarks every Lyria clip with SynthID. MusicGen’s weights, as covered above, are non-commercial.

How the model was trained matters too, because it’s the part of the supply chain that keeps landing in court. A judge gave Udio until December 18 to hand over its prompt and output logs, and the Suno class action has grown to 20 artists. None of that changes what’s on your hard drive today. It does change how much you’ll want a paper trail.

Platforms are setting their own rules on top. YouTube cut subscription payouts for fully generated tracks, and what you can upload and monetise there is laid out in our guide to AI music on YouTube.

On our side, tracks are cleared for commercial use under the platform licence, and the exact scope depends on the plan. The breakdown, with the certificate you keep for each track, is in what each Render plan allows. Whatever text to music tool you pick, read the licence before you publish, not after the email arrives.

A checklist for picking a text to music tool this week

  1. Write down the exact length your video needs before you open any text to music tool.
  2. Rewrite your prompt as a caption: genre, mood, tempo, instruments, purpose.
  3. Compare plans by downloads per month, not by generations.
  4. Divide each monthly price by its download cap to get your real cost per track.
  5. Read the commercial-use clause for where you publish: YouTube, ads, games or client work.
  6. Check the weights licence before you ship anything from a model you run yourself.
  7. Keep the licence certificate or receipt in the same folder as the project file.

Pressing the buttons on a text to music vending machine is free. Getting the can out of the tray costs money, and the licence decides what you’re allowed to do with the can.

Mubert Team

Editorial team, Mubert Inc

The musicians, sound designers and engineers behind Mubert, a generative music platform built from samples by real artists who get paid for them. We write about AI music, licensing, streaming and the creator economy, and we read the fine print so you do not have to.

Who we are

AI Music for Creators

Join 28 million creators generating music via Mubert apps & API integrations

Mubert is a platform powered by music producers that helps creators and brands generate unlimited royalty-free music with the help of AI. Our mission is to empower and protect the creators. Our purpose is to democratize the Creator Economy.

Anghami Adidas Canva DFF FIFA Instories Lift Miller Picsart Polkadot Restream VEED Visa Zoomerang