Finding copyright-free background music for indie games, videos, or podcasts is always a massive headache.

Existing AI music generators (like Suno) are incredible, but they usually give you a "black box" mixed MP3. If you want to remove the drums or change the piano melody, you are stuck.

I recently built MuzeGen AI (https://muzegen.ai/) to solve this specific technical problem.

Here is a breakdown of the technical workflow and how we handle the heavy lifting.

🛠️ The Tech Stack

  • Frontend: Modern web stack (Next.js & React) for a smooth, zero-setup UI.
  • Backend: Node.js API handling asynchronous AI generation tasks.
  • Core APIs: Integration with text-to-music generation models, plus specialized audio processing APIs for stem separation and MIDI extraction.

🎹 The Workflow: From Prompt to DAW

When a user types a prompt, the pipeline looks like this:

  1. Generation: The prompt is sent to our text-to-music API to generate a base track (about 30-60s).
  2. Parallel Processing: Once generated, we trigger two parallel API calls:
    • Stem Separation API: Extracts vocals, drums, bass, and other instruments into individual WAV files.
    • MIDI Export API: Transcribes the audio into musical notes (MIDI format).
  3. Data Delivery: The files are uploaded to an S3 bucket and rendered in the frontend dashboard for the user to download.

💡 Why Stem Separation and MIDI matter?

For video editors, stem separation means you can mute the vocals of the BGM while a voiceover is playing.
For music producers, MIDI export means you can drag the AI-generated melody directly into Ableton or FL Studio and swap the instruments with your own VSTs.

🚀 Try it out

The platform is live and we offer a Freemium model so you can test the Stem Separation and MIDI export features without paying.

Check it out here: https://muzegen.ai/

I'd love to hear your thoughts from a technical perspective. Have any of you built similar audio pipelines or dealt with long-running API timeouts? Let's discuss in the comments! 👇