Cancel async image task
POST
/v1/async/images/tasks/{task_id}/cancelRequest 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_idstringrequiredTask ID with img_task_ prefix.
Response
idstringTask ID.
objectstringimage_generation.task
statusstringcancelled, cancel_requested, or the existing terminal status.
modelstringPublic model name.
executionstringRequested or resolved execution mode.
versionintegerTask version.
Was this page helpful?