openapi: 3.0.0
servers:
  - url: https://prod.api.market/api/v1/magicapi/objectdetector
info:
  title: Object detector API by keywords
  version: 1.1.3
  description: Using the The Object Detector API you can identify objects within
    images based on specific keywords. Identify any object like animals,
    umbrella, car, etc.
paths:
  /predictions/{request_id}:
    get:
      summary: Get Toonified Image URL
      description: >
        This endpoint retrieves the URL of the toonified image for a given
        request ID.
      parameters:
        - name: request_id
          in: path
          required: true
          description: Unique identifier for the request.
          schema:
            type: string
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: Status of the prediction (e.g., "succeeded").
                  result:
                    type: string
                    format: uri
                    description: URL of the toonified image.
        "400":
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Description of the error.
      security:
        - apiKey: []
    parameters:
      - &a1
        description: API.market API Key
        in: header
        name: x-api-market-key
        value: Please Login/Signup to get an API Key
        required: true
        schema:
          type: string
  /objectdetector:
    post:
      summary: Object Detector
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                image:
                  type: string
                  default: https://replicate.delivery/mgxm/36b04aec-efe2-4dea-9c9d-a5faca68b2b2/000000039769.jpg
                text:
                  type: string
                  default: a photo of a dog | a cat | two cats with remote controls
              required:
                - image
                - text
      responses:
        "200":
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  request_id:
                    type: string
                    description: Unique identifier for the request.
        "400":
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Description of the error.
      security:
        - apiKey: []
    parameters:
      - *a1
security: {}
tags:
  - name: cybersecurity
    description: Operations related to cybersecurity
  - name: tools
    description: Operations related to tools
  - name: visual-recognition
    description: Operations related to visual-recognition
