Vidu API
Dashboard
Docs
Sign in

Cancel Generation

POST https://api.vidu.com/ent/v2/tasks/{id}/cancel

Request Header

FieldValueDescription
Content-Typeapplication/jsonData Exchange Format
AuthorizationToken {your api key}Replace {} with your API key

Request Body

FieldTypeRequiredDescription
idStringRequiredTask id
The id is returned upon the successful creation of a task by the Start Generating API
curl -X POST -H "Authorization: Token {your_api_key}" -H "Content-Type: application/json" -d '
{
"id": "your_task_id_here"
}' https://api.vidu.com/ent/v2/tasks/{your_id}/cancel

Response Body

FieldTypeDescription
In case of an error, a specific error code will be returned.
Successful response
{}
Failed response
{
"code": 400,
"reason": "BadRequest",
"message": "task state is scheduled, can not cancel",
"metadata": {
"trace_id": "04e5c2fe159ff7c574acd0424e78c35f"
}
}