Cancel async image task

POST/v1/async/images/tasks/{task_id}/cancel

Request best-effort cancellation of an asynchronous image task. The response reports the current truthful task state.

A queued task normally becomes cancelled. A task already submitted to a provider may become cancel_requested and can still finish as completed or failed.

Authentication

Authorization Bearer

Path Parameters

task_idstringrequired

Task ID with img_task_ prefix.

Response

idstring

Task ID.

objectstring

image_generation.task

statusstring

cancelled, cancel_requested, or the existing terminal status.

modelstring

Public model name.

executionstring

Requested or resolved execution mode.

versioninteger

Task version.

Request

Shell
1curl -X POST https://api.token360.ai/v1/async/images/tasks/img_task_01abc/cancel \
2  -H "Authorization: Bearer sk-your-api-key"
Was this page helpful?
Cancel async image task · Token360