Generate music
generate_musicGenerate music from text prompts, create covers or remixes, emphasize a track, or analyze audio for music production workflows.
Instructions
Generate music with the Audial music model.
Text to music, covers, remixes, lego (re-render with one track emphasised),
or analysis (understand). Use for new or transformed music, not to edit an existing mix:
that is master or stem_split. Takes a few minutes and counts as one run, and audio goes to
a new results folder. When Audial wrote the lyrics, the summary has them:
show them to the user, who can edit them and run again with lyrics.
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 |
|---|---|---|---|
| bpm | No | Tempo hint in beats per minute. | |
| seed | No | Seed for reproducible output. | |
| lyrics | No | Lyrics with optional section tags like [Verse] and [Chorus]. Omit them and, for text2music, Audial writes lyrics from the prompt and sings them (they come back in the result). For no vocals, set instrumental=true. | |
| prompt | Yes | Style description: genre, mood, instruments, vocal character. Tempo and key words in the prompt steer the model more than the numeric bpm/key fields, which are hints, not constraints. | |
| key_scale | No | Key hint, e.g. 'G major'. | |
| task_type | No | text2music (default), cover, remix, lego, or understand. | text2music |
| batch_size | No | Number of variations, 1-8. | |
| track_name | No | Track to emphasise for lego: vocals, drums, bass, guitar, piano, strings, synth, other. | |
| source_file | No | Local audio file; required for remix, lego, understand. | |
| audio_format | No | mp3, wav, flac, opus or aac. | mp3 |
| instrumental | No | Generate without vocals. | |
| audio_duration | No | Length in seconds, up to 360 (longer is capped). text2music ends close to it. Omitted: the length follows the lyrics, and a cover follows its reference. | |
| reference_file | No | Local audio file; required for cover. | |
| repainting_end | No | Remix end time in seconds (-1 = end). | |
| time_signature | No | e.g. '4/4'. | |
| vocal_language | No | Language code for vocals, e.g. 'en'. | en |
| negative_prompt | No | What to avoid, comma-separated. | |
| repainting_start | No | Remix start time in seconds. | |
| audio_cover_strength | No | 0-1 fidelity to the original for cover/remix. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| files | Yes | ||
| summary | Yes | ||
| metadata | Yes | ||
| output_dir | Yes | ||
| execution_id | Yes |