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

# Image Upscaling

This is an asynchronous API that only returns an asynchronous task\_id. You need to use the task\_id to call the task result query API to obtain the image upscaling result.

<Tip>
  This is an **asynchronous** API and will only return the task\_id of the asynchronous task. You should use this task\_id to request the [Query Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated result.
</Tip>

## Request Headers

<ParamField header="Content-Type" type="string" required={true}>
  Enum value: `application/json`
</ParamField>

<ParamField header="Authorization" type="string" required={true}>
  Bearer authentication format: Bearer \{\{API Key}}.
</ParamField>

## Request Body

<ParamField body="image" type="string" required={true}>
  The URL of the original image to be upscaled.
</ParamField>

<ParamField body="resolution" type="string" default="4k">
  The target resolution after upscaling.

  Optional values: `2k`, `4k`, `8k`
</ParamField>

<ParamField body="output_format" type="string" default="jpeg">
  The format of the output image.

  Optional values: `jpeg`, `png`, `webp`
</ParamField>

## Response Information

<ResponseField name="task_id" type="string" required={true}>
  Use the task\_id to request the [Query Task Result API](/en/docs/models/reference-get-async-task-result) to retrieve the generated output.
</ResponseField>
