# AI Upscaler

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/aiart/imgupscale:
    post:
      summary: AI Upscaler
      deprecated: false
      description: AI Upscaler
      tags:
        - Reference
      parameters:
        - name: Authorization
          in: header
          description: >-
            Here, <your_api_key> is the API key you obtained from the Fotor
            Developer Platform.
          required: true
          example: Bearer <your api key>
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                upscaling_resize:
                  type: integer
                  description: Upscaling factor.
                userImageUrl:
                  type: string
                  description: >-
                    The URL of the user's image or the image in BASE64 encoded
                    format, used to provide the face to be replaced in the
                    template image.
                max_image_width:
                  type: integer
                  description: The maximum pixel width of the image after upscaling.
                max_image_height:
                  type: integer
                  description: The maximum pixel height of the image after upscaling.
              required:
                - upscaling_resize
                - userImageUrl
                - max_image_width
                - max_image_height
              x-apifox-orders:
                - upscaling_resize
                - userImageUrl
                - max_image_width
                - max_image_height
            example:
              upscaling_resize: 2
              userImageUrl: >-
                https://pub-static.fotor.com/assets/goart-effects/examples/mini-figure-after.jpg
              max_image_width: 2048
              max_image_height: 2048
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    description: '000: Success，999: Unknown error'
                    x-apifox-mock: '000'
                    examples:
                      - '000'
                  msg:
                    type: string
                    x-apifox-mock: success
                    examples:
                      - success
                  data:
                    type: object
                    properties:
                      taskId:
                        type: string
                        description: Task ID, used to query task information.
                        x-apifox-mock: e0dc194703174b6eafeacb4ee8e02850
                        examples:
                          - e0dc194703174b6eafeacb4ee8e02850
                    required:
                      - taskId
                    x-apifox-orders:
                      - taskId
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
              example:
                code: '000'
                msg: success
                data:
                  taskId: e0dc194703174b6eafeacb4ee8e02850
          headers: {}
          x-apifox-name: success
      security: []
      x-apifox-folder: Reference
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5562290/apis/api-255169813-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api-b.fotor.com
    description: 正式环境
security: []

```
