2–4 credits per call

Image Upscaling API

Increase image resolution 2x or 4x from your own backend. Optional face enhancement and sharpening, JPEG or PNG output, and pricing that scales with the factor you ask for.

  • REST · JSON
  • No watermark
  • Nothing stored
endpoint

POST /v1/upscale-image

Base URL
https://app.imggen.ai
Auth
Authorization: Bearer sk_live_…
Cost
2–4 credits
Input
JPEG (JPG), PNG and WebP · max 25 MB

01 — Overview

What is the Image Upscaling API?

The ImgGen AI image upscaling API is a REST endpoint that increases the resolution of an image using AI rather than simple interpolation. It reconstructs edges, textures, and fine detail instead of stretching pixels, so the output stays sharp. You send an image and a scale factor, and the higher-resolution result comes back in the same request.

It is one of seven endpoints in the ImgGen AI image editing API, all of which share a single API key, a single base URL, and the same request and response shape. If you also need this capability in a browser rather than from code, the same AI model powers the AI Image Upscaler tool.

02 — Request

Request parameters

Send a POST request to https://app.imggen.ai/v1/upscale-image, authenticated with an API key in the Authorization header.

Parameters accepted by this endpoint
ParameterTypeRequiredDefaultDescription
imagefileREQUIREDUpscale factor. Accepts 2 or 4.
factornumberoptional4Apply additional facial reconstruction. Useful for portraits and group photos.
enhanceFacebooleanoptionalfalseApply extra sharpening to the upscaled result.
sharpenbooleanoptionalfalseOutput format. Accepts jpeg or png.
outputstringoptionaljpegOutput format. Accepts jpeg or png.
03 — Integrate

How do I integrate the image upscaling API?

Create an API key in your ImgGen account, set it as an environment variable, and call the endpoint. Here is the same request in cURL, Node.js and Python.

curl --request POST \
  --url 'https://app.imggen.ai/v1/upscale-image' \
  --header 'Authorization: Bearer sk_live_YOUR_API_KEY' \
  --form image=@/path/to/photo.jpg \
  --form factor=4 \
  --form enhanceFace=false \
  --form sharpen=false \
  --form output=jpeg
04 — Response

Response

A successful call returns JSON. The result is base64-encoded — decode it before writing to disk or object storage. Every successful response also carries an X-Credit-Remaining header with your balance after the call.

{
  "success": true,
  "message": "Image upscaled successfully",
  "image": "iVBORw0KGgoAAAANSUhEUgAA...SUVORK5CYII="
}
05 — Limits

Limits and behaviour worth knowing

The endpoint accepts JPEG (JPG), PNG and WebP with a 25 MB maximum file size, and responds synchronously within 60 seconds — there is no job to poll and no webhook to configure.

Choose your output format

Set output=png when you need lossless results or an alpha channel to survive; jpeg keeps payloads small for high-volume catalog work.

Face enhancement is opt-in

enhanceFace runs additional facial reconstruction to enhance and upscale portraits. Leave it off for product shots and landscapes where there is no face to improve.

Synchronous by design

There is no job queue to poll. The upscaled image comes back in the same response, within the 60-second request ceiling.

06 — In production

What is the image upscaling API used for?

Where teams put this endpoint into production to process images programmatically, at scale.

Legacy catalog migration

Bring years of small, low-resolution product images up to modern high-resolution display standards in a batch job instead of re-shooting them.

Print preparation

Raise web-resolution assets to a high-quality size that holds up in print, with optional sharpening applied in the same call for a sharper result.

User-generated content

Upscale small avatars and uploads server-side so they render cleanly on high-DPI displays.

Media and archives

Increase the image resolution of scanned or compressed source images before they enter a content management system, alongside restoration where it is needed.

07 — Cost

How much does the image upscaling API cost?

Each successful call costs 2–4 credits, so your effective cost per image follows whichever plan you are on. Credits come from your plan and are shared across every endpoint and the web editor, so you are not buying a separate quota per tool. A call that fails is refunded automatically. See the full pricing page for details.

ImgGen AI plans and API access
PlanPriceCreditsAPI
Free$050 one-time free creditsNo API access
Starter$9.99 / month400 credits / monthAPI access included
Pro$29.99 / month1,400 credits / monthAPI access + priority support
EnterpriseCustomCustom volumeDedicated infrastructure

Credit costs and limits last verified 2026-08-27.

08 — Related

Teams using the image upscaling API usually reach for these next.

Photo Restoration APIPhoto Colorization APIAI Image Upscaler (web tool)All API endpoints

Also available: Background Removal, Watermark Removal, Text Removal, Image Generation.

FAQ

Image Upscaling API FAQ

It is an HTTP endpoint that increases an image’s resolution using a trained model. Instead of interpolating between existing pixels the way a resize does, the model predicts the detail that a higher-resolution version of the image would contain — edges, texture, and structure — and reconstructs it. You POST the image and read the enlarged result from the response.

Get started

Start calling the Image Upscaling API

One key unlocks all seven endpoints. No watermark, full commercial rights, and nothing you send is stored after the response is returned.

Get your API key