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

# Upscale

export const APIKeyHint = () => <Note>Follow the <a href="/en/quickstart">quickstart guide</a> to get your own API Key.</Note>;

<APIKeyHint />

The Upscale API can enlarge input images by a specified scale, delivering results of higher quality compared to traditional upscaling methods.

This API supports input images up to `2048x2048` resolution and output images up to `4096x4096` resolution. When the input resolution exceeds 2048, the scale can only be `2`.

See the [pricing page](/en/models-and-pricing#image-tools) for pricing.


## OpenAPI

````yaml POST /v1/image/tool/upscale
openapi: 3.1.0
info:
  title: Monica Open API Platform
  version: v1
servers: []
security: []
tags:
  - name: image.v1.ImageGenerationService
    x-displayName: image.v1.ImageGenerationService
  - name: image.v1.ImageToolService
    x-displayName: image.v1.ImageToolService
  - name: text.v1.HumanizeService
    x-displayName: text.v1.HumanizeService
paths:
  /v1/image/tool/upscale:
    post:
      tags:
        - image.v1.ImageToolService
      summary: ImageUpscale
      operationId: image.v1.ImageToolService.ImageUpscale
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/image.v1.ImageUpscaleRequest'
        required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/image.v1.ImageUpscaleResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    image.v1.ImageUpscaleRequest:
      type: object
      properties:
        image:
          type: string
          examples:
            - >-
              https://monica-public-dev.s3.us-east-1.amazonaws.com/ugc-files/image-gen/generation-sdxl/80ddf974-9253-48fa-bc34-9f86845a1037/2pyPWQwVKYdCr3RGP3Cbrz41Km0.png
          title: image
          description: URL of the original image.
        scale:
          type: integer
          examples:
            - 2
          title: scale
          format: int32
          enum:
            - 2
          description: Image scale factor.
      title: ImageUpscaleRequest
      required:
        - image
        - scale
      additionalProperties: false
    image.v1.ImageUpscaleResponse:
      type: object
      properties:
        image:
          type: string
          examples:
            - >-
              https://monica-public-dev.s3.us-east-1.amazonaws.com/ugc-files/image-gen/upscale/f28110fa-334f-4131-8c84-7b936d2b3a8e/2pyRxuoYSHmXNvQGgHRARMt3OHi.png
          title: image
          description: URL of the upscale image.
      title: ImageUpscaleResponse
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````