POST
/
predict
curl --request POST \
  --url https://www.scam.ai/api/process/predict \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>'
{
  "fakeness_by_face": [
    0.5
  ],
  "face_coordinates": [
    {
      "x": 123,
      "y": 123,
      "width": 123,
      "height": 123
    }
  ]
}

Authorizations

x-api-key
string
header
required

Body

multipart/form-data
file
file
required

The image file to be processed.

Response

200
application/json
Successful analysis of the image
fakeness_by_face
number[]
required

The likelihood of fakeness for each face in the image, ranging from 0 (real) to 1 (fake).

face_coordinates
object[]
required