detect_ai_image
Analyze images to determine if they were AI-generated, providing a confidence score for classification.
Instructions
Accepts an image file as input and analyzes it to determine the probability that the image was generated by artificial intelligence, providing a confidence score.
Responses:
200 (Success): OK - The request has succeeded, and the image has been classified.
Content-Type:
application/jsonResponse Properties:
Example:
{
"data": [
{
"probability": 0.9489172697067261,
"class_name": "not_ai"
},
{
"probability": 0.9489172697067261,
"class_name": "not_ai"
}
]
}400: Bad Request - The server could not understand the request due to invalid syntax.
Content-Type:
application/jsonResponse Properties:
Example:
{
"message": "message"
}401: Unauthorized - The client must authenticate itself to get the requested response.
Content-Type:
application/jsonResponse Properties:
Example:
{
"message": "message"
}500: Internal Server Error - The server has encountered a situation it doesn't know how to handle.
Content-Type:
application/jsonResponse Properties:
Example:
{
"message": "Internal Server Error"
}503: Service Unavailable
Content-Type:
application/jsonResponse Properties:
Example:
{
"message": "Service Unavailable. Please try again later."
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No |