# AI Image Upscaler & Image Enhancer: Upscale Photos 4x in Bulk (`bulkleads/ai-image-upscaler`) Actor

Upscale images 2x, 3x or 4x with Real-ESRGAN and get each one back as a sharp, larger file with a download link. Paste image links, up to 100,000 a run: product photos, real estate photos, old pictures, anime and drawings. JPG, PNG or WebP out. $0.019 per image; unreadable images are free.

- **URL**: https://apify.com/bulkleads/ai-image-upscaler.md
- **Developed by:** [bulkleads](https://apify.com/bulkleads) (community)
- **Categories:** AI, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $11.40 / 1,000 images upscaled

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/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 & Image Enhancer** makes your images 2x, 3x or 4x bigger and sharper with **Real-ESRGAN**, the open AI upscaling model, and gives each one back as a file with a download link, in your order. Paste image links, one per line, click Start, and get a dataset with a link to every upscaled image. It costs **$0.019 per image**, and images that cannot be read are free.

### What can I use an image upscaler for?

- **Product photos**: turn small supplier or marketplace images into sharp 2,000-pixel product shots for Shopify, Amazon and ads.
- **Real estate and listing photos**: enlarge low-resolution listing pictures for print, brochures and big screens.
- **Old and small pictures**: bring thumbnails, scans and old photos up to a usable size.
- **Anime, drawings and art**: the Anime model keeps clean lines and flat colours.
- **Bulk image pipelines**: upscale a whole catalogue in one run, through the Console or the API.

### What does each result include?

- `id` (your id, or the image's line number) and `source_url`
- `image_url`: a link to the upscaled file in the run's storage (`image_key` is its name there)
- `width` and `height` of the result, `input_width` and `input_height` of your image
- `scale`, `model`, `format` and `bytes`
- `status`: `upscaled` or `failed` (with an `error`); `input_problem: true` means the image itself could not be read (a dead link, a page that is not an image). Failed images are free.

### How to upscale images in bulk

1. Put your image links in **Image links**, one per line. Through the API you can also send a list of objects: `{"id": "sku-1042", "image_url": "https://...", "scale": 2, "model": "anime", "format": "png"}`.
2. Pick **Upscale by** (2x, 3x or 4x), the **Model** (Photo for photos and product shots, Fast for speed, Anime for drawings) and the **File format** (JPG, PNG or WebP).
3. Click **Start**. Each image's link appears in the results as soon as it is done.

Images can be JPG, PNG, WebP, GIF, BMP or TIFF, up to 20 MB each, and a run takes up to 100,000 links. A very large image is made smaller first, so no result is over 16 megapixels. PNG and WebP keep transparency.

### Output example

```json
{
  "id": "1",
  "source_url": "https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=480&q=80",
  "status": "upscaled",
  "image_url": "https://api.apify.com/v2/key-value-stores/<store id>/records/00001-1.jpg",
  "image_key": "00001-1.jpg",
  "format": "jpg",
  "width": 1920,
  "height": 1280,
  "input_width": 480,
  "input_height": 320,
  "scale": 4,
  "model": "photo",
  "bytes": 359641,
  "error": null,
  "input_problem": false
}
```

### How much does it cost?

**$0.019 per image upscaled**, less on higher Apify plans, plus a small start fee per run (it pays for starting the image model's GPU server when it is idle). Images that could not be read or upscaled are free. A run of 100 product photos costs about 100 x $0.019 plus the start fee, so put many images in one run rather than one image per run. Set a maximum cost per run in Apify and the run stops there.

### Which model is it?

**Real-ESRGAN** (x4plus for photos, general-x4v3 for the fast model, x4plus-anime for drawings), run on our own GPUs. It sharpens edges, removes blur and JPEG noise, and adds believable detail when it enlarges. It does not change what is in the picture.

### FAQ

**How do I download the images?** Each row's `image_url` opens the file. To get them all at once, open the run's **Storage**, then **Key-value store**, or read the store through the Apify API.

**Why is the first image of a run sometimes slow?** When nobody has used the model for a while, the first image waits for its GPU server to start (up to about 3 minutes). After that, images take a few seconds each, two batches at a time.

**Can I keep my own ids?** Yes. Through the API, send images as objects with an `id`; each row and its file name carry it.

**What does `failed` mean?** With `input_problem: true` the link did not give an image (it was dead, blocked or not an image file): check the link. Without it, the upscale failed on our side this time: run that image again. Neither is charged.

**How long are the files kept?** As long as Apify keeps the run's storage on your plan. Download or copy them where you need them.

### Related actors

Prompts in bulk on an open model: [OpenRouter Alternative: Bulk LLM Prompts](https://apify.com/bulkleads/openrouter-alternative-bulk-llm). Text of any website: [Website Content Crawler](https://apify.com/bulkleads/website-to-markdown).

# Actor input Schema

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

Links to JPG, PNG, WebP, GIF, BMP or TIFF images, one per line, up to 100,000 a run (each up to 20 MB). Each comes back upscaled as a file in the run's storage, with a link to it, in your order. Images that cannot be read (a dead link, not an image) come back failed, free.

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

How many times wider and taller each image comes back: 2x, 3x or 4x. A very large image is made smaller first, so no result is over 16 megapixels.

## `model` (type: `string`):

Photo (Real-ESRGAN x4plus) is best for photos and product shots; Fast (general x4v3) is quicker and softer; Anime is for drawings, cartoons and anime.

## `format` (type: `string`):

JPG (smallest), PNG (lossless, keeps transparency) or WebP. A result over 12 MB is saved as a smaller JPG (or WebP when it has transparency).

## `maxImages` (type: `integer`):

Upscale at most this many images from the list (optional).

## Actor input object example

```json
{
  "images": [
    "https://images.unsplash.com/photo-1542291026-7eec264c27ff?w=480&q=80",
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=480&q=80",
    "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=480&q=80",
    "https://images.unsplash.com/photo-1518791841217-8f162f1e1131?w=480&q=80",
    "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=80"
  ],
  "scale": "4",
  "model": "photo",
  "format": "jpg"
}
```

# Actor output Schema

## `results` (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://images.unsplash.com/photo-1542291026-7eec264c27ff?w=480&q=80",
        "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=480&q=80",
        "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=480&q=80",
        "https://images.unsplash.com/photo-1518791841217-8f162f1e1131?w=480&q=80",
        "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=80"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bulkleads/ai-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://images.unsplash.com/photo-1542291026-7eec264c27ff?w=480&q=80",
        "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=480&q=80",
        "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=480&q=80",
        "https://images.unsplash.com/photo-1518791841217-8f162f1e1131?w=480&q=80",
        "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=80",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("bulkleads/ai-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://images.unsplash.com/photo-1542291026-7eec264c27ff?w=480&q=80",
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=480&q=80",
    "https://images.unsplash.com/photo-1505740420928-5e560c06d30e?w=480&q=80",
    "https://images.unsplash.com/photo-1518791841217-8f162f1e1131?w=480&q=80",
    "https://images.unsplash.com/photo-1506744038136-46273834b3fb?w=480&q=80"
  ]
}' |
apify call bulkleads/ai-image-upscaler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bulkleads/ai-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/hh6WWDjo4HiMXN7uY/builds/SNkwSvpWgQhtanJbw/openapi.json
