AI Image Detection Response
The Copyleaks AI Image Detection API returns a detailed response containing the analysis summary, image information, and a Run-Length Encoded (RLE) mask to identify AI-generated regions.
Response Properties
Section titled “Response Properties”The version of the AI detection model used for the analysis.
  result object     
 Contains the Run-Length Encoded (RLE) mask data. This can be used to visualize the AI-detected regions of the image.
An array of starting positions for each AI-detected segment in the flattened 1D image array.
An array of lengths for each AI-detected segment, corresponding to the starts array.
  summary object     
 An object containing the overall proportion of human vs. AI-generated pixels.
The proportion of the image determined to be human-created. The value ranges from 0.0 to 1.0.
The proportion of the image determined to be AI-generated. The value ranges from 0.0 to 1.0.
  imageInfo object     
 An object containing metadata about the analyzed image.
  shape object     
 The dimensions of the image.
The height of the image in pixels.
The width of the image in pixels.
  metadata object     
 Optional metadata extracted from the image file.
The timestamp (if available in EXIF data) indicating when the image was created.
The AI service or tool that created the image, if this information is present in the metadata.
The application or device used to create the image, if available in the metadata.
A summary of how the image was generated., if available in the metadata.
  scannedDocument object     
 Metadata about the scan operation itself.
The unique identifier for this scan, provided by you in the request.
The actual number of credits consumed by the scan.
The expected number of credits for the scan.
The ISO 8601 timestamp indicating when the scan was created.
Example Response
Section titled “Example Response”{  "model": "ai-image-1-ultra",  "result": {    "starts": [0, 512, 1536, 2560],    "lengths": [256, 512, 768, 1024]  },  "summary": {    "human": 0.3,    "ai": 0.7  },  "imageInfo": {    "shape": {      "height": 1024,      "width": 768    },    "metadata": {      "issuedTime": "2025-07-23T12:44:05",      "issuedBy": "OpenAI",      "appOrDeviceUsed": "OpenAI-API",      "contentSummary": "Created using generative AI"    }  },  "scannedDocument": {    "scanId": "my-scan-id-1",    "actualCredits": 1,    "expectedCredits": 1,    "creationTime": "2023-01-10T10:07:58.9459512Z"  }} 
 