Generate music
generate_musicA song or an instrumental from a description, as an MP3 of 3 seconds to 10 minutes (30 s default), cleared for commercial use. Costs credits: elevenlabs-music 150 per minute started. Look in the free library first: search_assets with type audio and category music. Music takes about a minute: this waits about 45 s, then returns job_id for get_job.
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 |
|---|---|---|---|
| prompt | Yes | The music: "calm lo-fi piano for a cozy farming game, 80 BPM". Lyrics may be part of it. | |
| seconds | No | ||
| max_credits | No | ||
| instrumental | No | No singing, whatever the prompt says. | |
| wait_seconds | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| error | No | ||
| output | No | ||
| status | No | ||
| credits | No |