Restore and enhance faces in photos using GFPGAN. Fix blurry, damaged, or low-quality facial details in 3 seconds for $0.003/image.
import requests
with open("blurry_photo.jpg", "rb") as f:
response = requests.post("https://api.pixelapi.dev/v1/face-restore",
headers={"Authorization": "Bearer YOUR_API_KEY"},
files={"image": f}
)
with open("restored.png", "wb") as f:
f.write(response.content)
print("Face restored!")// JavaScript / Node.js
const fs = require("fs");
const FormData = require("form-data");
const form = new FormData();
form.append("image", fs.createReadStream("blurry_photo.jpg"));
const response = await fetch("https://api.pixelapi.dev/v1/face-restore", {
method: "POST",
headers: {
"Authorization": "Bearer YOUR_API_KEY",
...form.getHeaders()
},
body: form
});
const buffer = Buffer.from(await response.arrayBuffer());
fs.writeFileSync("restored.png", buffer);Reconstructs eyes, skin texture, hair, and facial features that traditional sharpening tools can't recover.
Bring old family photos back to life. Works with scanned, damaged, and low-resolution photographs.
Perfect for enhancing AI-generated portraits. Chain with SDXL/FLUX generation and 4x upscaling for studio-quality output.
Automatically detects and restores all faces in the image. Group photos, family portraits, event photography.
GPU-accelerated on dedicated NVIDIA RTX hardware. No cold starts. Consistent performance.
3 credits per restoration. 100 free credits on signup = 33 free face restorations. No credit card needed.
1. Generate portrait with SDXL ($0.005)
2. Upscale 4x with Real-ESRGAN ($0.003)
3. Face restore with GFPGAN ($0.003)
Total: $0.011 for a publication-ready portrait
1. Upload old/damaged photo
2. Upscale 4x ($0.003)
3. Face restore ($0.003)
Total: $0.006 per restored photo
1. Remove background ($0.002)
2. Face restore ($0.003)
Clean, professional headshots for $0.005
GFPGAN (Generative Facial Prior GAN) is an AI model specifically designed for face restoration. It uses generative adversarial networks with facial priors to restore realistic facial details from blurry, damaged, or low-quality face images.
PixelAPI charges 3 credits ($0.003) per face restoration. You get 100 free credits on signup — 33 free restorations. No credit card required.
Yes! GFPGAN excels at restoring faces in old, damaged, or low-quality photographs. It reconstructs facial features, skin texture, and details that traditional enhancement tools cannot recover.
Absolutely. A popular workflow is to generate with SDXL or FLUX, then run face restoration to sharpen facial details. Especially effective after 4x upscaling.
Yes, GFPGAN detects and restores all faces in the input image. Group photos, family portraits, and crowd shots are all supported.