---
title: "zero-shot-image-classification"
method: POST
path: "/models/v2/BilelDJ/clip-hugging-face-finetuned"
---

# zero-shot-image-classification

`POST /models/v2/BilelDJ/clip-hugging-face-finetuned`

## Request

- Base URL: `https://api.bytez.com`
- URL: `https://api.bytez.com/models/v2/BilelDJ/clip-hugging-face-finetuned`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/bytez/apis/closed-source-model-api/docs/models/v2/BilelDJ/clip-hugging-face-finetuned/post.ts> (a function with typed inputs; its response is checked against the schema)

Classify images into categories not seen during training for applications like novel object recognition, transfer learning, and few-shot learning

## Request body

- object
  - `url` string, required
  - `candidate_labels` string[], required
  - `base64` string

## Response `200`

Successful zero-shot-image-classification response.

- object
  - `error` string, nullable, required: Null on success; otherwise an error message.
  - `output` unknown[], required: Successful response with image-classification scores and labels
    - unknown

## Other responses

- `401`: Auth error - check your api key and how you're sending it.
- `429`: Too Many Requests – You have hit the rate limit.

---

[API](https://skmtc.dev/bytez/apis/closed-source-model-api.md) - [All operations](https://skmtc.dev/bytez/apis/closed-source-model-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bytez/apis/closed-source-model-api/revisions/d64c9c733afe?raw)
