openapi: 3.0.0
servers:
  - url: https://prod.api.market/api/v1/ailabtools/image-color-enhancement
info:
  title: Image Color Enhancement
  version: 1.11.0
  description: Instantly improve your images with vibrant and balanced colors,
    making your photos more eye-catching and professionally appealing for any
    use.
paths:
  /image/enhance/image_colour_enhancement:
    post:
      tags:
        - AI IMAGE > Image Enhancement
      summary: Image color enhancement
      operationId: 5d7e4d607284c1c932d2f3ad2a45b706
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              required:
                - image
                - mode
                - output_format
              properties:
                image:
                  description: "<li>Image format: `JPG` `PNG` `BMP`</li> <li>Image size: No more
                    than 3 MB.</li> <li>Image resolution: Larger than 64x64px,
                    smaller than 3840x2160px.</li>"
                  type: file
                mode:
                  description: "Color mixing mode. <li>`LogC`: Suitable for gray film (low
                    contrast raw map) input, adjust the image color perception
                    substantially to restore the color texture of the SDR
                    domain.</li> <li>`Rec709`: Suitable for images taken under
                    general conditions, appropriate to enhance the image
                    brightness, saturation, etc., the adjustment range is more
                    conservative.</li> <li>`ln17_256`: Suitable for images taken
                    under general conditions, drastically adjusts image
                    brightness, saturation, contrast, and improves color
                    quality.</li>"
                  type: string
                  enum:
                    - LogC
                    - Rec709
                    - ln17_256
                output_format:
                  description: The format of the output image.
                  type: string
                  enum:
                    - png
                    - jpg
              type: object
      responses:
        "200":
          description: ""
          content:
            application/json:
              schema:
                allOf:
                  - properties:
                      data:
                        type: object
                        allOf:
                          - properties:
                              image_url:
                                description: "Returns the URL address of the processed image. `Expiration: 24
                                  hours.`"
                                type: string
                            type: object
                    type: object
                  - $ref: "#components/schemas/commonResponses"
        "400":
          description: Bad Request
        "401":
          description: Unauthorized
        "403":
          description: Forbidden
        "404":
          description: Not Found
        "405":
          description: Method Not Allowed
        "409":
          description: Conflict
        "410":
          description: Gone
        "413":
          description: Payload Too Large
        "415":
          description: Unsupported Media Type
        "422":
          description: Unprocessable Entity
        "429":
          description: Too Many Requests
        "500":
          description: Internal Server Error
        "502":
          description: Bad Gateway
        "503":
          description: Service Unavailable
        "504":
          description: Gateway Timeout
    parameters:
      - 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
components:
  schemas:
    commonResponses:
      properties:
        request_id:
          description: Request ID. If there is a problem that cannot be located, this
            field can be sent to technology for problem location.
          type: string
        log_id:
          description: Log ID. If there is a problem that cannot be located, this field
            can be sent to technology for problem location.
          type: string
        error_code:
          description: "Status code. When HTTP Status is 200: `error_code`=0; otherwise
            exactly the same as HTTP Status."
          type: integer
        error_code_str:
          description: Error Code.
          type: string
        error_msg:
          description: Error message.
          type: string
        error_detail:
          type: object
          allOf:
            - properties:
                status_code:
                  description: Status Code.
                  type: integer
                code:
                  description: "Error Code. Compared to the `error_code_str` field: The code field
                    is more precise."
                  type: string
                code_message:
                  description: The information represented by the Error Code(`code`).
                  type: string
                message:
                  description: Supplementary information for the `code_message` field.
                  type: string
              type: object
      type: object
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
