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/detectAuthentication
Bearer token in the Authorization header.
Request
Content-Type:
multipart/form-data| Field | Type | Required | Description |
|---|---|---|---|
| file | File | Required | Image file to analyse. Accepts PNG, JPEG, and WebP. |
Response
| Field | Type | Description |
|---|---|---|
| score | number | Probability the image is AI-generated (0.0 – 1.0). |
| verdict | string | Human-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
| Code | Description |
|---|---|
| 400 | No file provided or unsupported format. |
| 401 | Missing or invalid API key. |
| 402 | Insufficient credits. |
| 503 | Detection service unavailable. |
Try it in the scanner
Test this endpoint interactively with real data. No code required.
Open Scanner