Skip to main content
MoneyPrinterTurbo can automatically add background music to your generated videos. You can use the built-in library, specify a particular track, or upload your own MP3 files.

Configuration

bgm_type
string
default:"random"
How to select background music:
  • "random" — pick a random MP3 from the resource/songs/ library
  • "" (empty string) — disable background music entirely
bgm_file
string
default:""
Filename of a specific MP3 to use, e.g. "output013.mp3". The file must exist in the resource/songs/ directory. Takes precedence over bgm_type when set.
bgm_volume
float
default:"0.2"
Background music volume relative to the voice narration. Range: 0.0 (silent) to 1.0 (full volume). The default of 0.2 keeps music subtle so it does not overpower the voice.

Built-in music library

The project ships with a set of default background tracks located in resource/songs/. You can list available tracks via the API:
curl http://localhost:8080/api/v1/musics
{
  "status": 200,
  "message": "success",
  "data": {
    "files": [
      {
        "name": "output013.mp3",
        "size": 1891269,
        "file": "/path/to/resource/songs/output013.mp3"
      }
    ]
  }
}

Adding your own music

You can add custom background music in two ways:
Use the POST /api/v1/musics endpoint to upload an MP3 file. It will be saved to the resource/songs/ directory and immediately available.
curl -X POST http://localhost:8080/api/v1/musics \
  -F "file=@/path/to/my-track.mp3"
{
  "status": 200,
  "message": "success",
  "data": {
    "file": "/path/to/resource/songs/my-track.mp3"
  }
}
The default music files bundled with the project were sourced from YouTube videos. Review them for copyright compliance before using them in published content and remove any files you do not have rights to.

Disabling background music

To generate videos without any background music, set bgm_type to an empty string in your API request:
{
  "video_subject": "benefits of morning exercise",
  "bgm_type": ""
}
Or leave the BGM field empty in the Web UI.

Build docs developers (and LLMs) love