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

# zero-shot-object-detection

> Detect objects in images without prior training on those specific objects. Use cases include novel object detection, transfer learning, and few-shot learning



## OpenAPI

````yaml post /models/v2/google/owlv2-base-patch16-finetuned
openapi: 3.0.3
info:
  title: Open Source AI Models API – Multimodal
  description: >-
    API for running open-source AI models that take text, vision, audio, and
    video as input.
  version: 1.0.0
servers:
  - url: https://api.bytez.com
    description: Production server
security: []
paths:
  /models/v2/google/owlv2-base-patch16-finetuned:
    post:
      summary: zero-shot-object-detection
      description: >-
        Detect objects in images without prior training on those specific
        objects. Use cases include novel object detection, transfer learning,
        and few-shot learning
      operationId: zero-shot-object-detection
      requestBody:
        description: Schema for zero-shot-object-detection models
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  example: >-
                    https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9
                candidate_labels:
                  type: array
                  example:
                    - squid
                    - octopus
                    - human
                    - cat
                base64:
                  type: string
                  example: >-
                    data:image/webp;base64,...BASE_64_GOES_HERE (Only use this
                    is you are not using a url)
              example:
                url: >-
                  https://ocean.si.edu/sites/default/files/styles/3_2_largest/public/2023-11/Screen_Shot_2018-04-16_at_1_42_56_PM.png.webp?itok=Icvi-ek9
                candidate_labels:
                  - squid
                  - octopus
                  - human
                  - cat
              required:
                - url
      responses:
        '200':
          description: Successful zero-shot-object-detection response.
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                  - output
                properties:
                  error:
                    type: string
                    nullable: true
                    description: Null on success; otherwise an error message.
                  output:
                    type: array
                    description: >-
                      Successful response with detected objects, scores, labels,
                      and boxes
                    example:
                      - score: 0.838
                        label: octopus
                        box:
                          xmin: 0
                          ymin: -2
                          xmax: 990
                          ymax: 665
        '401':
          description: Auth error - check your api key and how you're sending it.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Unauthorized
                  output:
                    type: string
                    example: null
        '429':
          description: Too Many Requests – You have hit the rate limit.
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    example: Rate limit exceeded
                  output:
                    type: string
                    example: null
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: |
        Set `Authorization` header to `BYTEZ_KEY` 
        ``` 'Authorization: YOUR_BYTEZ_KEY_HERE' ```

````