How to Make Background Music for Indie Games With AI

Make scene-consistent, loop-ready indie game BGM with AI: generate steady instrumentals, vary scenes, cut click-free loops, and check licensing and Steam rules.

By LumiMusicPublished

To make background music for an indie game with AI, generate short, steady instrumental tracks in batches instead of expecting a one-click seamless loop from a single prompt. Start in the AI Music Generator, build scene variations with the AI Music Remixer or Reference Audio, cut rhythmic loops on the bar grid in a DAW (or join ambient beds in the free Audio Joiner), and export WAV under a paid plan before shipping commercially.

AI tracks need steady texture before they will loop

Most AI music generators default to pop song arcs: a quiet intro, a rising chorus, a big climax, and a fade-out ending. Dropping a track like that straight into a game engine produces an obvious energy drop or an audible click every time the loop restarts.

Game BGM works better when you separate what AI generates well from what still needs manual editing before import:

Game cue typeWhat AI handles wellWhat you still edit before import
Ambient exploration, menu, or dungeon droneSteady pads, light motifs, and low-fatigue mood bedsTrim slow intros and fade-outs, then crossfade longer beds in Audio Joiner or wrap tails in a DAW
Rhythmic level, town, or combat loopDriving groove, instrument palette, and repeatable energyMeasure tempo in Key & BPM Finder, cut an exact 8-, 16-, or 32-bar loop in Audacity or a DAW, and export WAV or .ogg
Short stingers or exact boss phase transitionsRaw thematic motifs and tonal ideasEdit cue markers, layer transitions, and exact hit points in a DAW or middleware such as FMOD or Wwise

Generate steady instrumental beds in small batches

Open the AI Music Generator, switch to Custom mode (the Advanced tab), and turn Instrumental on so the model leaves out vocals. Write a texture-focused Style prompt (up to 1,000 characters) that asks for a consistent groove rather than song-structure words like chorus, verse, or grand finale.

Put unwanted song traits in Exclude styles (up to 200 characters), not only as negative phrasing inside the main Style box. Blocking vocals, fade-outs, and sudden tempo shifts reduces the number of unusable takes in each batch.

Model and length choices depend on your plan:

  • V4.5 runs on Free and costs 10 credits per task (2 songs per task).
  • V5 and V5.5 require Starter, Pro, Unlimited, or an active credit pack (also 10 credits per task) and unlock custom length from 10 to 360 seconds in Custom mode when Reference Audio is not attached.
  • R1, R2, Mureka V9, and Mureka V9.5 cost 20 credits per task (2 songs per task), do not use the custom-length slider, and hide Exclude styles (which is available on the V-series models). Plan allowances and credit details live on pricing.

Aim for 60 to 120 seconds when you plan to carve out a tight level loop, or 120 to 240 seconds for slow exploration areas where longer phrasing delays listener fatigue. Set Number of songs to generate to batch 2 to 20 songs per click (1 to 10 tasks in steps of 2; up to 20 waiting tasks in queue) with the same Style prompt so you can audition several takes side by side.

Copyable game BGM prompts

Reuse the same Exclude styles value across rhythmic cues (under the 200-character cap):

vocals, singing, choir, spoken word, fade out, silence, sudden tempo change, long quiet intro, rubato, live applause

Town or overworld exploration (Style):

Warm indie RPG town background music, plucked acoustic guitar, soft marimba, gentle flute countermelody, light shaker pulse, steady 96 BPM feel, consistent medium-low energy from bar one, loop-friendly texture, cozy and grounded, clean dry mix without dramatic swells

Combat or boss loop (Style):

Driving indie game combat BGM, tight punchy drums, pulsing synth bass, insistent staccato strings, sharp arpeggiated lead, steady 136 BPM feel, high intensity from the first beat, continuous groove with no breakdown or fade, crisp stereo separation

Retro 16-bit dungeon (Style):

16-bit retro dungeon background music, crisp FM synth bassline, steady chiptune arpeggios, taut electronic snare and kick, mysterious minor key, 118 BPM feel, steady hypnotic energy throughout, dry vintage game soundtrack mix, no cinematic outro

For pure ambient menus or caves with no rhythm section, add drums, percussion, heavy beats to Exclude styles.

Keep menu, exploration, and combat themes cohesive

