POST

Restore and upscale faces in a photo with configurable upscale and fidelity. Powered by CodeFormer

/v1/face/restore

Powered by Replicate

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/face/restore
Content-Type: application/json

{
  "image": "https://tools402.dev/og/og-docs.png",
  "upscale": 2,
  "fidelity": 0.7
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Restore and upscale faces in a photo with configurable upscale and fidelity. Powered by CodeFormer via Replicate.

Cloud platform to run open-source machine learning models via API.

Request schema

Body: JSON · application/json

FieldTypeDescription
imagestringrequired
upscaleintegerrequiredmin: 1
fidelitynumberrequiredmin: 0
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/face/restore \
  -H "Content-Type: application/json" \
  -d '{
  "image": "https://tools402.dev/og/og-docs.png",
  "upscale": 2,
  "fidelity": 0.7
}'

402 payment flow omitted — see Integrations for settlement.