Response Properties
The verdict for the whole file. Absent when no image was analyzed.
One entry per image drawn in the file, in the order they appear.
Show properties
Show properties
"1", "2", … in order of appearance. Ids are assigned before any image is skipped, so they do not change when an image is skipped.Where the image is drawn. A logo on 30 pages is 30 images, each with one location. A single image is one location on page 1 covering the whole page.
Show properties
Show properties
Where the image sits on the page, as fractions of the page width and height, measured from the top-left corner. Absent when the page layout could not be read.
analyzed- the image was checked and charged.skipped- the image is outside the per-image limits, failed a quality check (for example too dark, or too few colors) or could not be read. Free;errorsays why.duplicate- the same picture stored a second time in the file. Free;duplicateOfnames the image it repeats, and itssummary,isAiDetectedandimageInfoare copied from that image. A duplicate never carriesresultordetectedObjects; read them from the image it repeats.failed- detection failed for this image. Refunded;errorsays why.
Present for
skipped and failed images: an error id, such as image_too_small, image_too_large, unsupported_aspect_ratio, image_too_dark, insufficient_colors, image_load_failed, request_timed_out or internal_server_error.The image’s AI score, as in the AI Image Detection Response:
ai and human, each from 0.0 to 1.0.The image’s dimensions (
shape.width, shape.height) and optional metadata, as in the AI Image Detection Response.The detection mask as a transparent PNG at the image’s size (
imageInfo.shape). Present only on analyzed images, and absent for maskType: "none".Show properties
Show properties
The PNG file, base64-encoded. It is a palette PNG whose index is the mask value:
0 human and 1 AI for maskType: "binary", or the confidence level 1 to 5 for maskType: "heatmap". The palette carries the request’s maskStyle colours and opacity, so the PNG can be drawn straight over the image (human pixels are transparent by default). To read the values, open it with any PNG library and read the palette index, for example numpy.array(PIL.Image.open(...)) in Python.Present only on
analyzed images, when the request included objectDetection. One entry per object located in the image; an object that was asked for but not found is left out.Show properties
Show properties
Metadata about the scan operation itself.
Show properties
Show properties
Example Response
A three-page PDF with a logo on page 1, one photo, and one image too small to check, submitted with the defaultbinary mask (the second PNG is shortened here):
{
"model": "ai-image-1-ultra",
"document": {
"type": "pdf",
"pageCount": 3,
"imagesFound": 3,
"imagesAnalyzed": 2,
"imagesSkipped": 1,
"imagesFailed": 0
},
"summary": {
"ai": 0.744,
"human": 0.256,
"isAiDetected": true,
"aiImages": 1
},
"images": [
{
"id": "1",
"locations": [
{ "page": 1, "box": { "left": 0.08, "top": 0.05, "width": 0.16, "height": 0.08 } }
],
"status": "analyzed",
"summary": { "ai": 0.0, "human": 1.0 },
"isAiDetected": false,
"imageInfo": { "shape": { "width": 600, "height": 600 } },
"result": {
"encoding": "png",
"base64": "iVBORw0KGgoAAAANSUhEUgAAAlgAAAJYAQMAAACEqAqfAAAABlBMVEUAAADmOUaZM3zCAAAAAnRSTlMAmf9A5tgAAABDSURBVHja7cEBDQAAAMKg909tDjegAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC+DbIgAAFbm/qRAAAAAElFTkSuQmCC"
}
},
{
"id": "2",
"locations": [
{ "page": 2, "box": { "left": 0.1, "top": 0.3, "width": 0.8, "height": 0.45 } }
],
"status": "analyzed",
"summary": { "ai": 0.93, "human": 0.07 },
"isAiDetected": true,
"imageInfo": { "shape": { "width": 1600, "height": 900 } },
"result": {
"encoding": "png",
"base64": "iVBORw0KGgoAAAANSUhEUgAABkAAAAOEAQMAAADDg2/hAAAABlBMVEUAAADmOUaZM3zCAAAAAnRSTlMAmf9A5tgAAALXSURBVHja7c9BEQAADAIg..."
}
},
{
"id": "3",
"locations": [
{ "page": 3, "box": { "left": 0.4, "top": 0.9, "width": 0.05, "height": 0.03 } }
],
"status": "skipped",
"error": "image_too_small"
}
],
"scannedDocument": {
"scanId": "my-pdf-scan-1",
"expectedCredits": 2,
"actualCredits": 2,
"creationTime": "11/4/2026 10:07:58 AM"
},
"developerPayload": "order-id-12345"
}
Next Steps
Detect AI Images in PDFs
Submit a PDF and read the result document.
API Reference
Explore the v2 asynchronous AI Image Detection endpoint.

