generate_music
Generate music tracks from text prompts with optional lyrics, configurable duration, and output file paths for local audio production.
Instructions
Generate music using ACE Step.
Args:
prompt: Music prompts to generate (e.g. "funk, pop, soul, 105 BPM")
lyrics: Lyrics for the song (default: "[instrumental]")
duration: Output length in seconds (default: 60.0)
output_path: Optional output file path. If not provided, a random UUID name will be used.
Returns:
GenerateMusicResponse with success status and output_path or error.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lyrics | No | [instrumental] | |
| prompt | Yes | ||
| duration | No | ||
| output_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message if generation failed | |
| result | Yes | ||
| output_path | No | Path to the generated audio file |