music-generation

Generate MP3 music tracks from JSON prompts via the MiniMax music API.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/ainlper/dra-drb2 --skill music-generation-ainlper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: music-generation
Source: https://github.com/ainlper/dra-drb2/tree/main/deer-flow/skills/public/music-generation
Command: npx skills add https://github.com/ainlper/dra-drb2 --skill music-generation-ainlper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the need for generating custom music based on specific style, mood, and scene descriptions, offering the flexibility to include optional lyrics.

Core Features & Use Cases

  • Music Generation: Compose songs from a structured JSON spec using the MiniMax music API.
  • Style/Mood/Scene: Define the desired musical character through prompts.
  • Lyrics Option: Provide lyrics or let the model auto-write them based on the prompt.
  • Use Case: Create a background track for a video project or a theme song for a new brand.

Quick Start

Generate a music track with the style 'indie folk' and mood 'melancholic' by providing the prompt 'walking alone, cafe' and optional lyrics.

Frequently Asked Questions about music-generation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate music from a text prompt?

To generate music from a text prompt, you provide a structured JSON spec containing style, mood, and scene descriptions to the MiniMax music API. The Skill processes this JSON input and outputs an MP3 file of the generated song.

Can I include my own lyrics when composing a song automatically?

Yes, you can include your own lyrics when composing a song by providing them in the JSON input. If you omit the lyrics, the model can auto-write them based on your specified style, mood, and scene prompts.

Do I need a MiniMax API key to use this music generation Skill?

Yes, you need a MINIMAX_API_KEY to access the MiniMax music API for song composition. The Skill requires this key as an environment variable to authenticate requests and generate MP3 files.

What is the best way to create a background track for a video project?

The best way to create a background track is to define the desired musical character through style, mood, and scene prompts. This Skill uses those prompts to compose custom music, outputting an MP3 file ready for your video project.

Does this music generation tool work with Python requests?

Yes, this music generation tool works with Python by utilizing the requests library to communicate with the MiniMax API. It passes your JSON formatted style and mood prompts to generate the audio output.

What are the limitations of generating music with mood prompts?

A limitation of generating music with mood prompts is that the input must be structured as a JSON spec. The quality of the MP3 output depends entirely on how accurately the style, mood, and scene descriptions are defined in the prompt.