Image upscaling

Image upscaling API

The models that enlarge an image and restore its detail: sharpen a product photo for print, rescue a low-resolution picture or take a generated image to a bigger size. Run them in the browser or through the API on one MegaBrain key, paid from a prepaid US-dollar balance.

The short answer

MegaBrain runs 3 image upscaling models on one API key: Recraft Crisp Upscale, SeedVR2 Upscale and Ideogram Upscale. At default settings the lowest price is Recraft Crisp Upscale at $0.0048 per image; the highest is Ideogram Upscale at $0.072 per image. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

Image upscaling models and prices

Prices in US dollars from the MegaBrain catalogue; they update automatically. Each model’s page has examples, every parameter and a playground.

ModelTaskPrice
Recraft Crisp Upscale
recraft/upscale/crisp
Image upscaling$0.0048
SeedVR2 Upscale
seedvr/upscale/image
Image upscaling$0.0012 per megapixel
Ideogram Upscale
ideogram/upscale
Image upscaling$0.072

Which upscaler to pick

Recraft Crisp Upscale keeps the picture faithful and sharpens edges: the cheapest choice for product photos and graphics. SeedVR2 restores and enlarges up to 4× per side, so you choose the output size. Ideogram Upscale adds new detail and can be guided by a prompt, for generated art more than for photos.

How the price is counted

Recraft and Ideogram are priced per image. SeedVR2 is priced per megapixel of the upscaled image: the input’s width and height times upscale_factor. A failed job is not charged.

Generate, then upscale

Make the picture at the model’s regular size, then pass the result’s URL in image_url to upscale it, instead of paying for a 4K generation of every draft.

Text to image: models

First request

Generation runs through a queue: a POST request submits the job, then the script polls status_url and fetches the result from response_url. Create the key on the API key page after you sign up.

import os, time, requests

BASE = "https://getmegabrain.com/api/gateway/v1"
HEADERS = {"Authorization": f"Bearer {os.environ['MEGABRAIN_API_KEY']}"}

job = requests.post(f"{BASE}/queue/seedvr/upscale/image", headers=HEADERS, json={
  "image_url": "https://example.com/photo.png",
  "upscale_factor": 2
}).json()

while requests.get(job["status_url"], headers=HEADERS).json()["status"] not in ("COMPLETED", "FAILED"):
    time.sleep(2)

print(requests.get(job["response_url"], headers=HEADERS).json())

Questions and answers

How much does AI image upscaling cost through an API?

MegaBrain runs 3 image upscaling models on one API key: Recraft Crisp Upscale, SeedVR2 Upscale and Ideogram Upscale. At default settings the lowest price is Recraft Crisp Upscale at $0.0048 per image; the highest is Ideogram Upscale at $0.072 per image. Prices are in US dollars from the live MegaBrain catalogue; a job the provider fails is refunded in full.

Do I need an account with each model’s maker?

No. Sign up on MegaBrain, top up the balance by card and create one API key: it works for every model in the table, for the other image, video and audio models and for the text models.

How is generation paid for?

From a prepaid US-dollar balance at the price in the table, with no subscription. The price of a job is held when it is submitted and refunded in full if the provider fails it.

How do I send the image?

Pass a public https:// link or a data: URI in image_url. Recraft Crisp Upscale takes PNG; SeedVR2 and Ideogram Upscale take PNG, JPEG or WebP. In the playground you can upload a file instead.

Get your API key

Sign-up is open. Create an account, top up the balance by card and create a key: it works for every text, image, video and audio model in the catalogue. Credits never expire.

Questions? Write to team@getmegabrain.com