API Documentation
Detect whether an image is real or AI-generated programmatically. Every successful request costs 1 credit from your account.
Authentication
Create an API key in your dashboard (Basic/Pro plans), then send it as a Bearer token:
Authorization: Bearer ic_your_api_keyPOST /api/v1/detect
Analyze an image and charge 1 credit. Send the image as base64, a byte array, or a public URL.
Request body (JSON)
| Field | Type | Description |
|---|---|---|
| image_base64 | string | Image bytes, base64-encoded (JPG/PNG/WebP/GIF/AVIF, max 10MB) |
| image_url | string | Public URL of the image (alternative to image_base64) |
| fileName | string | Optional label stored in history |
Example request
curl -X POST https://your-domain.com/api/v1/detect \
-H "Authorization: Bearer ic_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"image_base64": "'"$(base64 -w0 photo.jpg)"'",
"fileName": "photo.jpg"
}'Success response (200)
{
"result": {
"verdict": "ai", // "real" | "ai" | "unknown"
"confidence": 0.82, // 0.0 - 1.0
"model": "Hobrt-Vision v1",
"note": "..."
},
"remaining_credits": 41,
"key_usage": 12 // only when called with an API key:
// how many times THIS key has been used
}Error responses
| Status | error | Meaning |
|---|---|---|
| 401 | unauthorized | Missing/invalid API key or session |
| 402 | no_credits | No credits left — top up or redeem a coupon |
| 403 | banned | Account suspended |
| 400 | missing_image | No image supplied |
| 413 | image_too_large | Image exceeds 10MB |
| 415 | not_an_image | Unsupported file type |
Credits & limits
- 1 credit = 1 detection request (charged on every request, including via the dashboard).
- Free: 5/month · Basic: 50/month · Pro: 500/month. Credits reset monthly.
- API keys are available on Basic and Pro plans (max 5 active keys).
- Rate limits may apply. Contact support for high-volume needs.
Chrome extension
Our free Chrome extension scans images right on any web page: click an image (or hit “Scan page”) and a small AI 97% / REAL 92% label appears on top of it. Set a per-page scan limit and minimum image size in the popup so you never burn credits on icons and thumbnails. Load it unpacked from the extension/ folder — see extension/README.md. Every extension scan is tracked per API key (see the “Times used” column on the API Keys page).
The detection model
Detection uses a converted TensorFlow.js model (EfficientNet + FFT fusion, 224×224 input) running on the server. Each request is preprocessed exactly as during training (RGB 0–255 + normalized FFT magnitude) and returns the AI probability with your thresholds (AI > 0.55, Real < 0.45, otherwise uncertain).
To enable it: place the trained model file in the model folder and runbash scripts/convert-model.sh. Without a converted model, responses contain a clearly-labeled placeholder verdict.