API docs / Image models

gfpgan API

Practical face restoration algorithm for *old photos* or *AI-generated faces*

Model id
tencentarc/gfpgan
Provider
tencentarc
Output
Image
Price
From 1 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": "tencentarc/gfpgan". 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": "tencentarc/gfpgan",
  "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

Up to 1 files · Accepts image/*

scalenumber

Rescaling factor

Default: 2

versionstring

Default: v1.4

One of: v1.2, v1.3, v1.4, RestoreFormer