Overview
Analyze an image to determine if it was generated by AI. The endpoint uses an ensemble of 5 specialized detection models to provide accurate results.Request
Method:POST
Path: /api/detect
Auth: X-Api-Key: <API_KEY>
Content-Type: application/json
Cost: 1 credit per detection
Request Body
Base64-encoded image data (JPG, PNG, or WebP)
If
true, the image is stored for research purposes to improve detection accuracyExamples
Response
Detection result:
"ai", "real", or "uncertain"Confidence score from 0.0 to 1.0
Weighted average score from all models (0.0 to 1.0)
Human-readable verdict:
"ai_generated", "likely_real", or "uncertain"Number of models that successfully processed the image
Total number of models in the ensemble (currently 5)
Individual results from each detection model
Total detection time in milliseconds
Whether the image was stored for research (only
true if consent: true)Example Response
Verdict Interpretation
| Ensemble Score | Verdict | Meaning |
|---|---|---|
| >= 0.7 | ai_generated | High confidence the image is AI-generated |
| 0.4 - 0.7 | uncertain | Inconclusive - may need manual review |
| < 0.4 | likely_real | High confidence the image is authentic |
Error Responses
Handling Errors
Limits
| Limit | Value |
|---|---|
| Max image size | 10 MB |
| Supported formats | JPG, PNG, WebP |
| Rate limit | 100 requests/minute |
| Cost | 1 credit per detection |