add_samples
Create a Suno task to add a sample from an audio URL at a chosen start and end time. Returns a task ID, status, and output URLs.
Instructions
Create a Suno task on RunAPI (add samples). Returns a task id, status, and output URLs.
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": {
"audio_url": "<audio_url>",
"start_seconds": "<start_seconds>",
"end_seconds": "<end_seconds>"
},
"name": "add_samples"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| prompt | No | Optional description of the sample to add. Declared type: string. | |
| audio_url | Yes | URL of the audio file to sample. Declared type: string. | |
| timeout_ms | No | ||
| end_seconds | Yes | End of the sample range in seconds; must exceed start_seconds. Declared type: number. | |
| callback_url | No | Webhook URL for async notifications. Declared type: string. | |
| start_seconds | Yes | Start of the sample range in seconds. Declared type: number. | |
| poll_interval_ms | No |