Skip to main content
Glama

music_generation

Generate custom music tracks using AI models by providing prompts and lyrics. Create songs tailored to specific styles, moods, or scenes. Save output in various formats and sample rates for diverse use cases.

Instructions

Create a music generation task using AI models. Generate music from prompt and lyrics.

Note: This tool calls MiniMax API and may incur costs. Use only when explicitly requested by the user.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bitrateNoBitrate of generated music. Values: [32000, 64000, 128000, 256000]
formatNoFormat of generated music. Values: ["mp3", "wav", "pcm"]mp3
lyricsYesSong lyrics for music generation. Use newline (\n) to separate each line of lyrics. Supports lyric structure tags [Intro][Verse][Chorus][Bridge][Outro] to enhance musicality. Character range: [10, 600] (each Chinese character, punctuation, and letter counts as 1 character)
outputDirectoryNoThe directory to save the output file. `outputDirectory` is relative to `MINIMAX_MCP_BASE_PATH` (or `basePath` in config). The final save path is `${basePath}/${outputDirectory}`. For example, if `MINIMAX_MCP_BASE_PATH=~/Desktop` and `outputDirectory=workspace`, the output will be saved to `~/Desktop/workspace/`
promptYesMusic creation inspiration describing style, mood, scene, etc. Example: "Pop music, sad, suitable for rainy nights". Character range: [10, 300]
sampleRateNoSample rate of generated music. Values: [16000, 24000, 32000, 44100]

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/MiniMax-AI/MiniMax-MCP-JS'

If you have feedback or need assistance with the MCP directory API, please join our Discord server