Skip to content
Home

Cancel Task

Cancellation can use the cancel_url from the create-task response, or build the request path with BASE_URL, endpoint, and request_id. Cancellation requests use the PUT method.

Окно терминала
curl -sS -X PUT "${CANCEL_URL}" \
"${COMMON_HEADERS[@]}"
HTTP status codestatusMeaning
202CANCELLATION_REQUESTEDCancellation request accepted
400ALREADY_COMPLETEDThe task is already terminal and cannot be canceled
404NOT_FOUNDThe task does not exist or access is not permitted
  • Allow the user to stop local streaming or polling at any time.
  • Stopping a browser request may not stop upstream generation or billing.