Einstein Platform Services

General Image Model

Detect the presence of a single object in a given image.

This model is used to classify a variety of images and contains thousands of labels. You can classify an image against this model just as you would a custom model; but instead of using the modelId of the custom model, you specify a modelId of GeneralImageClassifier. For the list of classes this model contains, see General Image Model Class List.

This cURL command makes a prediction against the general image model.

curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "sampleLocation=http://einstein.ai/images/generalimage.jpg" -F "modelId=GeneralImageClassifier" https://api.einstein.ai/v2/vision/predict

The model returns a result similar to the following for the tree frog image referenced by http://einstein.ai/images/generalimage.jpg.

{
  "probabilities": [
    {
      "label": "tree frog, tree-frog",
      "probability": 0.7963114976882935
    },
    {
      "label": "tailed frog, bell toad, ribbed toad, tailed toad, Ascaphus trui",
      "probability": 0.1978749930858612
    },
    {
      "label": "banded gecko",
      "probability": 0.001511271228082478
    },
    {
      "label": "African chameleon, Chamaeleo chamaeleon",
      "probability": 0.0013212867779657245
    },
    {
      "label": "bullfrog, Rana catesbeiana",
      "probability": 0.0011536618694663048
    }
  ],
  "object": "predictresponse"
}

Updated less than a minute ago

General Image Model


Detect the presence of a single object in a given image.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.