---
title: "Tool Classification"
method: POST
path: "/v1/tools/classification"
tags: ["Tools"]
---

# Tool Classification

`POST /v1/tools/classification`

Performs zero-shot image classification to categorize images based on provided labels.

Args:
    data (ClassificationRequest): The form data containing the following fields:
        - model (ClassificationModel): The classification model to use for analysis.
            Currently supports SigLIP zero-shot image classification.
        - image (UploadFile): The image file to classify.
            Required field for classification analysis.
        - labels (List[str]): Candidate labels for image classification.
            Must contain at least one label for classification.
    baseten_inference_sender: Dependency Injection for
        sending inference requests to the Baseten model server for image classification.

Returns:
    ClassificationResponse | JSONResponse
        Success: ClassificationResponse containing classification scores and labels.
        Error: JSONResponse with error details and appropriate status code.

## Query parameters

- `timeout` integer, nullable

## Response `200`

Successful Response

- ClassificationResponse
  - `data` ClassificationData, required
    - `scores` number[], required
    - `labels` string[], required

## Other responses

- `422` — Validation Error

## Changes

- **2026-02-13** `eeb4eb7952ab` — 1 info
  - endpoint added
- **2026-02-13** `62ce42134d4b` — 1 breaking
  - api path removed without deprecation
- **2026-02-13** `eeb4eb7952ab` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/landing-ai/apis/ade-api/changes/v1/tools/classification/post.md)

---

[API](https://skmtc.dev/landing-ai/apis/ade-api.md) · [All operations](https://skmtc.dev/landing-ai/apis/ade-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/landing-ai/ade-api/revisions/eeb4eb7952ab/schema)