Generating every area from a fresh prompt often makes a game soundtrack feel like unrelated stock files. Once you find one strong motif, keep adjacent scenes in the same sonic world using one of two paths:

  1. AI Music Remixer for scene variations. Load your strongest exploration take from your library (or upload an audio file up to 20 MB and 8 minutes) in the AI Music Remixer, then steer it into a higher-energy battle cue or a quieter menu arrangement. Pick V4.5, V5, or V5.5 (10 credits per task, 2 takes per task) and turn Instrumental on. Do not select R1 for instrumental BGM: R1 does not support instrumental mode in Remixer.
  2. Reference Audio in AI Music Generator. Attach an approved library track, a recording, or an uploaded MP3 (up to 20 MB and 8 minutes) as Reference Audio to guide new scenes toward the same tone. Reference Audio works on the V-series (V4.5, V5, V5.5) and Mureka (Mureka V9, Mureka V9.5). Keep two model rules in mind: on V-series, attaching Reference Audio skips custom length and tuning sliders; on Mureka, turning Instrumental on with Reference Audio follows the reference audio directly and ignores text Style descriptions.

If a single take already has the right mood but stops too soon, extend it in the AI Music Extender instead of starting over; timestamp continuation patterns are covered in how to make a song longer.

Turn raw takes into click-free loops or adaptive layers

LumiMusic does not include a one-click seamless loop export and does not export .ogg files directly. How you finish a track depends on whether the cue is rhythmic, ambient, or layered.

Cut rhythmic loops on the bar grid

  1. Drop your downloaded WAV into the free browser Key & BPM Finder (accepts MP3, WAV, M4A, FLAC, OGG, and WebM up to 20 MB and 8 minutes; detects 40 to 208 BPM) to get an estimated tempo and key.
  2. Open the WAV in Audacity, Reaper, or another DAW, set the grid to that BPM, and locate a steady 8-, 16-, or 32-bar stretch in the middle of the track, skipping any intro buildup and outro fade.
  3. Trim both boundaries at zero crossings (or apply a 5 to 15 ms micro-fade at each edge). If a cymbal or reverb tail rings past the final bar line, copy the tail spilling past the end cut and mix it onto the start of bar 1 so the decay wraps cleanly when the loop restarts.
  4. Export the loop as WAV or convert to Ogg Vorbis (.ogg). Avoid looping raw MP3 files directly: MP3 encoder padding adds tiny silent frames at the start and end that can create an audible hiccup at the loop point.

Join ambient beds in the browser

For slow ambient exploration or menu beds that do not rely on a tight beat grid, load two or more matching takes into the free Audio Joiner. It runs locally in your browser, accepts MP3, WAV, M4A, FLAC, and OGG up to 250 MB per file (2+ clips, soft warning at 50), and lets you trim intro and outro edges on each waveform.

Leave Trim silence on (clears dead air around -60 dBFS only where clips meet, keeping the first opening and final ending intact), set equal-power Fade out and Fade in durations (default 4 seconds, up to 10 seconds), check every seam with Listen to the joins, and export uncompressed 16-bit / 44.1 kHz WAV or lossless 16-bit FLAC. For phrase-boundary crossfade mechanics, see how to merge two songs; for long ambient assembly, see how to make meditation music for YouTube.

Split adaptive layers and match loudness

If your game adds percussion when combat starts, run a finished track through the AI Stem Splitter (uploads up to 20 MB and 8 minutes). 4-Stem Splitter costs 10 credits on Free and returns vocals, drums, bass, and other on one synced timeline; Advanced Stem Splitter costs 50 credits on Starter+ for additional detected instrument layers. Downloading separated stems requires Starter, Pro, Unlimited, or an active credit pack, and stems download as MP3 files only (single MP3 or ZIP, no WAV option). Trim all exported stems to the exact same sample length in your DAW and convert them to WAV or .ogg so layers stay aligned in your engine. More stem tips are in how to separate vocals from a song.

Before engine import, you can run finished tracks under 8 minutes and 20 MB through AI Mastering (10 credits per track; downloading mastered MP3, WAV, or FLAC files requires Starter, Pro, Unlimited, or an active credit pack) so menu, town, and combat cues share a consistent loudness baseline. See how to prepare a mix for online mastering before mastering dense mixes.

Export formats for Unity, Godot, and Unreal

