# SeedVR2 Upscale API

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

> ByteDance SeedVR2: restores and upscales an image up to 4× per side, priced by the size of the result.

| | |
|---|---|
| Model ID | `seedvr/upscale/image` |
| Task | Image upscaling |
| Price | $0.0012 per megapixel |

## 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 SeedVR2 Upscale cost through the API?**

$0.0012 per megapixel, charged from a prepaid US-dollar balance. A job the provider fails is refunded in full. There is no subscription.

**How do I use SeedVR2 Upscale through the API?**

Submit a job with POST https://getmegabrain.com/api/gateway/v1/queue/seedvr/upscale/image and your MegaBrain API key, poll its status_url until it is COMPLETED, then fetch the result from response_url. The same key and balance work for text models.

**Can I try SeedVR2 Upscale without writing code?**

Yes: once you sign in, the playground on the model page runs SeedVR2 Upscale in the browser, paid from the same balance as the API.

**Does SeedVR2 Upscale take an input image?**

Yes: pass the image to upscale as image_url (an image URL or data: URI).
