> ## Documentation Index
> Fetch the complete documentation index at: https://docs.synapsai.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Zero-shot image classification



## OpenAPI

````yaml /api-reference/openapi.json post /v1/classifications/zero-shot/image
openapi: 3.1.0
info:
  title: SynapsAI Inference API
  version: 1.0.0
servers:
  - url: https://api.synapsai.cloud
    description: Production server
security: []
paths:
  /v1/classifications/zero-shot/image:
    post:
      summary: Zero-shot image classification
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ZeroShotImageClassificationRequest'
      responses:
        '200':
          description: Zero-shot image classification results
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationListLabelScore'
components:
  schemas:
    ZeroShotImageClassificationRequest:
      allOf:
        - type: object
          description: Zero-shot classification for images using a set of candidate labels.
          properties:
            image:
              oneOf:
                - type: string
                - type: array
                  items: {}
                - type: string
                  format: binary
              description: >-
                Image or list of images to classify (base64, URL or binary).
                Required.
            candidate_labels:
              type: array
              items:
                type: string
              description: Candidate label list to evaluate for each image. Required.
            hypothesis_template:
              type: string
              default: This is a photo of {}
              description: >-
                Template used to form hypotheses using the candidate labels for
                scoring.
            timeout:
              type: number
              nullable: true
              description: >-
                Timeout for fetching remote images in seconds; null means no
                timeout.
          required:
            - image
            - candidate_labels
    ClassificationListLabelScore:
      type: array
      description: 'Standard classification response: list of label/score pairs.'
      items:
        type: object
        properties:
          label:
            type: string
            description: Predicted label name.
          score:
            type: number
            description: Confidence score (probability-like) for the label.

````