Upscale images with AI (coming soon)
upscale_imageUpscale images 2x or 4x using Real-ESRGAN to sharpen edges and reduce blur/JPEG noise. Returns a public download URL, making small photos, thumbnails, or artwork ready for print, store, or OCR.
Instructions
COMING SOON: this Kanto Labs actor is not public on the Apify Store yet. Until it is, calls return an 'actor not yet public' error and nothing is charged. Enlarge images 2x or 4x with Real-ESRGAN, the open-source AI super-resolution model, run inside the actor (no third-party AI API): sharper edges and textures, less blur and JPEG noise than a normal resize. Two models: "general" for photos, product shots, screenshots and scans; "anime" for anime, cartoons, illustrations, logos and line art. Transparency is kept. Returns a public download URL for each upscaled file with input and output dimensions. Use it to make small product photos, thumbnails or artwork print- or store-ready, or to enlarge small text before OCR. Inputs up to about 0.3 megapixels (640x480) are standard price (output up to 2560x1920 at 4x); bigger inputs are reduced to that size unless allowLargeImages is true, which upscales inputs up to about 2.1 MP (1920x1080) at full size at the large price. Upscaling takes about 12 s per standard image and about 80 s per large one, and a call must finish within 300 s, so send at most about 15 standard or 3 large images per call. Only images you have the right to process; social-network and stock-photo links are refused. Cost: $0.01 per image upscaled, $0.06 per large image, billed to your Apify account; failed or refused images are free. Runs the Apify actor kantolabs/ai-image-upscaler with your APIFY_TOKEN; maxTotalChargeUsd caps the spend per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | "general" (default) for photos and real-world images; "anime" for anime, cartoons, illustrations and line art. | |
| scale | No | Upscale factor, "4" (default) or "2". Same price. | |
| quality | No | JPEG / WEBP quality. Default 95. | |
| imageUrls | Yes | Direct links to images (JPEG, PNG, WEBP, GIF first frame, BMP, TIFF; up to 40 MB), e.g. ["https://example.com/product-small.jpg"]. | |
| timeoutSecs | No | Give up after this many seconds (max 300, Apify's limit for synchronous runs). Default 280. For big batches, split the input into several calls. | |
| outputFormat | No | "jpeg" (default, smallest for photos), "png" (lossless, keeps transparency) or "webp" (small, keeps transparency). | |
| allowLargeImages | No | Upscale inputs up to ~2.1 MP at full size and charge the large price ($0.06). Default false: bigger inputs are first reduced to ~0.3 MP and charged $0.01. | |
| maxTotalChargeUsd | No | Hard spending cap for this call in USD, enforced by Apify: the run stops once it has charged this much. Default 1 (server setting KANTO_MAX_CHARGE_USD). |