Cancel Task
cancel_my_taskStop one of your generation tasks by task id — 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. Other tasks are never charged for the rest. Returns how many images were saved out of how many you requested.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | Task id from generate_image or list_generations. |