API docs / Image models

real-esrgan API

Upscales images by 2x, 4x, or 8x using Real-ESRGAN super-resolution technology. Enhances details while removing artifacts for real-world images, with improved results on faces compared to the original version. Trained on synthetic data to handle common image degradation issues.

Model id
cjwbw/real-esrgan
Provider
cjwbw
Output
Image
Price
From 2 credits per run, the same as on voor.ai. Options such as length or resolution can change it.

Request

POST https://voor.ai/v1/generations with "model": "cjwbw/real-esrgan". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.

curl https://voor.ai/v1/generations \
  -H "Authorization: Bearer $VOOR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
  "model": "cjwbw/real-esrgan",
  "input": {
    "reference_images": [
      "https://example.com/input.png"
    ]
  },
  "callback_url": "https://example.com/webhooks/voor"
}'

# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
  -H "Authorization: Bearer $VOOR_API_KEY"

Input parameters

NameTypeDetails
reference_imagesrequiredarray of URLs

Input image

Up to 1 files · Accepts image/*

upscale_factornumber

Default: 4

One of: 2, 4, 8