# AI Image Upscaler | 2x & 4x Super Resolution in Bulk (`trev0n/image-upscaler`) Actor

Upscale photos, product shots and artwork 2x or 4x with Real-ESRGAN AI super resolution. Paste image URLs, get sharp PNG, JPG or WebP files back. Fast, reliable, batch friendly.

- **URL**: https://apify.com/trev0n/image-upscaler.md
- **Developed by:** [Paweł](https://apify.com/trev0n) (community)
- **Categories:** AI, E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 image upscaleds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

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 examples already wired to this Actor's own input schema, see the [API](#api) section below.

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`).

# README

## 🔍 AI Image Upscaler | 2x & 4x Super Resolution in Bulk

🎯 **Turn small, blurry images into sharp, high-resolution files in bulk: paste the links, pick 2x or 4x, get crisp PNG, JPG or WebP back.**

The upscaler uses Real-ESRGAN, a proven AI super-resolution model that rebuilds edges, textures and fine detail instead of just stretching pixels. It is built for reliability: every image is processed on its own, so one broken link never ruins a batch, and you only pay for images that were actually upscaled.

### 🚀 What Does It Do?

You give it a list of image links. For each one it downloads the picture, enlarges it 2x or 4x with AI, saves the result as a ready-to-download file and adds a row to your results table with the download link, the before and after size and the processing time. No manual uploading, no desktop software, no waiting in a web queue.

💡 **Perfect for batches:** 1 image or 1,000 images, the workflow is the same. Schedule it, call it from Make or Zapier, and get links to the finished files.

### 👥 Who Is This For?

| 🏢 Use Case                       | 💬 How It Helps                                                                      |
| --------------------------------- | ------------------------------------------------------------------------------------ |
| 🛒 **E-commerce sellers**         | Make small supplier photos sharp enough for zoom views and marketplace minimum sizes |
| 🏠 **Real estate & car listings** | Rescue low-resolution listing photos before they go on your portal                   |
| 🎨 **Designers & print shops**    | Enlarge artwork, logos and photos for posters, banners and print                     |
| 🗂️ **Archives & media teams**     | Upscale old scans and thumbnails in bulk instead of one by one                       |
| 🤖 **Automation builders**        | Add an upscale step to any pipeline: links in, links to sharp files out              |
| 📣 **Social media managers**      | Get crisp visuals from small sources for posts, ads and thumbnails                   |

### ✨ Features

- 🧠 **Real AI super resolution** with Real-ESRGAN: rebuilds detail, removes blur and compression noise
- 🔢 **2x or 4x upscaling**: 4x gives 16 times more pixels, 2x is rendered from the 4x result for extra sharpness
- 🖼️ **PNG, JPG or WebP output** with adjustable quality
- 🫥 **Transparency kept**: PNG and WebP keep the alpha channel; JPG gets a clean white background
- 🔄 **Auto-rotation**: phone photos are turned the right way up before upscaling
- 🛡️ **Batch-safe**: a broken link, a huge file or a non-image is reported in its own row and the run continues
- 📏 **Size guard**: set a maximum input size so oversized images are skipped instead of billed
- 💸 **Pay only for results**: failed and skipped images are free
- 🔁 **Deduplication**: the same link listed twice is processed once
- ⚡ **Reliable & Scalable**: large images are processed in tiles so memory stays predictable, from a single picture to thousands per run
- 📤 **Export Anywhere**: Download results as JSON, CSV, Excel, or push to Google Sheets, Zapier, Make, or your CRM

### 🎛️ Filters & Options

| Option                       | What It Does                                                               |
| ---------------------------- | -------------------------------------------------------------------------- |
| 🔗 **Image URLs**            | The images to upscale, one link per line                                   |
| 🔢 **Upscale factor**        | 4x (default) or 2x                                                         |
| 🖼️ **Output format**         | PNG (lossless, keeps transparency), JPG (smallest files) or WebP           |
| 🎚️ **JPG / WebP quality**    | Compression quality for JPG and WebP files                                 |
| 📏 **Maximum input size**    | Skip images above this many megapixels (1 MP is about 1000x1000 px)        |
| 📦 **Maximum download size** | Skip files larger than this many MB                                        |
| 🧩 **Tile size**             | Advanced: how big the processing tiles are; the default is tuned for speed |

### 📦 What You Get (Output Fields)

Every image gets one row in the results table, and the upscaled file is stored in the run's file storage with a direct download link.

#### Result

| Field     | Example                                                                                    |
| --------- | ------------------------------------------------------------------------------------------ |
| status    | `success`                                                                                  |
| sourceUrl | `https://shop.example.com/images/sneaker-small.jpg`                                        |
| outputUrl | `https://api.apify.com/v2/key-value-stores/aBc123XyZ/records/upscaled-0001-3f9a1c2b7d.png` |
| outputKey | `upscaled-0001-3f9a1c2b7d.png`                                                             |
| error     | `null`                                                                                     |

#### Size

| Field           | Example   |
| --------------- | --------- |
| inputWidth      | `640`     |
| inputHeight     | `480`     |
| outputWidth     | `2560`    |
| outputHeight    | `1920`    |
| scale           | `4`       |
| outputFormat    | `png`     |
| outputSizeBytes | `6184212` |

#### Timing

| Field        | Example                    |
| ------------ | -------------------------- |
| processingMs | `9840`                     |
| processedAt  | `2026-11-23T10:15:42.512Z` |

When an image cannot be processed, the row has `status` set to `failed` (or `skipped` when the run hit its spending limit) and `error` explains why, for example `Download failed: HTTP 404.` or `Image is 6000x4000 (24.00 MP), above the 4 MP input limit.`

### 📊 Example Output

```json
{
    "status": "success",
    "sourceUrl": "https://shop.example.com/images/sneaker-small.jpg",
    "outputUrl": "https://api.apify.com/v2/key-value-stores/aBc123XyZ/records/upscaled-0001-3f9a1c2b7d.png",
    "outputKey": "upscaled-0001-3f9a1c2b7d.png",
    "inputWidth": 640,
    "inputHeight": 480,
    "outputWidth": 2560,
    "outputHeight": 1920,
    "scale": 4,
    "outputFormat": "png",
    "outputSizeBytes": 6184212,
    "processingMs": 9840,
    "error": null,
    "processedAt": "2026-11-23T10:15:42.512Z"
}
```

### 📋 Dataset Views

The Apify Console gives you **2 ready-made table views** to quickly browse your results:

| View              | What It Shows                                                                          |
| ----------------- | -------------------------------------------------------------------------------------- |
| 📊 **Overview**   | Status, source image preview, download link, before and after size, time and any error |
| 📋 **All fields** | Every single field: the complete dataset                                               |

### ❓ FAQ

**🤔 How long does one image take?**
Processing time grows with the size of the input image. Small images (around 500x500 px) take seconds; a 1 megapixel photo upscaled 4x becomes a 16 megapixel file and takes around a minute. Giving the run more memory also gives it more processing power, so big batches finish faster.

**🤔 Which upscale factor should I pick?**
4x when you need the biggest possible file (print, zoom views). 2x when you want a sharper picture at a moderate size: it is rendered from the 4x result, so it looks cleaner than a plain 2x resize.

**🤔 What happens with a broken link or a file that is not an image?**
That image gets a row with `status: failed` and a clear error message. All other images are still processed, and you are not charged for the failed one.

**🤔 Does it work on faces, text and illustrations?**
Yes. The model is a general-purpose one that handles photos, products, illustrations and screenshots well. It restores edges and texture; on very small faces it can add plausible detail that was not in the source, so check portraits before printing them.

**🤔 Can I export the data?**
Yes: JSON, CSV, Excel, XML, HTML, RSS. You can also push data directly to Google Sheets, Zapier, Make, or any webhook endpoint.

**🤔 How often should I run this?**
Whenever you have new images. You can schedule automatic runs on Apify or start a run from Make, Zapier or n8n each time a new picture arrives.

### 🛠️ Need Custom Filters or Features?

**I'm happy to customize this upscaler for your specific needs!** 🤝

Whether you need:

- 🎯 Extra processing options (background removal, face restoration, fixed output sizes, watermark removal)
- 📊 Extra data fields or custom output formats
- 🔄 Integration with your CRM, Google Sheets, cloud drive or database
- ⏰ Scheduled processing of new images from a folder or feed
- 🌐 Image sources beyond plain links, such as cloud drives or product feeds

👉 **Don't hesitate to reach out via private message**: I respond quickly and I'm always open to building exactly what you need. No request is too small or too specific!

### ⚖️ Legal & Ethical Use

This tool only processes the images you provide. Make sure you have the right to use and modify them, and use the results in line with applicable copyright law and the terms of the sites you take images from.

# Actor input Schema

## `images` (type: `array`):

Direct links to the images you want to upscale (JPEG, PNG, WebP, GIF, AVIF, TIFF). One URL per line. Each image is processed independently: a broken link never stops the others.

## `scale` (type: `string`):

4 = four times wider and taller (16x the pixels). 2 = twice wider and taller, rendered from the 4x result for extra sharpness, so it takes the same time and costs the same as 4x.

## `outputFormat` (type: `string`):

PNG is lossless and keeps transparency. JPG gives the smallest files (transparent areas become white). WebP keeps transparency with small files but is limited to 16383 px per side.

## `quality` (type: `integer`):

Compression quality for JPG and WebP output (1 to 100). Ignored for PNG.

## `maxInputMegapixels` (type: `number`):

Images larger than this are skipped with a clear message instead of upscaled. 1 MP is about 1000x1000 px. Hard ceiling: 16 MP.

## `maxFileSizeMb` (type: `integer`):

Files larger than this are skipped.

## `tileSize` (type: `integer`):

Large images are processed in tiles of this size to keep memory low. The default is tuned for speed; you rarely need to change it.

## Actor input object example

```json
{
  "images": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg"
  ],
  "scale": "4",
  "outputFormat": "png",
  "quality": 90,
  "maxInputMegapixels": 4,
  "maxFileSizeMb": 30,
  "tileSize": 384
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `files` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "images": [
        "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("trev0n/image-upscaler").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "images": ["https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg"] }

# Run the Actor and wait for it to finish
run = client.actor("trev0n/image-upscaler").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "images": [
    "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3f/Fronalpstock_big.jpg/500px-Fronalpstock_big.jpg"
  ]
}' |
apify call trev0n/image-upscaler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,trev0n/image-upscaler"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/och7Z7euofGPxJk5Y/builds/JTu90Spk0tkEhXXfe/openapi.json
