Hive's AI-Generated Image and Video Detection API takes an input image and determines whether or not that image is entirely AI-generated. The AI-Generated Image and Video Detection API has two heads:

Generation classification: ai_generated, not_ai_generated
Source classification: dalle, midjourney, stablediffusion, gan, bingimagecreator, adobefirefly, kandinsky, stablediffusionxl, stablediffusioninpaint, sdxlinpaint, lcm, pixart, glide, imagen, amused, stablecascade, deepfloyd, vqdiffusion, wuerstchen, titan, sora, pika, harper, ideogram, kling, luma, hedra, flux, hailuo, mochi, other_image_generators (image generator other than those that have been listed), inconclusive, inconclusive_video (no video source identified), or none (media is not AI-generated)

The confidence scores for each model head sum to 1.

The first head gives a binary classification for all images, identifying whether or not they were AI generated and the accompanying confidence score. The second head provides further details as to the image's source, with support for the most popular AI art generators currently in use. If the model cannot identify a source, it will return none under the source head.

The Deepfake Detection model's response is contained within a single class: deepfake. Each detected face in the input is assigned a confidence score between 0 and 1, inclusive. The model takes the highest confidence score overall and returns it within the response. If the highest score is closer or equal to 0, the entire input is most likely not a deepfake. If the highest score is closer or equal to 1, the entire input is most likely a deepfake.

An example response is shown below:

{
  "status": [
    {
      "status": {
        "code": "0",
        "message": "SUCCESS"
      },
      "response": {
        "input": {
          "id": <YOUR_ID>,
          "model_version": 1,
          "model_type": "CATEGORIZATION",
          "media": {
            "url": null,
            "filename": "happy-kid.jpg",
            "type": "PHOTO",
            "mime_type": "jpeg",
            "mimetype": "image/jpeg",
            "width": 1680,
            "height": 1050,
            "num_frames": 1,
            "duration": 0
          },
          "created_on": "2024-12-12T22:17:58.373Z",
          "charge": 0.00001,
          "model": "AI art and deepfake detection",
          "user_id": <YOUR_USER_ID>,
          "project_id": <YOUR_PROJECT_ID>
        },
        "output": [
          {
            "time": 0,
            "classes": [
              {
                "class": "not_ai_generated",
                "score": 0.999729757014906
              },
              {
                "class": "ai_generated",
                "score": 0.000270242985094095
              },
              {
                "class": "sora",
                "score": 2.1651054992516057e-11
              },
              {
                "class": "pika",
                "score": 2.070240078710458e-9
              },
              {
                "class": "haiper",
                "score": 0
              },
              {
                "class": "kling",
                "score": 1.823477176944757e-12
              },
              {
                "class": "luma",
                "score": 2.7843635495971033e-10
              },
              {
                "class": "hedra",
                "score": 1.8375188129778193e-9
              },
              {
                "class": "runway",
                "score": 5.887076069488337e-12
              },
              {
                "class": "hailuo",
                "score": 4.853145808550158e-10
              },
              {
                "class": "mochi",
                "score": 4.315328605738985e-12
              },
              {
                "class": "flux",
                "score": 6.562631718798619e-7
              },
              {
                "class": "hallo",
                "score": 7.313830089447301e-12
              },
              {
                "class": "liveportrait",
                "score": 6.356700040276818e-8
              },
              {
                "class": "mcnet",
                "score": 1.0156702303687364e-12
              },
              {
                "class": "pyramidflows",
                "score": 2.0454255192280043e-9
              },
              {
                "class": "sadtalker",
                "score": 1.43497904565091e-13
              },
              {
                "class": "aniportrait",
                "score": 4.2173161943384833e-13
              },
              {
                "class": "cogvideos",
                "score": 2.686570734243788e-11
              },
              {
                "class": "makeittalk",
                "score": 1.0056990735886572e-14
              },
              {
                "class": "sdxlinpaint",
                "score": 1.0947215293587209e-8
              },
              {
                "class": "stablediffusioninpaint",
                "score": 4.3080797707183234e-8
              },
              {
                "class": "other_image_generators",
                "score": 7.41515521419593e-7
              },
              {
                "class": "bingimagecreator",
                "score": 1.369313191497045e-7
              },
              {
                "class": "adobefirefly",
                "score": 0.00006466932215239814
              },
              {
                "class": "lcm",
                "score": 1.393479572371334e-9
              },
              {
                "class": "dalle",
                "score": 0.000013868826810994658
              },
              {
                "class": "pixart",
                "score": 7.173544862983349e-10
              },
              {
                "class": "glide",
                "score": 1.028221013814363e-12
              },
              {
                "class": "stablediffusion",
                "score": 0.00014038097619395527
              },
              {
                "class": "imagen",
                "score": 1.6795509895586478e-7
              },
              {
                "class": "amused",
                "score": 1.0732967556587587e-12
              },
              {
                "class": "stablecascade",
                "score": 1.914989607369415e-9
              },
              {
                "class": "midjourney",
                "score": 0.000028734235753790103
              },
              {
                "class": "deepfloyd",
                "score": 3.397750241282784e-13
              },
              {
                "class": "gan",
                "score": 5.842918135144502e-7
              },
              {
                "class": "stablediffusionxl",
                "score": 7.059498467620128e-7
              },
              {
                "class": "vqdiffusion",
                "score": 1.4754024198644786e-13
              },
              {
                "class": "kandinsky",
                "score": 1.6781844567345194e-7
              },
              {
                "class": "wuerstchen",
                "score": 3.665258287125114e-9
              },
              {
                "class": "titan",
                "score": 2.12332076951067e-10
              },
              {
                "class": "ideogram",
                "score": 0.0000042080740388948535
              },
              {
                "class": "none",
                "score": 0.9997448455524336
              },
              {
                "class": "inconclusive",
                "score": 0
              },
              {
                "class": "inconclusive_video",
                "score": 0
              },
              {
                "class": "deepfake",
                "score": 7.815195911151472e-9
              }
            ]
          }
        ]
      }
    }
  ],
  "from_cache": false,
  "hsl_options": {}
}