POST
/
v1
/
images
/
{imageId}
/
classify

Description

The classify endpoint allows you to classify an image using a pre-trained model. At the moment, the only supported model is the ResNet50 model, a deep learning model that excels at image classification tasks.

The endpoint will return a list of labels and their probabilities for the image.


Request Parameters

The request path should contain the following parameters:

imageId
string
required

The ID of the image to classify.

Response

The API will return a JSON object with the following fields:

main_label
string

The main label of the image. This is the label with the highest probability.

main_score
number

The score of the main label. The score is a number between 0 and 1, where 1 is the highest probability.

secondary_lables
array

A list of labels and their probabilities for the image.