Generate track
Search by reference
1. Enter prompt or upload image
or choose:
2. Set type
Track
3. Set duration
:
from 5 sec to 25 min

Text-To-Music

Text-To-Music

The input prompt and Mubert API tags are both encoded to latent space vectors of a transformer neural network. Then the closest tags vector is selected for each prompt and corresponding tags are sent to our API for music generation. Try out the text to music engine to make music generation even easier.
Staff picks

Putting your thoughts into music is easier than you think — Mubert’s text‑to‑music generator turns any written prompt into a custom audio clip in seconds. And if you ever want to mix in visuals, the image-to-music generator can transform your photos into complementary royalty-free soundscapes.

How the Text-to-Music Generator Works

Mubert’s text‑to‑music creator analyzes your words, identifying key emotional cues, rhythm suggestions, and genre hints, then maps them to musical parameters like melody, harmony, and tempo.

  1. The AI music maker breaks down your text for sentiment, pacing, and style.
  2. Based on your words, the system pulls from a library of melodic and percussive elements.
  3. It arranges those elements into loops or full‑length tracks, applying transitions and layering.
  4. Users get a polished audio clip that reflects their prompt’s character, ready for instant download.

This process runs entirely online, so you can create AI music and listen to your sound without leaving your browser.

How to Write Effective Prompts for Music Generation

Crafting a good prompt is part art, part science:

  • Be clear about style, and instead of "nice song", say "lo‑fi hip‑hop beat with soft keys".
  • Set the pace: words like "slow", "steady", or "upbeat" help the AI choose the right tempo.
  • Descriptions such as "rainy city street at night" will give the track atmosphere.
  • Mention "arpeggio", "drum loop", or "bassline" if you want certain elements of your project emphasized.
  • Don’t be afraid to tweak your text and create multiple versions — each click yields a fresh take.

Spend a minute refining your prompt up front, and you’ll save time tweaking the audio later.

Setting Up and Using the Service for the First Time

Open Mubert's webpage, and you'll see a "Generate track" window, where you can enter your prompt in the text box and choose the audio's duration and type. Click "Generate" and download your audio as a WAV or MP3.

Here, you can also explore advanced settings like drum maker or acoustic guitar generator, save favorite prompts, or automate calls via the API to integrate music generation into your own tools.

Advantages of Using Mubert’s Text-to-Music API

Once you start automating your project, you’ll wonder how you ever managed without this API tool:

  • your app or website can generate music on demand — no waiting for composers;
  • you can use the same prompt style across all your content, so everything sounds cohesive;
  • users often start with the free plan, then scale up through paid tiers that unlock longer tracks and higher request limits;
  • every song comes with a clear, commercial‑use license, without hidden fees and manual negotiations.

When you wrap up an online session with Mubert’s text‑to‑music generator, you gain a workspace packed with helpful features, so browse Staff Picks to see how other creators are using prompts, save your favorite royalty-free tracks to a personal library for easy recall, and switch between loop mode for seamless backgrounds or track mode when you need a full‑length piece.