Submit Song Edit Task
submit_song_edit_taskStarts one Fotor song extension, remix or local edit task. May consume existing Fotor credits. Returns a task ID without waiting for completion; use get_task to check its status once. This tool does not poll for completion. Repeating the request may create another task and consume additional credits. Do not automatically retry when the submission outcome is uncertain. This tool does not purchase credits or initiate a checkout flow.
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>",
"operation": "<operation>",
"lyrics": "<lyrics>"
},
"name": "submit_song_edit_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lyrics | Yes | Lyrics for the generated section; at most 3000 characters for extend/edit, 5000 for remix. | |
| prompt | No | Describe the new arrangement; required for remix only. | |
| audio_url | Yes | Accessible HTTPS song URL. Remix requires mp3/m4a music, 10–350 seconds long, with a detectable beat. | |
| operation | Yes | extend: continue a song; remix: create a new arrangement; edit: replace a time interval. Supply only fields for the chosen operation. | |
| edit_end_ms | No | Replacement end in integer milliseconds; required for edit only. Use a window of at least 3000 ms and leave at least 12000 ms of source audio after it. | |
| extend_type | No | head: extend before the position; tail: extend after it. Required for extend only. | |
| extend_at_ms | No | Extension position in integer milliseconds; required for extend only. | |
| edit_start_ms | No | Replacement start in integer milliseconds; required for edit only. Leave at least 12000 ms of source audio before it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Stable failure code; null when no failure is reported. | |
| status | Yes | Observed task state. processing does not distinguish queued or running; unknown is an unrecognized upstream state. | |
| task_id | Yes | Fotor task ID for get_task. | |
| model_id | Yes | Model ID used for this task. | |
| task_type | Yes | Audio operation performed. | |
| media_type | No | Generated media category. | audio |
| result_url | No | Completed output URL; availability is not guaranteed permanently. Audio output may be MP3 or ZIP. | |
| is_terminal | Yes | Whether the task has completed, failed, timed out or been cancelled. | |
| result_format | No | Completed file format: mp3 audio or zip archive; null until completed. | |
| failure_reason | No | Safe failure summary; may be generic rather than the upstream root cause. | |
| credits_increment | No | Reported task credit cost; not an additional charge on each query. Null if unavailable. |