# RealESRGAN x4

`RealESRGAN_x4` · Xintao · Image Generation & Editing

AI-powered 4× image upscaler with built-in noise reduction. Input: 128–2048px. Output: up to 4× the original resolution. Ideal for photos, illustrations, and old or compressed images.

[Model page](https://runstage.dev/models/realesrgan-x4-upscale) · [JSON](https://runstage.dev/models/realesrgan-x4-upscale.json) · [Catalog](https://runstage.dev/pricing) · [Playground](https://runstage.dev/playground?model=RealESRGAN_x4)

## Technical summary

- **Exact API model slug**: `RealESRGAN_x4`
- **Developer**: Xintao
- **Inference types**: `img-upscale`
- **Infrastructure**: Direct GPU Fleet
- **Headline rate**: Live quote via /api/v2/quote (Resolution × scale)
- **Free quote endpoint**: `POST https://runstage.dev/api/v2/quote`

## Runstage routes

- **Image Upscale** (`img-upscale`): `POST /api/v2/quote` · `POST /api/v2/run` · `GET /api/v2/jobs/{request_id}` · `GET /api/v2/jobs/{request_id}/output`

## Best for

- Run RealESRGAN x4 via unified v2 jobs with free pre-run /price quotes
- Low-latency pay-as-you-go inference on direct GPU capacity

## Billing notes

4× super-resolution upscaling.

## Quickstart (cURL)

```bash
# 1. Free pre-run retail quote
curl -X POST 'https://runstage.dev/api/v2/quote' \
  -H "Content-Type: application/json" \
  -d '{"model":"RealESRGAN_x4","width":1024,"height":1024}'

# 2. Submit metered image upload job (PNG, JPEG, WebP, GIF, or BMP up to 10 MB)
curl -X POST 'https://runstage.dev/api/v2/run' \
  -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  --form-string 'model=RealESRGAN_x4' \
  -F "image=@input.png"

# 3. Poll owner-scoped job result until status is "done" or "failed"
curl -H "Authorization: Bearer $RUNSTAGE_API_KEY" \
  'https://runstage.dev/api/v2/jobs/<request_id>'
```
