Skip to main content
Glama

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/json

    • Response 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/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 401: Unauthorized - The client must authenticate itself to get the requested response.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "message"
}
  • 500: Internal Server Error - The server has encountered a situation it doesn't know how to handle.

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "Internal Server Error"
}
  • 503: Service Unavailable

    • Content-Type: application/json

    • Response Properties:

    • Example:

{
  "message": "Service Unavailable. Please try again later."
}

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
imageNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/freepik-company/freepik-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server