> ## 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.

# Image classification pipeline



## OpenAPI

````yaml /api-reference/openapi.json post /v1/classifications/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/image:
    post:
      summary: Image classification pipeline
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ImageClassificationRequest'
      responses:
        '200':
          description: Image classification results (list of label/score dicts)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClassificationListLabelScore'
components:
  schemas:
    ImageClassificationRequest:
      allOf:
        - type: object
          description: Request schema for image classification.
          properties:
            inputs:
              oneOf:
                - type: string
                - type: array
                  items: {}
                - type: string
                  format: binary
              description: >-
                One or more images to classify (URL, base64, multipart binary or
                image object). Required.
            function_to_apply:
              type: string
              enum:
                - sigmoid
                - softmax
                - none
              default: softmax
              description: How to convert raw logits to scores; defaults to 'softmax'.
            top_k:
              type: integer
              default: 5
              description: Number of top labels to return per image.
            timeout:
              type: number
              nullable: true
              description: >-
                Maximum time in seconds to wait for fetching remote images; null
                means no timeout.
          required:
            - inputs
    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.

````