POST
/
image-detection
curl --request POST \
  --url https://api.gowinston.ai/functions/v1/image-detection \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "version": "<string>"
}'
{
  "score": 123,
  "human_probability": 123,
  "ai_probability": 123,
  "version": "<string>",
  "mime_type": "<string>",
  "c2pa": {
    "active_manifest": {
      "vendor": "<string>",
      "claim_generator": "<string>",
      "title": "<string>",
      "credentials": {},
      "thumbnail": {},
      "ingredients": [
        "<any>"
      ],
      "ingredient_paths": [
        "<any>"
      ],
      "assertions": {},
      "alg": "<string>",
      "ta_url": "<string>",
      "private_key": "<string>",
      "sign_cert": "<string>"
    },
    "manifests": {
      "<manifest_key>": {
        "vendor": "<string>",
        "claim_generator": "<string>",
        "title": "<string>",
        "credentials": {},
        "thumbnail": {},
        "ingredients": [
          "<any>"
        ],
        "ingredient_paths": [
          "<any>"
        ],
        "assertions": {},
        "alg": "<string>",
        "ta_url": "<string>",
        "private_key": "<string>",
        "sign_cert": "<string>"
      }
    }
  },
  "exif": {
    "DateCreated": "<string>",
    "Description": "<string>",
    "Headline": "<string>",
    "MaxAvailWidth": "<string>",
    "MaxAvailHeight": "<string>",
    "ImageRating": "<string>",
    "DescriptionWriter": "<string>",
    "Genre": "<string>",
    "RightsUsageTerms": "<string>",
    "SceneCode": "<string>",
    "AdditionalModelInformation": "<string>",
    "Creator": "<string>",
    "CreditLine": "<string>",
    "CopyrightNotice": "<string>",
    "ImageSupplier": "<string>",
    "Locationcreated": "<string>",
    "MinorModelAgeDisclosure": "<string>",
    "WebStatementofRights": "<string>",
    "ModelAge": "<string>",
    "ImageSupplierImageID": "<string>",
    "LinkedEncodedRightsExpression": "<string>",
    "DataMining": "<string>",
    "Artwork": "<string>",
    "ImageRegistryEntry": "<string>",
    "City": "<string>",
    "CodeofOrganisationFeaturedintheImage": "<string>",
    "EventIdentifier": "<string>",
    "EventName": "<string>",
    "Contributor": "<string>",
    "CopyrightOwner": "<string>",
    "Country": "<string>",
    "DigitalSourceType": "<string>",
    "PropertyReleaseId": "<string>",
    "PropertyReleaseStatus": "<string>",
    "NameofOrganisationFeaturedintheImage": "<string>",
    "Source": "<string>",
    "DigitalImageGUID": "<string>",
    "Licensor": "<string>",
    "keywords": [
      "<any>"
    ],
    "ImageCreator": {},
    "Instructions": "<string>",
    "Title": "<string>"
  },
  "ai_watermark_detected": true,
  "ai_watermark_issuers": {},
  "credits_used": 123,
  "credits_remaining": 123
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

The URL of the image to scan. The image must be publicly accessible and must be a valid url. We only accept JPG/JPEG/PNG/WEBP images.

version
string

The model version to use. Our latest and most accurate version is "1.0". Using "latest" will make sure you are always using the latest version. Options: 1.0, latest. Default: 1.0.

Response

204 - application/json
score
integer

The human score that the image is likely to be generated by a human. A low score means our system believes that the image is generated by AI, and a higher score means that the system believes that the image is generated by a Human. The score is between 0 and 100. 0 for AI and 100 for Human.

human_probability
integer

The human probability that the image is likely to be generated by a human. The probability is between 0 and 1.

ai_probability
integer

The AI probability that the image is likely to be generated by an AI. The probability is between 0 and 1.

version
string

The model version used to generate the prediction.

mime_type
string

The mime type of the image.

c2pa
object

The Content Provenance and Authenticity (C2PA) metadata of the image. For more information about what is C2PA, please visit https://c2pa.org/

exif
object

The exif metadata of the image. We currently retrieve the XMP, EXIF, and IPTC metadata of the image to help us determine if the image was AI generated. For more information about the IPTC metadata, please visit https://iptc.org/

ai_watermark_detected
boolean

Whether an AI watermark was detected in the image.

ai_watermark_issuers
object

The list of AI watermark issuers detected in the image.

credits_used
integer

The credits_used field represents the number of credits consumed for processing your request. Each image that is processed by the API consumes 300 credits.

credits_remaining
integer

The credits_remaining field shows how many credits you have left in your account after your request has been processed.