Edit Music
beatra.music.editRevise a music track made by beatra.music.generate or an uploaded song: extend it, replace a time range, add vocals to an instrumental, or add accompaniment to a vocal; or make lyric timing (LRC and SRT), extra cover art, a visualizer MP4, or a WAV version of a chosen generated track. To save a track's singer as a persona, use beatra.music.personas.create_from_song. Every operation is a paid task; call beatra.models.list for its price. This billable call consumes Beatra credits and creates an asynchronous task. Submit exactly once, then poll with beatra.tasks.get. Reuse the same client_request_id only for an identical retry.
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": {
"operation": "<operation>",
"source": "<source>",
"client_request_id": "<client_request_id>"
},
"name": "beatra.music.edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | lyrics_timing (LRC and SRT), cover_image, video_mp4, or wav. One per call. | |
| title | No | Title for the result; generated when omitted. | |
| end_ms | No | The range to replace, at least 10 seconds and at most half of the track. | |
| lyrics | No | Lyrics to sing. Required for add_vocals. | |
| prompt | No | Musical style for the new part. Required for add_instrumental; otherwise defaults to the track's style. | |
| source | Yes | The track to work on: an artifact from beatra.music.generate, an uploaded file, or a URL. | |
| start_ms | No | The range to replace, at least 10 seconds and at most half of the track. | |
| operation | Yes | extend, replace_section, add_vocals, add_instrumental, create_persona, or deliverable. | |
| full_lyrics | No | The whole song's lyrics after the change; defaults to the track's lyrics. | |
| instrumental | No | For uploaded audio: continue without vocals. | |
| persona_name | No | Name for the persona. | |
| vocal_end_ms | No | The 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away. | |
| vocal_gender | No | m or f; raises the chance of that voice. | |
| persona_style | No | Optional style notes, up to 200 characters. | |
| video_options | No | For video_mp4: author and brand_text shown in the video, up to 50 characters each. | |
| continue_at_ms | No | Where the extension starts, in milliseconds; defaults to one second before the end of the track. | |
| section_lyrics | No | The new lyrics for the replaced range. | |
| vocal_start_ms | No | The 10–30 second vocal window the persona learns from. Leave both out and Beatra picks the part where the singer is singing; send only one and the other is set 30 seconds away. | |
| negative_prompt | No | Styles to avoid. | |
| client_request_id | Yes | Stable retry identity for this billable operation. Reuse only for the exact same generation arguments. | |
| persona_description | No | What the singer sounds like. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| error | No | ||
| usage | No | ||
| status | No | ||
| billing | No | ||
| task_id | No | ||
| terminal | No | ||
| artifacts | No | ||
| resolved_model | No |