Image and Video Detection

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: sora, pika, haiper, kling, luma, hedra, runway, hailuo, mochi, flux, hallo, hunyuan, recraft, leonardo, luminagpt, var, liveportrait, mcnet, pyramidflows, sadtalker, aniportrait, cogvideos, makeittalk, sdxlinpaint, stablediffusioninpaint, bingimagecreator, adobefirefly, lcm, dalle, pixart, glide, stablediffusion, imagen, amused, stablecascade, midjourney, deepfloyd, gan, stablediffusionxl, vqdiffusion, kandinsky, wuerstchen, titan, ideogram, sana, emu3, omnigen, flashvideo, transpixar, cosmos, janus, dmd2, switti, 4o, grok, wan, infinity, veo3, imagen4, 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.

Additionally, if applicable, the model returns an image's C2PA metadata, which provides information about an image's origin (e.g., which generative model created it). If an image contains C2PA metadata, this field will be non-empty. As an image's metadata can be stripped or falsified, we recommend that customers view the entire API response holistically.

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": {
                    "charge": 0.00001,
                    "created_on": "2025-07-02T19:56:30.232Z",
                    "model": "AI art and deepfake detection",
                    "id": <YOUR_ID>,
                    "media": {
                        "url": null,
                        "filename": "e168e0da-58bd-4981-814d-b84f0431d021.png",
                        "type": "PHOTO",
                        "mime_type": "png",
                        "mimetype": "image/png",
                        "width": 1024,
                        "height": 1024,
                        "num_frames": 1,
                        "duration": 0
                    },
                    "model_version": 1,
                    "model_type": "CATEGORIZATION",
                    "user_id": <YOUR_USER_ID>,
                    "project_id": <YOUR_PROJECT_ID>
                },
                "output": [
                    {
                        "classes": [
                            {
                                "score": 1.1826229754899851e-8,
                                "class": "not_ai_generated"
                            },
                            {
                                "score": 0.99999998817377,
                                "class": "ai_generated"
                            },
                            {
                                "score": 2.1040359546809283e-9,
                                "class": "sora"
                            },
                            {
                                "score": 2.3429066878715762e-7,
                                "class": "pika"
                            },
                            {
                                "score": 7.031529694734537e-13,
                                "class": "haiper"
                            },
                            {
                                "score": 0.00005586580154820276,
                                "class": "kling"
                            },
                            {
                                "score": 1.49943467542021e-10,
                                "class": "luma"
                            },
                            {
                                "score": 2.177887477077908e-9,
                                "class": "hedra"
                            },
                            {
                                "score": 1.8776102258972537e-11,
                                "class": "runway"
                            },
                            {
                                "score": 1.8447056170336998e-9,
                                "class": "hailuo"
                            },
                            {
                                "score": 4.2560564105566734e-10,
                                "class": "mochi"
                            },
                            {
                                "score": 0.9837888174792844,
                                "class": "flux"
                            },
                            {
                                "score": 3.9453355368782256e-10,
                                "class": "hallo"
                            },
                            {
                                "score": 2.728826542926102e-9,
                                "class": "hunyuan"
                            },
                            {
                                "score": 0.00018382625080740157,
                                "class": "recraft"
                            },
                            {
                                "score": 0.000014487252561705784,
                                "class": "leonardo"
                            },
                            {
                                "score": 1.2216635115272718e-8,
                                "class": "luminagpt"
                            },
                            {
                                "score": 5.861358231907847e-9,
                                "class": "var"
                            },
                            {
                                "score": 4.459460293508434e-10,
                                "class": "liveportrait"
                            },
                            {
                                "score": 1.7645475495523584e-8,
                                "class": "mcnet"
                            },
                            {
                                "score": 2.459387852277752e-8,
                                "class": "pyramidflows"
                            },
                            {
                                "score": 1.13446008151774e-8,
                                "class": "sadtalker"
                            },
                            {
                                "score": 2.5486777766981136e-11,
                                "class": "aniportrait"
                            },
                            {
                                "score": 2.000793140686076e-9,
                                "class": "cogvideos"
                            },
                            {
                                "score": 4.096284996725571e-8,
                                "class": "makeittalk"
                            },
                            {
                                "score": 4.81067616279663e-8,
                                "class": "sdxlinpaint"
                            },
                            {
                                "score": 2.2086623049097633e-8,
                                "class": "stablediffusioninpaint"
                            },
                            {
                                "score": 0.0000015689115362348334,
                                "class": "other_image_generators"
                            },
                            {
                                "score": 2.1089682784519743e-10,
                                "class": "bingimagecreator"
                            },
                            {
                                "score": 0.000006519605648458669,
                                "class": "adobefirefly"
                            },
                            {
                                "score": 1.1341276158329729e-7,
                                "class": "lcm"
                            },
                            {
                                "score": 8.58898680852879e-8,
                                "class": "dalle"
                            },
                            {
                                "score": 1.888702351484869e-9,
                                "class": "pixart"
                            },
                            {
                                "score": 3.3598094461304152e-9,
                                "class": "glide"
                            },
                            {
                                "score": 0.0030088822131868853,
                                "class": "stablediffusion"
                            },
                            {
                                "score": 3.335654206435359e-7,
                                "class": "imagen"
                            },
                            {
                                "score": 2.5232429142292513e-10,
                                "class": "amused"
                            },
                            {
                                "score": 1.531920899541143e-7,
                                "class": "stablecascade"
                            },
                            {
                                "score": 0.000260660783347595,
                                "class": "midjourney"
                            },
                            {
                                "score": 9.6738463154581e-9,
                                "class": "deepfloyd"
                            },
                            {
                                "score": 3.4148698211729113e-8,
                                "class": "gan"
                            },
                            {
                                "score": 0.000014244712081204063,
                                "class": "stablediffusionxl"
                            },
                            {
                                "score": 1.383499547947842e-9,
                                "class": "vqdiffusion"
                            },
                            {
                                "score": 5.366587844267814e-7,
                                "class": "kandinsky"
                            },
                            {
                                "score": 1.6002173246827717e-7,
                                "class": "wuerstchen"
                            },
                            {
                                "score": 3.731866824796203e-9,
                                "class": "titan"
                            },
                            {
                                "score": 6.513229322571454e-7,
                                "class": "ideogram"
                            },
                            {
                                "score": 7.3003892961728024e-9,
                                "class": "sana"
                            },
                            {
                                "score": 1.2269087737056171e-9,
                                "class": "emu3"
                            },
                            {
                                "score": 3.208561520092022e-10,
                                "class": "omnigen"
                            },
                            {
                                "score": 2.0162495771633133e-8,
                                "class": "cosmos"
                            },
                            {
                                "score": 2.1761641929096538e-8,
                                "class": "dmd2"
                            },
                            {
                                "score": 5.977256343220127e-11,
                                "class": "flashvideo"
                            },
                            {
                                "score": 4.2267536352052214e-8,
                                "class": "janus"
                            },
                            {
                                "score": 1.8082608066623126e-9,
                                "class": "switti"
                            },
                            {
                                "score": 3.5228989839410106e-10,
                                "class": "transpixar"
                            },
                            {
                                "score": 0.012273669242717028,
                                "class": "4o"
                            },
                            {
                                "score": 0.0001751030421794028,
                                "class": "grok"
                            },
                            {
                                "score": 1.82932707377879e-7,
                                "class": "wan"
                            },
                            {
                                "score": 0.0002114798344383682,
                                "class": "infinity"
                            },
                            {
                                "score": 1.440068939091252e-10,
                                "class": "veo3"
                            },
                            {
                                "score": 0.0000020469353777548857,
                                "class": "imagen4"
                            },
                            {
                                "score": 3.1459091836552764e-8,
                                "class": "none"
                            },
                            {
                                "score": 0,
                                "class": "inconclusive"
                            },
                            {
                                "score": 0,
                                "class": "inconclusive_video"
                            },
                            {
                                "score": 0,
                                "class": "deepfake"
                            }
                        ],
                        "time": 0,
                        "algorithmic_tags": {
                            "c2pa": {
                                "claim_generator": "ChatGPT",
                                "actions_software_agent": "GPT-4o",
                                "actions_action": "c2pa.created",
                                "actions_digital_source_type": "http://cv.iptc.org/newscodes/digitalsourcetype/trainedAlgorithmicMedia"
                            },
                            "xmp": {
                                "digital_source_file_type": "",
                                "credit": "",
                                "digital_source_type": ""
                            },
                            "exif": {
                                "make": ""
                            }
                        }
                    }
                ]
            }
        }
    ]
}