Cancel or delete video generation task
API Configuration
After saving, the Try It panel below sends real requests with this key.
Base: api.xrtoken.ai
Performs different operations based on the current task status:
| Current Status | Action | Resulting Status |
|---|---|---|
queued | Cancel queue, refund frozen amount | cancelled |
succeeded | Delete task record | - |
failed | Delete task record | - |
expired | Delete task record | - |
running | Not supported | - |
cancelled | Not supported | - |
Authorization
BearerAuth AuthorizationBearer <token>
API key authentication (OpenAI format). Pass in the Authorization header:
Authorization: Bearer tr-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
In: header
Path Parameters
taskId*string
Response Body
application/json
application/json
application/json
curl -X delete "https://api.xrtoken.ai/v1/videos/generations/string"Empty
{
"error": "model field is required",
"type": "invalid_request_error"
}{
"error": "invalid or missing API key",
"type": "auth_error"
}{
"error": "string",
"type": "invalid_request_error"
}