Tool 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
Response
Successful Response