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

      Face Detection

      POST
      https://api.changeface.io/api/v1/face-detection

      Request

      Authorization
      Provide your bearer token in the
      Authorization
      header when making requests to protected resources.
      Example:
      Authorization: Bearer ********************
      Body Params application/json

      Example
      {
          "image_url": "https://1250948203.rsc.cdn77.org/images/4435c59e-7fae-4a7c-acc2-9fbf56878acb.jpg"
      }

      Request Code 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/face-detection' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "image_url": "https://1250948203.rsc.cdn77.org/images/4435c59e-7fae-4a7c-acc2-9fbf56878acb.jpg"
      }'

      Responses

      🟢200成功
      application/json
      Body

      Example
      {
          "faces": [
              {
                  "position": [
                      {
                          "x": 258,
                          "y": 70
                      },
                      {
                          "x": 566,
                          "y": 70
                      },
                      {
                          "x": 566,
                          "y": 428
                      },
                      {
                          "x": 258,
                          "y": 428
                      }
                  ]
              },
              {
                  "position": [
                      {
                          "x": 139,
                          "y": 373
                      },
                      {
                          "x": 354,
                          "y": 373
                      },
                      {
                          "x": 354,
                          "y": 623
                      },
                      {
                          "x": 139,
                          "y": 623
                      }
                  ]
              }
          ]
      }
      Modified at 2024-08-17 08:55:39
      Previous
      Video Face Swap
      Next
      Get Result
      Built with