openapi: 3.0.0
servers:
  - url: https://prod.api.market/api/v1/magicapi/upscaler
info:
  title: Image Upscale API | Streamlined Image Upscaling for Stunning Results
  version: 1.0.5
  description: Image Upscale API is a powerful tool designed to upscale the
    resolution and size of an image by 2x , 4x and 8x.
paths:
  /upscale2x/:
    post:
      summary: Upscale Image by 2x
      description: Upscale an image by 2x using Super-Resolution models
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: URL of the image to upscale
                  example: https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg
      responses:
        "200":
          description: Upscaled image successfully generated
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
        "400":
          description: Invalid scale factor provided
        "500":
          description: Internal server error
    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
  /upscale4x/:
    post:
      summary: Upscale Image by 4x
      description: Upscale an image by 4x using Super-Resolution models
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: URL of the image to upscale
                  example: https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg
      responses:
        "200":
          description: Upscaled image successfully generated
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
        "400":
          description: Invalid scale factor provided
        "500":
          description: Internal server error
    parameters:
      - *a1
  /upscale8x/:
    post:
      summary: Upscale Image by 8x
      description: Upscale an image by 8x using Super-Resolution models
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  type: string
                  description: URL of the image to upscale
                  example: https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg
      responses:
        "200":
          description: Upscaled image successfully generated
          content:
            image/jpeg:
              schema:
                type: string
                format: binary
        "400":
          description: Invalid scale factor provided
        "500":
          description: Internal server error
    parameters:
      - *a1
security: {}
tags:
  - name: tools
    description: Operations related to tools
  - name: visual-recognition
    description: Operations related to visual-recognition
  - name: artificial-intelligence
    description: Operations related to artificial-intelligence
  - name: image-to-image
    description: Operations related to image-to-image