FormatWhere it comes fromBest use in a game projectNotes
WAVGenerated track downloads (Pro, Unlimited, or active credit pack); Audio Joiner (free local 16-bit / 44.1 kHz export); AI Mastering (Starter+ or active credit pack)Master source for DAW loop trimming and engine importCleanest uncompressed input before engine compression; Starter downloads MP3 for generated tracks
FLACAudio Joiner; AI MasteringLossless project archiveSmaller than WAV; convert to WAV or .ogg if your engine build pipeline prefers them
Ogg Vorbis (.ogg)Exported from Audacity or a DAW (not direct from LumiMusic)Compressed streaming BGM in buildsAvoids MP3 frame-padding loop gaps while keeping package size small
MP3Starter downloads; AI Stem Splitter outputs (single MP3 or ZIP)Playtesting drafts and prototype stem layersConvert to WAV or .ogg and re-verify loop boundaries before shipping

Godot documents three supported audio import formats: WAV, Ogg Vorbis, and MP3 (Godot audio import documentation). Keeping a clean WAV master in your repository lets you re-encode to .ogg or engine-native compression cleanly across Unity, Godot, and Unreal without stacking lossy encodes.

Check commercial licensing and Steam AI disclosure before shipping

LumiMusic commercial license for games

Under LumiMusic's license, Starter, Pro, Unlimited, and active credit packs grant a commercial license that explicitly covers games and apps. Paid access also covers qualifying tracks generated earlier in your account once the plan or credit pack is active, and rights obtained while paid access is active continue after cancellation as long as you keep following the terms. Free and trial-only access do not grant commercial rights on their own.

Paid plans and active credit packs include unlimited downloads. Starter downloads MP3 audio and license certificates; WAV downloads require Pro, Unlimited, or an active credit pack (see pricing). For project records, download a per-track license certificate in Library via the track's ⋯ menu, then Download > License. The certificate is a platform-issued record tied to your account, track, music ID, task ID, and issue time; it is not a copyright registration, legal opinion, storefront approval, or guarantee against third-party claims, and AI-generated music may not be unique.

Steamworks AI disclosure rules

If you plan to release on Steam, Valve's Steamworks Content Survey documentation (introduced in Steam's 9 January 2024 AI Content on Steam announcement, checked November 2026) splits generative AI disclosure into two categories:

  • Pre-Generated: Any content created with AI tools during development that ships with your game and is consumed by players, explicitly including artwork, sound, narrative, and localization. AI-generated BGM bundled in your build belongs here.
  • Live-Generated: Any content created with AI tools while the game is running, which additionally requires describing your guardrails against illegal content.

Under the Steam Distribution Agreement, you promise that your game contains no illegal or infringing content and matches its store marketing. Valve evaluates pre-generated AI output in prerelease review the same way as non-AI content, and portions of your disclosure are displayed publicly on the Steam store page. Other storefronts, console certifiers, publishers, and game jams set their own AI rules, so check each platform's current policy before submission.

FAQ

Can LumiMusic export seamless looping .ogg files directly?

No. LumiMusic exports MP3 and WAV (plus FLAC in Audio Joiner and AI Mastering) and does not provide a one-click seamless loop generator. Export a WAV file, cut your bar-aligned loop in Audacity or a DAW, and export WAV or .ogg from there.

Why did my AI Music Remixer track add vocals to an instrumental?

Check the selected model. In the AI Music Remixer, R1 does not support instrumental mode. Switch to V4.5, V5, or V5.5, turn Instrumental on, and include vocals, singing, choir in Exclude styles.

Can I prototype BGM on the Free plan and upgrade before releasing my game?

Yes. Free access does not grant commercial rights by itself, but once you activate Starter, Pro, Unlimited, or a credit pack, qualifying tracks already in your account can obtain a commercial license. Choose Pro, Unlimited, or an active credit pack if you also need WAV downloads.

Do I need to disclose AI background music on Steam?

Yes, if the AI-generated music ships in your build and players hear it. Steam's Content Survey classifies AI-created sound shipped with the game as Pre-Generated AI content, and part of that disclosure appears on your Steam store page.

Next steps

  1. Open the AI Music Generator and generate a 4- to 6-song instrumental batch for one scene using one of the prompts above.
  2. Pick the steadiest take, check its BPM in Key & BPM Finder, and trim a click-free loop in your DAW (or crossfade ambient takes in Audio Joiner).
  3. Before shipping your build, review pricing and license so you have commercial coverage, WAV files, and per-track license certificates ready alongside your storefront disclosures.