Predict Attributes
You will simply pass your image as base64 in the
parameters of this end point and it will return
a list of dress attribute predicted by the AI
model in real time.
Parameters
test
REQUIRED
The ‘test’ image will be processed by our AI
Model. Use this field to send the image you want
to be processed after converting it to a base64
object.
Returns
A dictionary with an “attribute “ property that
contains an array of up to three items. Each
item in the array is a seperate “category”
object which represents one of the predicted
attributes.
Status Codes
200
OK - Request went successfully.
400
Bad Request - You may not be passing the
required parameter right.
500
Something is wrong at Snapthat’s side.
Endpoint and Response
Use the baseurl and the endpoint to call the API and
get labels in the exact response format given below
https://image-labelling.snapthat.xyz
POST
/api/multilabel-classification/predict
{
"attributes": [
{"category": "short sleevetop" },
{ "category": "long skirt" }
]
}