Face Swap API
  1. Face Swap APIs
Face Swap API
  • Start Your Face Swap
  • Pricing
  • Face Swap APIs
    • Get Face Swap Task Info by ID
      POST
    • Create Face Swap Task
      POST
    • Cancel Face Swap Task (if still pending)
      POST
  • Other APIs
    • Face detection from image/video URL
      POST
    • Get video info from url
      POST
  1. Face Swap APIs

Cancel Face Swap Task (if still pending)

POST
/cancel-task
Last modified:2025-05-30 21:47:47
Maintainer:Not configured
This API allows clients to cancel a face swap task only if it is still in the pending state (i.e., waiting in the queue).
Once the task enters processing or is already completed, it cannot be cancelled.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/cancel-task' \
--header 'x-api-key: dfed35b0-350c-11f0-9d91-1507389bbab0' \
--header 'Content-Type: application/json' \
--data-raw '{
    "task_id": "string"
}'
Response Response Example
{
    "code": 0,
    "info": "string",
    "data": "string"
}

Request

Header Params
x-api-key
string 
optional
Example:
dfed35b0-350c-11f0-9d91-1507389bbab0
Body Params application/json
task_id
string 
required
Examples

Responses

🟠400Invalid status value
application/json
Body
code
integer 
required
info
string 
required
data
string 
required
Previous
Create Face Swap Task
Next
Face detection from image/video URL
Built with