Skip to main content
POST
/
streaming
/
ai
/
tasks
/
{task_id}
/
cancel
Cancel AI task
curl --request POST \
  --url https://api.gcore.com/streaming/ai/tasks/{task_id}/cancel \
  --header 'Authorization: <api-key>'
{
  "result": "Task has been cancelled successfully."
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

task_id
string
required

ID of the task to be cancelled

Response

Accepted. AI-task has been cancelled successfully

result
string

A textual explicit description of the result of the operation