Image Upscaler & Background Remover (2x/4x, transparent PNG)
Pricing
Pay per event
Image Upscaler & Background Remover (2x/4x, transparent PNG)
Remove image backgrounds (transparent PNG, mask or solid colour) and upscale images 2x or 4x for image URLs you supply. Open-source models run inside the Actor: no external API, no API key. Bulk lists, PNG/JPEG/WebP. $0.0048 per background removal, from $0.0011 per upscaled MP.
Pricing
Pay per event
Rating
0.0
(0)
Developer
fecklesspleb
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
14 days ago
Last modified
Categories
Features
Share
Image Upscaler & Background Remover
Remove the background from images (transparent PNG cutout, optional black-and-white mask, or a solid colour background) and upscale images 2x or 4x, for image URLs you supply. Open-source models run inside the Actor: no external API, no API key, nothing sent to a third-party service.
- Remove background: U²-Net salient-object segmentation (
u2net, or the lighteru2netp). - Upscale 2x / 4x: a compact open-source upscaling network (
realesr-general-x4v3, credits in THIRD_PARTY_NOTICES.md), run on CPU in tiles. - Both: cut out, then upscale the cutout.
- Output as PNG, WebP or JPEG; files are saved in the run's key-value store and linked from each dataset row.
This Actor is not affiliated with, endorsed by or sponsored by the authors of U²-Net, Real-ESRGAN, rembg or any image-hosting site. Model credits and licences: see THIRD_PARTY_NOTICES.md.
Input
| Field | Default | Notes |
|---|---|---|
imageUrls | (required) | Direct links to image files (JPEG, PNG, WebP, GIF first frame, BMP, TIFF) you have the right to edit. Up to 1,000. |
mode | remove-background | remove-background, upscale or both |
scale | "2" | "2" or "4", a string (upscale and both) |
bgModel | u2net | u2net (better edges) or u2netp (lighter and faster, lower quality) |
includeMask | false | also save the foreground mask as a PNG |
backgroundColor | empty = transparent | hex colour such as #ffffff; the cutout is placed on that colour |
outputFormat | png | png, webp, jpeg; transparent results are always PNG or WebP (JPEG needs a background colour) |
jpegQuality | 90 | 50-100, JPEG and WebP |
maxImages | 20 | 1-1,000; extra URLs are left out (not downloaded, not charged) |
maxFileSizeMb | 20 | 1-50; larger downloads are stopped (free skipped row) |
maxInputMegapixels | 25 | 1-50; larger images are skipped before decoding (free) |
maxUpscaleInputMegapixels | 1.0 | 0.01-2; larger images are not upscaled (free skipped row). 1 MP becomes 4 MP at 2x, 16 MP at 4x |
Example (the default input; Buzz Aldrin on the Moon, NASA photo, public domain in the US):
{ "imageUrls": ["https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Aldrin_Apollo_11_original.jpg/500px-Aldrin_Apollo_11_original.jpg"] }
Output
One dataset row per URL. Real row from a local run on 2026-11-11 with "mode": "both" and "includeMask": true on
the default image (finalUrl, outputs and checkedAt left out for brevity; outputs.image and outputs.mask
are the key-value store record URLs):
{"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Aldrin_Apollo_11_original.jpg/500px-Aldrin_Apollo_11_original.jpg","mode": "both","fileBytes": 95832,"contentType": "image/jpeg","inputFormat": "JPEG","inputWidth": 500,"inputHeight": 503,"status": "ok","outputWidth": 1000,"outputHeight": 1006,"outputFormat": "png","outputKey": "0001-500px-Aldrin_Apollo_11_original-e0ca2fec-cutout-upscaled-x2.png","outputBytes": 1778318,"backgroundModel": "u2net","scale": 2,"backgroundColor": null,"foregroundShare": 0.1094,"outputMegapixels": 1.006,"billedOutputMegapixels": 2,"chargedEvents": ["background-removal","upscale-2x-output-megapixel"],"chargedCounts": {"background-removal": 1,"upscale-2x-output-megapixel": 2},"modelSeconds": 6.74,"downloadSeconds": 0.06,"peakRssMb": 958.7,"cpuThreads": 1,"error": null}
More real local runs (same day, 1 CPU core unless noted):
| Input | Output | Whole run |
|---|---|---|
| default: 500x503, remove background | 500x503 transparent PNG, 436 KB | 2.0 s |
| 500x503, both, x2, with mask | 1000x1006 PNG + mask (charged 2 x upscale-2x-output-megapixel) | 8.3 s |
| 1280x1288 (1.65 MP), both, x4 | 5120x5152 PNG, 31 MB | 51 s (21 s on 4 cores) |
| 500x503, upscale, x4 | 2000x2012 PNG (charged 5 x upscale-4x-output-megapixel) | 7.7 s |
outputBytes is the size of the saved files (the image plus the mask, when a mask is saved).
Rows that were not processed have status skipped (refused URL, robots.txt, too large, not an image, over a cap)
or failed (unreadable file, processing error), an error text and chargedEvents: []: they are never charged.
A RUN_SUMMARY record in the key-value store has the totals. If nothing at all could be processed, the dataset
holds one status row explaining why.
Pricing (pay per event)
| Event | When | Price |
|---|---|---|
background-removal | once per image cut out successfully (modes remove-background and both), whatever its size | $0.0048 per image |
upscale-2x-output-megapixel | per started megapixel of the upscaled output image, scale 2x (modes upscale and both) | $0.0016 per output MP |
upscale-4x-output-megapixel | per started megapixel of the upscaled output image, scale 4x (modes upscale and both) | $0.0011 per output MP |
apify-actor-start (Apify synthetic) | each run, once per GB of memory | $0.0006 per GB ($0.0024 per run at the default 4 GB) |
Rounding rule for upscaling: output megapixels = output width x output height / 1,000,000, rounded up to the next whole number (at least 1). Output width and height are the input's times the scale; the event depends on the scale you choose. Examples:
| Input | Scale | Output | Charged |
|---|---|---|---|
| 500 x 503 | 2x | 1000 x 1006 = 1.006 MP | 2 x upscale-2x-output-megapixel |
| 500 x 503 | 4x | 2000 x 2012 = 4.024 MP | 5 x upscale-4x-output-megapixel |
| 1000 x 1000 | 2x | 2000 x 2000 = 4.0 MP | 4 x upscale-2x-output-megapixel |
| 60 x 40 | 4x | 240 x 160 = 0.038 MP | 1 x upscale-4x-output-megapixel |
| 1414 x 1414 (2 MP, the largest allowed) | 4x | 5656 x 5656 = 31.99 MP | 32 x upscale-4x-output-megapixel |
Each row shows outputMegapixels (exact), billedOutputMegapixels (the rounded-up count) and chargedCounts.
Events are charged only after the result file is saved; skipped and failed images are free.
Maximum cost per run: if you set one, the Actor reads each image's size first and works out its exact charge.
An image whose charge would go over what is left is skipped free (a skipped row says what it would have
cost) and the run continues with the next URL, since a smaller image may still fit. When not even the cheapest
possible image fits any more (one background removal and/or one output megapixel), the run stops without
downloading anything else.
Good to know
- Only direct image URLs. Pages of social networks and stock-photo sites (Instagram, Facebook, TikTok, X/Twitter, Pinterest, YouTube, LinkedIn, Snapchat, Threads, Getty Images, Shutterstock, Adobe Stock, iStock) are refused without downloading. Use only images you have the right to edit.
- robots.txt is respected for every request (user-agent
ImageUpscalerBackgroundRemoverBot); a site that disallows it, or whose robots.txt cannot be read, is skipped. No logins, no cookies. - Background removal works best on one clear subject (people, products, animals). It is a salient-object model:
busy scenes or several subjects may give partial masks. Check
foregroundShare(0 = nothing kept).
- Upscaling sharpens and denoises; it cannot recover detail that is not in the image. It runs on CPU, roughly 25-35 seconds per input megapixel per core (local measurement), so large upscales take time.
- An input with its own transparency keeps it when upscaled. In remove-background mode the model's mask replaces
any existing transparency.
backgroundColorapplies only when a background is removed.
- EXIF rotation is applied; animated images use the first frame. Colour profiles are not converted and an embedded ICC profile is not copied to the output.