Predicting a synthesised image

You can use this endpoint to detect if an image has been artificially generated.

Once an image has been submitted, our machine learning model will predict the likelihood of the provided image being artificially generated by other models such as Stable Diffusion or Midjourney.

In our testing, each model performed at >80% accuracy in detecting whether an image was a deepfake within their category. The following models are available for use:

Supported file formats include: .PNG, .JPEG & .JPG

Extremely bright or vibrant images may affect accuracy during prediction. Additionally, predictions are indications and shouldn't be considered a definitive answer.

Predicting a synthesised image

POST /api-deepfake-detection

Detect whether an image has been artificially generated.

Headers

Body

Request

curl -X POST \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "imageUrl": "YOUR_IMAGE_URL/image.jpg",
    "modelName": "MODEL_NAME",
    "token": "YOUR_ENDPOINT_TOKEN"
}' \
  https://enterprise.personr.co/api/1.1/wf/api-deepfake-detection

Response

{
    "status": "success",
    "response": {
        "result": "Artificial",
        "labels": [
            "Artificial",
            "Genuine"
        ],
        "confidence": [
            0.875041127204895,
            0.12495886534452438
        ]
    }
}

Last updated