# Product Photo Upscaler — CPU 2x/4x + ZIP · $4/1K (`apivault_labs/product-photo-upscaler`) Actor

Batch upscale product photos 2x/4x with local CPU FSRCNN. Download PNGs in one ZIP with manifest, dimensions and SHA-256. Uploads or URLs; clear failure report. $4/1000 delivered images; start/platform usage extra.

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

## Pricing

from $4.00 / 1,000 product photo delivereds

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## Product Photo Upscaler — CPU 2x/4x images and one ZIP download

Prepare small product photos for catalogue and design workflows using the open FSRCNN model on CPU. Upload JPG, opaque PNG or WebP files, or paste direct image URLs. Choose 2x or 4x, then download PNG images or one ZIP with a JSON manifest. Both scales cost **$0.004 per delivered image ($4/1,000)**; start and Apify resource charges are separate.

Review one representative output before processing your catalogue. Larger dimensions do not guarantee faithful reconstruction of labels, textures or fine detail.

### Start with a product photo

```json
{
  "imageUrls": ["https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=320&q=80&fit=crop"],
  "scale": 2,
  "createZip": true,
  "maxItems": 1
}
```

1. Add photos using **Upload product photos** or **Direct image URLs**.
2. Select 2x or 4x. A 400x300 photo becomes 800x600 or 1600x1200.
3. Open **Batch report** to check delivered, failed and skipped counts.
4. Download images from the Dataset, or follow `archive_url` in the report.

ZIP includes the actual delivered files plus `manifest.json`, with source URL, output filename, dimensions and SHA-256. It adds no image event. Above the 100 MB archive limit, individual image links remain available and `archive_status` is `unavailable`. Download important files before your Apify storage expires.

### Inputs

| Input | Meaning | Default |
|---|---|---|
| `imageFiles` | Uploaded JPG, opaque PNG or WebP | none |
| `imageUrls` | Direct public image links | none |
| `scale` | Exactly 2 or 4 | 2 |
| `maxItems` | Maximum inputs scheduled for processing, 1–100 | 100 |
| `createZip` | Bundle delivered images and manifest | true |
| `maxConcurrency` | One or two simultaneous images | 2 |
| `maxWait` | Deadline per image, 60–300 seconds | 180 |
| `useDemoOnEmpty` | Explicitly process one sample if empty | false |

Uploads and URLs share a limit of 100 unique addresses. Exact repeated URLs run once. `maxItems` and your run charge limit restrict scheduled inputs before image processing; failed scheduled inputs do not cause later skipped inputs to be substituted. Empty input does no image work unless you explicitly enable the paid demo.

### Results and failures

One successful Dataset row contains `source_url`, `result_url`, `file_name`, `sha256`, `scale`, original and output dimensions, byte sizes, formats and `duration_ms`. Dimensions come from decoded files and must match the requested scale. Read `REPORT` for `status`, `requested`, `scheduled`, `delivered`, `failed`, `skipped`, `archive_status` and `archive_url`.

`complete` means every scheduled input delivered; `partial` includes failures or skipped inputs; `limited` means nothing fit your item/charge allowance; `empty` means no input. When every attempted image fails, the Actor fails and saves the failure report. A partial batch can finish successfully; always check counts. Failed and skipped images produce no Dataset image row and no image result event.

### Price

- Image event: **$0.004 for each image delivered to the Dataset**, for 2x and 4x.
- Start: $0.00005 per allocated GB, minimum one event per run.
- Apify platform usage: charged separately. Even empty or failed runs can have start/resource costs.
- ZIP, manifest and failure report: no additional image event.

At the default 1 GB, 100 delivered images cost $0.40005 in events, plus platform usage. One image costs $0.00405 in events. These are tariff examples, not measured resource totals. A maximum charge controls event fees; it does not promise a total invoice cap including separately billed usage.

### Limits and quality

Input download: up to 25 MB. Output: up to 32 megapixels and 100 MB. Images must be at least 16x16 pixels. The Actor refuses excessive output dimensions before running inference; it does not silently shrink a large original. Transparent and animated images are rejected. It is intended for opaque product photography, not alpha-preserving logos or animation. All results are PNG. The model can introduce smoothing, halos and inaccurate fine detail. No dedicated face restoration, OCR recovery or background removal is provided. Use `maxConcurrency: 1` for large photos; larger inputs take more CPU time and resources.

Inference runs inside your Apify run, without uploading image bytes to an external AI provider or waiting in its queue. Source-image download and Apify storage still use the network. The Actor needs no separate provider key, GPU or subscription. It uses [Saafke's FSRCNN models](https://github.com/Saafke/FSRCNN_Tensorflow), pinned and verified by SHA-256 during build and before inference, under Apache-2.0. CPU FSRCNN is a compact super-resolution model; it is not a diffusion or generative product-restoration service. Model quality varies by input. This product uses its own CPU engine, catalogue delivery controls, ZIP/manifest and tariff; our general Photo Upscaler remains a separate service.

### API, n8n and MCP

Use `apivault_labs/product-photo-upscaler` in Apify's API, n8n, Make or hosted MCP. Send the same input JSON, wait for completion, then read Dataset images and the `REPORT` record. Use `maxItems: 1` for the first quality check. A local filesystem path cannot be downloaded by a cloud run. Keep tokens and signed source/result URLs private.

Questions or failed photos: open an Issue with the run ID and a non-sensitive example. Check the Pricing tab for the active tariff.

# Changelog

This Actor's version history is a separate document: https://apify.com/apivault_labs/product-photo-upscaler/changelog.md

# Actor input Schema

## `imageFiles` (type: `array`):

JPG, opaque PNG or WebP. Uploads and URLs share a combined 100-input limit.

## `imageUrls` (type: `array`):

Public image links, one per line. Exact duplicate URLs run once. Remove the visible sample when using only uploads.

## `scale` (type: `integer`):

Enter exactly 2 or 4; other values are rejected. Actual output dimensions must match. Large images are rejected rather than silently reduced.

## `maxItems` (type: `integer`):

Limits scheduled inputs before processing. Failed inputs are not replaced by later skipped inputs.

## `createZip` (type: `boolean`):

Bundle delivered files, dimensions and SHA-256. No extra image event. Up to100MB; individual links remain if ZIP unavailable.

## `maxConcurrency` (type: `integer`):

One or two concurrent images.

## `maxWait` (type: `integer`):

Deadline including source download, processing and output storage.

## `useDemoOnEmpty` (type: `boolean`):

Off by default. If enabled, an empty input attempts one sample and bills a delivered image.

## Actor input object example

```json
{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=320&q=80&fit=crop"
  ],
  "scale": 2,
  "maxItems": 100,
  "createZip": true,
  "maxConcurrency": 2,
  "maxWait": 180,
  "useDemoOnEmpty": false
}
```

# Actor output Schema

## `images` (type: `string`):

No description

## `report` (type: `string`):

No description

## `zip` (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 = {
    "imageUrls": [
        "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=320&q=80&fit=crop"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("apivault_labs/product-photo-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 = { "imageUrls": ["https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=320&q=80&fit=crop"] }

# Run the Actor and wait for it to finish
run = client.actor("apivault_labs/product-photo-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 '{
  "imageUrls": [
    "https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=320&q=80&fit=crop"
  ]
}' |
apify call apivault_labs/product-photo-upscaler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apivault_labs/product-photo-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/5AaP8XpIgB7agMjhp/builds/eKgKlf9YZpV6gdy1R/openapi.json
