---
Source: https://docs.microblink.com/on-prem/verify-generic-image
Title: Detect AI-generated images
Description: Run generative AI detection on any image with the /api/v3/verify-generic-image endpoint
---

# Detect AI-generated images

:::note

Added in version 4000.3.0.

:::

`POST /api/v3/verify-generic-image` checks whether an image was produced by generative AI.

It runs only the [generative AI check](/verify/ai-generated-images), on the whole image.
There's no document detection, cropping, extraction, or image quality assessment, so the image doesn't have to contain an identity document.

## Request

The request is `multipart/form-data` with the following parts:

- `image`
  - The image to check: a single JPEG or PNG, subject to the limits in [Image formats](./image-formats.md).
  - required
- `configuration`
  - JSON settings, sent as a text value or as a JSON file part.
  - optional
- `traceId`
  - Your own identifier for the request, at most 256 characters.
    It's returned in `runtime.traceId`.
  - optional

Document image parts, such as `imageFirstSide`, are rejected.

```bash
curl --request POST --form "image=@image.jpg" http://localhost:8080/api/v3/verify-generic-image
```

## Configuration

The only setting is `verification.settings.generativeAiSensitivity`.

```json title="configuration.json"
{
  "verification": {
    "settings": { "generativeAiSensitivity": "Level7" }
  }
}
```

Levels range from `Level1` (least strict) to `Level10` (most strict).
`Disabled` skips the check.
If left unset, the default is `Level5`.

```bash
curl --request POST --form "image=@image.jpg" --form 'configuration={"verification":{"settings":{"generativeAiSensitivity":"Level7"}}}' http://localhost:8080/api/v3/verify-generic-image
```

## Response

```json
{
  "verification": {
    "verdict": "Accept",
    "checks": {
      "visualCheck": {
        "result": "Pass",
        "passesAtOrBelowSensitivity": "Level10",
        "generativeAiCheck": {
          "result": "Pass",
          "passesAtOrBelowSensitivity": "Level10"
        }
      }
    }
  },
  "configurationUsed": {
    "verification": {
      "settings": { "generativeAiSensitivity": "Level5" }
    }
  },
  "runtime": {
    "startedOn": "2026-11-30T13:00:00.000Z",
    "finishedOn": "2026-11-30T13:00:00.250Z",
    "elapsedMs": 250,
    "blinkIdVerifyVersion": "4000.6.0",
    "executionId": "5d0c1f7a-9a63-4f3e-8f0e-2b6d4a1c9e57"
  }
}
```

For the full schema and every error response, see the [API reference](/on-prem/api/ref).


Last updated on Nov 30, 2026
