Classification

Classify image at public url

POST
Classify an image downloadable via a public url for specific concepts or all concepts within a dataset

Query parameters

thresholddoubleOptional
Threshold above which classification is positive

Request

This endpoint expects an object.
url
stringRequired
A public url for downloading the image
conceptIds
list of stringsOptional
The ids of concepts to use to classify an image
datasetId
stringOptional
The id of the dataset related to the concepts to use to classify an image

Response

This endpoint returns an object
scores
list of objects
Classifications of images for the relevant concept(s)
POST
1curl -X POST https://app.coactive.ai/api/v1/classify/image/url \
2 -H "Authorization: Bearer <token>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "url": "s3://coactive-public/logo.png",
6 "datasetId": "c40276f0-024b-4a3f-b3e6-dcf0d304843e"
7}'
200
Successful
1{
2 "scores": [
3 {
4 "conceptName": "TheNorth",
5 "conceptId": "428e52cd-7ceb-490c-ae3f-0848c82d8c97",
6 "threshold": 0.5,
7 "positive": true,
8 "score": 0.5
9 }
10 ]
11}