ChangeFace
    ChangeFace
    • Introduction
    • Image Face Swap
      POST
    • Video Face Swap
      POST
    • Face Detection
      POST
    • Get Result
      GET

      Video Face Swap

      POST
      https://api.changeface.io/api/v1/video-face-swap

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json
      source_image
      string 
      required
      The face image url(heic、jpeg、jpg、png、webp) you want to change.
      target_video
      string 
      required
      The target video url(only mp4) you want to swap faces with.
      Example
      {
        "source_image": "https://1250948203.rsc.cdn77.org/images/d3a6ea8e-d949-4b7c-8966-3ecf2796751d.jpg",
        "target_video": "https://1250948203.rsc.cdn77.org/videos/4c373632-8976-4e43-ae75-a5ec7d5ee1b7.mp4"
      }

      Request samples

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request POST 'https://api.changeface.io/api/v1/video-face-swap' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "source_image": "https://1250948203.rsc.cdn77.org/images/d3a6ea8e-d949-4b7c-8966-3ecf2796751d.jpg",
          "target_video": "https://1250948203.rsc.cdn77.org/videos/4c373632-8976-4e43-ae75-a5ec7d5ee1b7.mp4"
      }'

      Responses

      🟢200成功
      application/json
      Body
      message
      string 
      required
      the response message
      type
      string 
      required
      the type of the task
      status
      string 
      required
      the task status
      created_at
      string 
      required
      the create time of the task
      id
      integer 
      required
      the id of this task
      Example
      {
        "message": "success",
        "type": "create_face_swap_video_generation",
        "status": "pending",
        "created_at": "2024-08-17T08:23:48.000000Z",
        "id": 165964
      }
      Previous
      Image Face Swap
      Next
      Face Detection
      Built with