# Image upscaling API

https://getmegabrain.com/media/image-upscale · prices from the live MegaBrain catalogue

> 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.

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.

## Image upscaling models and prices

| Model | ID | Price |
|---|---|---|
| [Recraft Crisp Upscale](https://getmegabrain.com/media/recraft/upscale/crisp) | `recraft/upscale/crisp` | $0.0048 per image |
| [SeedVR2 Upscale](https://getmegabrain.com/media/seedvr/upscale/image) | `seedvr/upscale/image` | $0.0012 per megapixel |
| [Ideogram Upscale](https://getmegabrain.com/media/ideogram/upscale) | `ideogram/upscale` | $0.072 per image |

## 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.

## Call it

```python
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())
```

## FAQ

**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.
