Skip to main content

Endpoint

POST /v3/universal-ai (sync) Model string pattern: image/object_detection/{provider}[/{model}]

Input

FieldTypeRequiredDescription
filefile_inputYesImage file ID from /v3/upload or direct file URL

Output

FieldTypeRequiredDescription
itemsarray[object]No
    labelstringYes
    confidencefloatYes
    x_minfloatYes
    x_maxfloatYes
    y_minfloatYes
    y_maxfloatYes

Available Providers

ProviderModel StringPrice
amazonimage/object_detection/amazon$1 per 1,000 files
api4aiimage/object_detection/api4ai$0.5 per 1,000 files
clarifaiimage/object_detection/clarifai$2 per 1,000 files
clarifai (general-image-detection)image/object_detection/clarifai/general-image-detection$2 per 1,000 files
googleimage/object_detection/google$2.25 per 1,000 files
microsoftimage/object_detection/microsoft$1 per 1,000 files
sentisightimage/object_detection/sentisight$0.75 per 1,000 files

Quick Start

import requests

url = "https://api.edenai.run/v3/universal-ai"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
}

payload = {
    "model": "image/object_detection/amazon",
    "input": {
        "file": "YOUR_FILE_UUID_OR_URL"
    }
}

response = requests.post(url, headers=headers, json=payload)
print(response.json())