Cancel Task
cancel_my_taskStop one of your picture, video or sound jobs by its id. Pictures: works on queued and running tasks; pictures already made stay in your library. For a background batch, the cancel is sent to the picture maker: any picture not made is not charged and its tokens come back to you, and if the batch finishes first you keep all of them. Returns how many images were saved out of how many you requested. Videos (the job id or task id from generate_video or list_my_videos): a video still waiting to start is stopped and its tokens come back; one the video maker is already making cannot be stopped partway, and the answer says so. Sound (a generation_id or a rendering request_id): sound makers cannot stop a take partway, so the answer says whether it is finished or still being made. A finished video or sound is not removed here: use delete_my_videos or delete_my_audio.
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": {
"taskId": "<taskId>"
},
"name": "cancel_my_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | The id to stop: a picture task id (generate_image, list_generations), a video job id or task id (generate_video, list_my_videos), or a sound generation_id or request_id (generate_audio, list_my_audio). |