GET
/
api
/
classification
/
{identifier}
Get an image classification result
curl --request GET \
  --url https://backend.identifai.net/api/classification/{identifier} \
  --header 'X-Api-Key: <api-key>'
{
  "identifier": "8d64370a87b820cc1cf620338f5c898bab37439c9a405f32d9eaffc50c4f27b0",
  "name": "image.jpg",
  "c2pa": null,
  "has_heatmap": true,
  "results": [
    {
      "model": "V011",
      "elapsed_time": 0.19612407684326172,
      "classification": [
        {
          "label": "human",
          "score": 0.9950849413871764
        },
        {
          "label": "artificial",
          "score": 0.004915016237646341
        }
      ]
    },
    {
      "model": "V01",
      "elapsed_time": 0.19582748413085935,
      "classification": [
        {
          "label": "human",
          "score": 0.9630268216133118
        },
        {
          "label": "artificial",
          "score": 0.036973148584365845
        }
      ]
    },
    {
      "model": "brokenwand2",
      "elapsed_time": 0.7836010456085205,
      "classification": [
        {
          "label": "artificial",
          "score": 0.939607322216034
        },
        {
          "label": "human",
          "score": 0.060392677783966064
        }
      ]
    }
  ],
  "verdicts": [
    {
      "heuristic": "Majority",
      "confidence": 0.979055881500244,
      "classification": "human"
    },
    {
      "heuristic": "Average",
      "confidence": 0.6728348135948181,
      "classification": "human"
    },
    {
      "heuristic": "AverageExclude10",
      "confidence": 0.6728348135948181,
      "classification": "human"
    },
    {
      "heuristic": "AverageExclude20",
      "confidence": 0.6728348135948181,
      "classification": "human"
    },
    {
      "heuristic": "AverageExclude30",
      "confidence": 0.6728348135948181,
      "classification": "human"
    },
    {
      "heuristic": "TopRelevant",
      "confidence": 0.99,
      "classification": "human"
    }
  ]
}

Authorizations

X-Api-Key
string
header
required

Your API key.

Path Parameters

identifier
string
required

The identifier of the image.

Response

200 - application/json

The classification result.

The answer for image classification

identifier
string

The identifier that identifies the classified image

name
string

The name of the classified image file

c2pa
object

Coalition for Content Provenance and Authenticity informations that certifies the source and history of media content.

has_heatmap
boolean

If the image has an AI content heatmap. The heatmap png can be retrieved from the specific endpoint /api/classification/heatmap/{identifier}.

results
object[]

Results array

verdicts
object[]

Verdicts array