API ReferenceImage

Analyze image files

Upload one or more images and receive a verdict, confidence, and (on detailed plans) generator attribution and a deep-analysis breakdown for each image. Up to 10 images per request, max 50 MB each; formats `jpg`, `jpeg`, `png`, `webp`, `heic`, `heif`, `tiff`.

POST
/api/app/image-forensics/process

Authorization

BearerAuth
AuthorizationBearer <token>

Send your secret API token as a bearer token in the Authorization header: Authorization: Bearer <token>. Keep it server-side and never expose it in client code.

In: header

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

cURL
curl -X POST "https://example.com/api/app/image-forensics/process" \  -F imageFiles="[    \"string\"  ]"
{
  "images": [
    {
      "id": "f1d2e3c4-5678-90ab-cdef-1234567890ab",
      "fileName": "suspect.jpg",
      "verdict": "ai_generated",
      "confidence": 0.972,
      "isManipulated": true,
      "creditsUsed": 1,
      "processingTimeMs": 1840,
      "errorMessage": null,
      "createdAt": "2026-06-07T12:34:56Z",
      "deepfakeScore": 0.12,
      "generators": {
        "midjourney": 0.95,
        "flux": 0.03
      },
      "deepAnalysis": {
        "agreement": "strong",
        "keyIndicators": [
          "Uniform texture across skin regions",
          "Lighting direction is inconsistent with shadows"
        ],
        "detailedReasoning": "The image shows rendering characteristics typical of AI generation, including uniform micro texture and inconsistent lighting.",
        "visualPatterns": [
          "Overly smooth gradients in the background"
        ],
        "recommendations": [
          "Request the original file from the source"
        ],
        "metadataFindings": [
          {
            "kind": "editingSoftware",
            "value": "Adobe Photoshop 24.0",
            "significance": "warning"
          },
          {
            "kind": "createdDate",
            "value": "2026:06:01 10:00:00",
            "significance": "info"
          },
          {
            "kind": "gpsPresent",
            "significance": "notable"
          }
        ]
      }
    }
  ],
  "totalCreditsUsed": 1,
  "totalProcessingTimeMs": 1840,
  "isSuccessful": true,
  "errorMessage": null,
  "hasDetailedReport": true
}
File too large
{
  "error": {
    "code": "IMAGE_FORENSICS:FILE_TOO_LARGE",
    "message": "File photo.jpg exceeds the maximum size of 50 MB."
  }
}
Unsupported format
{
  "error": {
    "code": "IMAGE_FORENSICS:UNSUPPORTED_FORMAT",
    "message": "Unsupported file format. Allowed — jpg, jpeg, png, webp, heic, heif, tiff."
  }
}
{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "Invalid or missing API token."
  }
}