Generate music
audio_musicGenerate music from weighted prompts, up to three minutes.
25 credits per 5 seconds.
Commodity passthrough, offered for convenience rather than price.
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": {
"prompts": "<prompts>",
"projectId": "<projectId>",
"idempotencyKey": "<idempotencyKey>"
},
"name": "audio_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | Tempo in beats per minute. 60 to 200; omit to let the model choose. | |
| density | No | How busy the arrangement should be, from 0 (sparse) to 1 (dense). | |
| prompts | Yes | One to ten weighted descriptions of the music to generate. | |
| projectId | Yes | The project to file this work under. Required — create one with the `projects_create` tool. A project this workspace does not own answers `not_found`; the work is never silently filed somewhere else. | |
| workspace | No | Workspace slug. Omit to use the workspace your credential is bound to. An API key names its own workspace, and a value that disagrees with it is refused rather than ignored. | |
| durationMs | No | Track length in milliseconds. 5,000 to 180,000; defaults to 30,000 (30 seconds). | |
| idempotencyKey | Yes | Required for anything that spends or creates durable state. Generate a unique id per logical call. Retrying with the SAME id and the SAME arguments returns the stored result instead of doing — and charging for — the work twice; the same id with different arguments is refused with `conflict`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||