API Reference
Detect AI-generated image
Detect whether an image is likely AI-generated.
Model:
ai-image-detectionCredit:1
post
/v1/images/ai-detectAuthorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more
Parameters
| Name | Type | Status | Description |
|---|---|---|---|
input_image | file | Required | Image file or URL to inspect. |
Responses
AI image detection resultAiImageDetectionResponse
| Field | Type | Description |
|---|---|---|
is_ai_image | boolean | Whether the image is likely AI-generated. |
score | number | Higher values mean the image is more likely to be AI-generated. |
curl -X POST "https://api.snapapi.ai/v1/images/ai-detect" \
-H "api-key: YOUR_API_KEY" \
-F "input_image=@./image.jpg"Response
{
"is_ai_image": true,
"score": 0.92
}