AI Image Detector
AI Image Detector
Detect whether an image is AI-generated or partially AI-generated.
POST
AI Image Detection has wrapper support in the Python SDK via
ImageDetectionClient. The JavaScript and Java SDKs don’t yet expose a method for this endpoint, so those samples call the HTTP API directly.Request
Path Parameters
string
required
A unique scan id provided by you. We recommend you use the same id in your database to represent the scan in the Copyleaks database. This will help you to debug incidents. Using the same ID for the same file will help you to avoid network problems that may lead to multiple scans for the same file. Learn more about the criteria for creating a Scan ID.
>= 3 characters <= 36 charactersSupported Content Types
Submit images using multipart/form-data (recommended) or JSON with base64.Option 1: Multipart/Form-Data (Recommended)
Headers:Option 2: JSON with Base64
Headers:Body Parameters
The image field used depends on the content type:multipart/form-data-> use theimagefield (binary file)application/json-> use thebase64field (base64-encoded string)
file
Binary image file. Required when using
multipart/form-data. Base64-encoded images are not accepted for multipart requests.Requirements:- Size: Minimum 512x512px, maximum 6000x4500px (27 megapixels)
- File size: Less than 32MB
- Formats: PNG, JPG, JPEG, BMP, WebP, HEIC/HEIF
string
Base64-encoded image data. Required when using
application/json content type.Requirements:- Size: Minimum 512x512px, maximum 6000x4500px (27 megapixels)
- File size: Less than 32MB (before encoding)
- Formats: PNG, JPG, JPEG, BMP, WebP, HEIC/HEIF
string
required
The name of the image file including its extension.Requirements:
- Allowed file extensions:
.png,.jpg,.jpeg,.bmp,.webp,.heic,.heif <= 255 characters
string
required
The AI detection model to use for analysis.
- AI Image 1 Ultra:
"ai-image-1-ultra"
boolean
default:"false"
Use sandbox mode to test your integration with the Copyleaks API without consuming any credits.
Responses
- 200
- 400
- 401
- 402
- 429
- 500
200 OK - The image was successfully analyzed.

