AI Image Detector
Upload an image and the detector returns:
classification:RealorFakeconfidence:0-100
Before running, configure these Hugging Face Space Secrets:
OPENAI_API_KEY(required)OPENAI_MODEL(optional, default:gpt-5-mini)OPENAI_BASE_URL(optional, for compatible third-party endpoints)APP_API_TOKEN(optional, protect API endpoint calls)
API
This Space also exposes an API function for developers.
- Endpoint function name:
analyze_api - Inputs:
image,api_token - Output JSON:
classification,confidence
If APP_API_TOKEN is set in Space Secrets, api_token must match it.
Use the Space View API page for the exact request URL and payload format for your Gradio version.