# Upscale small images 4x with AI (Real-ESRGAN)

**Use case:** 

Paste image links and get each image enlarged 4x with an AI model that restores detail instead of blurring. Good for product photos, thumbnails and old pictures. This example upscales a small cat photo.

## Input

```json
{
  "imageUrls": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/Cat_November_2010-1a.jpg/250px-Cat_November_2010-1a.jpg"
  ],
  "scale": "4",
  "outputFormat": "png"
}
```

## Output

```json
{
  "fileName": {
    "label": "File"
  },
  "outputUrl": {
    "label": "Upscaled image",
    "format": "link"
  },
  "scale": {
    "label": "Scale",
    "format": "number"
  },
  "inputWidth": {
    "label": "In width",
    "format": "number"
  },
  "inputHeight": {
    "label": "In height",
    "format": "number"
  },
  "outputWidth": {
    "label": "Out width",
    "format": "number"
  },
  "outputHeight": {
    "label": "Out height",
    "format": "number"
  },
  "outputBytes": {
    "label": "Bytes",
    "format": "number"
  },
  "sourceUrl": {
    "label": "Source",
    "format": "link"
  },
  "note": {
    "label": "Note"
  },
  "error": {
    "label": "Error"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The AI Image Upscaler (upscale images 2x, 3x, 4x, Real-ESRGAN) Actor is ready to run with the inputs already set for "Upscale small images 4x with AI (Real-ESRGAN)". [Sign up or log in](https://console.apify.com/create-task-from-example/6aprxfQv5ntLJMOJi) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Upscale small images 4x with AI (Real-ESRGAN)" task

The AI Image Upscaler (upscale images 2x, 3x, 4x, Real-ESRGAN) Actor will start running based on the input automatically. You can also change all the input fields, like image links, upscale factor, and more, to match your specific use case.

### 3. Receive the "Upscale small images 4x with AI (Real-ESRGAN)" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as file, upscaled image, scale, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Upscale small images 4x with AI (Real-ESRGAN)" task via API](https://apify.com/psypherz/image-upscaler.md).

## FAQ

### How large can images be for the 4x upscale task?

The 4x upscale task prices images up to 1 megapixel as one image, and adds a charge for each extra started megapixel of input.

## About this Actor

This example demonstrates how to use [AI Image Upscaler (upscale images 2x, 3x, 4x, Real-ESRGAN)](https://apify.com/psypherz/image-upscaler.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/psypherz/image-upscaler.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/psypherz/image-upscaler.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
