The Copyleaks AI Image Detection API returns a detailed response containing the analysis summary, image information, and a detection mask, run-length encoded (RLE), that identifies AI-generated regions.

Response Properties

string
The version of the AI detection model used for the analysis.
object
Contains the detection mask, run-length encoded (RLE). This can be used to visualize the AI-detected regions of the image. On the synchronous endpoint this object is omitted entirely when the request set maskType: "none".
object
The AI score: the share of the image’s pixels classified as human-created vs. AI-generated.
boolean
Indicates whether the image was flagged as AI-generated.
object
An object containing metadata about the analyzed image.
array<object>
Present only when the request included objectDetection. One entry per object located in the image. Objects that were requested but not found are absent, so the array is not aligned by position with the request - look entries up by object.
object
Metadata about the scan operation itself.

Example Response

Heatmap Result

When the request includes maskType: "heatmap", the result object carries one confidence band per segment in labels:

Next Steps

AI Image Detection Guide

Learn how to submit an image for AI detection and interpret the results.

AI Image Detection API Reference

Explore the complete API reference for the AI Image Detection endpoint.