Generate music
generate_musicCompose a song or instrumental. Default model: music/standard, which works from a prompt alone, or from style, title and lyrics (custom mode) and returns two variations. To build on a generated track, take audio_id and task_id from the tracks of its completed check_job result: music/standard-extend continues it, music/standard-region-edit replaces the lyrics of one section, music/standard-cover restyles it (or an uploaded song given as audio_url). Returns a job; check_job returns the permanent audio URLs and tracks once it is completed. Submitting charges credits, refunded automatically if the job fails; estimate_generation prices a request without charging.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_music"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Music model ID. Default music/standard. | |
| style | No | Style tags for custom mode. | |
| title | No | Track title for custom mode. | |
| extras | No | Model-specific parameters as listed by get_model_params. They are merged with the top-level fields. | |
| lyrics | No | Custom lyrics; section tags such as [verse] on their own lines. | |
| prompt | No | Genre, mood, instruments, tempo, structure and vocal role. | |
| task_id | No | task_id from the same tracks entry (the job_id of that result). | |
| audio_id | No | A generated track to extend, cover or edit: audio_id from the tracks of a completed music result. | |
| audio_url | No | Uploaded source song for music/standard-cover. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| instrumental | No | No vocals. Default false. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. | |
| music_length_ms | No | Approximate length in milliseconds (converted to duration in seconds). | |
| force_instrumental | No | Alias of instrumental. |