AI Image Detection

Determine whether an image was generated by AI or captured by a human. Returns a confidence score across a multi-model ensemble.

POST /ai/detect

Authentication

Bearer token in the Authorization header.

Request

Content-Type: multipart/form-data
FieldTypeRequiredDescription
fileFileRequiredImage file to analyse. Accepts PNG, JPEG, and WebP.

Response

FieldTypeDescription
scorenumberProbability the image is AI-generated (0.0 – 1.0).
verdictstringHuman-readable verdict: "human", "likely_human", "uncertain", "likely_ai", or "ai".

Example

Request

curl -X POST https://api.cacuda.com/ai/detect \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@photo.jpg"

Response 200 OK

{
  "score": 0.92,
  "verdict": "ai"
}

Error Codes

CodeDescription
400No file provided or unsupported format.
401Missing or invalid API key.
402Insufficient credits.
503Detection service unavailable.

Try it in the scanner

Test this endpoint interactively with real data. No code required.

Open Scanner