Endpoint
POST /v3/universal-ai (sync)
Model string pattern: image/ai_detection/{provider}[/{model}]
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Determine whether an image was generated by AI or is a real photograph or artwork.
POST /v3/universal-ai (sync)
Model string pattern: image/ai_detection/{provider}[/{model}]
| Field | Type | Required | Description |
|---|---|---|---|
| file | file_input | Yes | Image file ID from /v3/upload or direct file URL |
| Field | Type | Required | Description |
|---|---|---|---|
| ai_score | float | Yes | |
| prediction | enum | Yes |
| Provider | Model String | Price |
|---|---|---|
| winstonai | image/ai_detection/winstonai | $0.021 per request |
import requests
url = "https://api.edenai.run/v3/universal-ai"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"model": "image/ai_detection/winstonai",
"input": {
"file": "YOUR_FILE_UUID_OR_URL"
}
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
curl -X POST https://api.edenai.run/v3/universal-ai \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "image/ai_detection/winstonai",
"input": {"file": "YOUR_FILE_UUID_OR_URL"}
}'
Was this page helpful?