generate_music
Generate instrumental game music as a 30–120 second MP3 saved to your Voidless library. Set genre, mood, instruments, tempo and key from a short text prompt.
Instructions
Generate an instrumental music track (no vocals) for a game: an MP3 of 30-120 seconds saved as a music asset in the user's Voidless library. For a single short sound (a hit, a pickup, a click) use generate_sfx instead. 10 credits on every call, whatever the length (each call makes and bills a new track; refunded if it fails); a slow run returns a job for check_generation. Returns the asset ID, the MP3 link and the credits left.
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 in beats per minute, 80-200 (default 100): about 80-100 for calm or exploration music, 120-160 for action or chases | |
| prompt | Yes | 10-300 characters naming the genre, mood, instruments and where it plays, e.g. 'upbeat chiptune with square-wave lead for a title screen'. Leave tempo and key to bpm and keyScale, which are added to the prompt | |
| duration | No | Track length in seconds, 30-120 (default 60). The price does not change with length | |
| keyScale | No | Musical key and scale, e.g. 'A minor', 'D major' (default 'C major'). Minor keys sound darker or tenser, major keys brighter | C major |