How to Add an AI Music Generator to WordPress

Music is the modality most WordPress site owners assume they can’t offer — it feels like it needs a specialist platform. It doesn’t. StudioUI includes a music studio alongside image, video and chat, so a visitor can describe a track in words and get a full piece of music back, saved to your media library. This guide covers turning the music studio on and getting a first track out of it.

What you’ll need

  • A self-hosted WordPress site with the StudioUI plugin installed (free to start).
  • A connection to hosted compute, or your own backend on Pro — music generation runs on GPUs the same as the other modalities.
  • A page to embed the studio. No audio plugins, no DAW, nothing else.

Step 1 — Install and connect

Activate StudioUI, then connect your site to hosted compute with a one-time connect code. The connection is what lets the music model run without you owning hardware; generations bill to your credit balance.

Step 2 — Embed the studio

Add the studio to any page with the shortcode:

[studioui_studio]

The music studio appears as one of the modalities inside the same interface, so visitors don’t go to a separate page to make a track — they switch modes in place.

Step 3 — Write a music prompt

A good music prompt describes more than a vibe. The strongest results come from naming the genre, the mood, and any lyrics you want sung. “Upbeat lo-fi hip-hop, relaxed and warm, no vocals” gives the model far more to work with than “a chill song.” Decide up front whether you want an instrumental or a vocal track, because that single choice changes the result the most.

Step 4 — Generate the track

Hit generate. A full music track costs 250 credits on hosted compute, with the live cost shown on the button before you commit. Generation takes longer than an image because the model is producing a complete piece of audio. When it’s done, the track is written to your WordPress media library as a normal audio file, ready to attach to a post, embed in a player, or offer as a download.

Step 5 — Decide who generates, and whether to charge

Because each track has a known credit cost, music is easy to monetize: gate the studio to members, or run a public page with a small free allowance and sell credit packs for more. Each track a member generates spends 250 credits from their balance, so your retail credit price sets your margin on every song made on your site.

Troubleshooting

  • Track ignores the genre — lead the prompt with the genre and mood rather than burying them; specific genre tags steer the model best.
  • Wanted instrumental, got vocals (or vice versa) — state it explicitly: “instrumental, no vocals” or provide the lyrics you want sung.
  • Generation seems slow — audio is heavier than a still image; a longer wait is normal, not a fault.
  • Failed render — failed hosted jobs refund credits automatically. A returned balance means it didn’t complete; retry with a simpler brief.

FAQ

How much does an AI music track cost?

250 credits per track on hosted compute, shown live on the generate button. On Pro with your own backend or keys, you pay your provider directly with no per-track StudioUI fee.

Can I add lyrics?

Yes. Include the lyrics you want in the prompt, or ask for an instrumental and leave them out. Describing genre and mood alongside the lyrics gives the most controllable result.

What format is the output?

The finished track is saved to your WordPress media library as an audio file, so you can play, embed or offer it for download like any other media.

Can visitors make their own tracks?

Yes — the studio is interactive. Use WordPress roles and page visibility to decide whether it’s members-only, public with a free allowance, or admin-only.

Do I need any audio software?

No. The generation happens on hosted (or your own) compute and the result lands in WordPress. There’s nothing to install beyond the plugin.

Add a music studio to your site

Install StudioUI free, connect compute, embed the shortcode, and your WordPress visitors can turn a prompt into a finished track — one studio for music, image, video and chat.

Install free · See pricing & credits · Compare to Suno

Related in guides & tutorials

Explore more