video_generate_music
Generate music from text descriptions. Define style, mood, and duration to create instrumental or vocal tracks.
Instructions
Generate music from a text prompt using the MiniMax API.
Requires the MINIMAX_API_KEY environment variable.
Args: prompt: Text description of the music style, mood, and scenario. Example: "Cinematic orchestral trailer, epic drums, brass, 120bpm". output_path: Absolute path to save the generated audio file. model: MiniMax model to use. "music-2.6-free" for free tier, "music-2.6" for paid (higher quality and RPM). lyrics: Song lyrics with structure tags like [Verse], [Chorus]. Required when is_instrumental=False. is_instrumental: If True (default), generates instrumental music with no vocals. duration: Target duration in seconds. Note: the API determines final length; this is used to guide generation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| output_path | Yes | ||
| model | No | music-2.6-free | |
| lyrics | No | ||
| is_instrumental | No | ||
| duration | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||