v1
latestOpenAPI 3.0.32026-07-26451985.7 KBzero-shot-image-classification
Classify images into categories not seen during training for applications like novel object recognition, transfer learning, and few-shot learning
post/models/v2/BilelDJ/clip-hugging-face-finetuned
Request body
Example request
{
"url": "https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9",
"candidate_labels": [
"octopus",
"cat",
"lizard"
],
"base64": "data:image/webp;base64,...BASE_64_GOES_HERE (Only use this is you are not using a url)"
}Response
Successful zero-shot-image-classification response.
Example response
{
"output": [
{
"score": 0.3334539234638214,
"label": "cat"
},
{
"score": 0.3332984447479248,
"label": "octopus"
},
{
"score": 0.3332476019859314,
"label": "lizard"
}
]
}