
GFPGAN
GFPGAN is a photo Enhancer AI model for improving overall photo quality and resolution.
Avg Run Time: 5.000s
Model Slug: gfpgan
Playground
Input
Enter a URL or choose a file from your computer.
Invalid URL.
image/jpeg, image/png, image/jpg, image/webp (Max 50MB)
Output
Example Result
Preview and download your result.

API & SDK
Create a Prediction
Send a POST request to create a new prediction. This will return a prediction ID that you'll use to check the result. The request should include your model inputs and API key.
Get Prediction Result
Poll the prediction endpoint with the prediction ID until the result is ready. The API uses long-polling, so you'll need to repeatedly check until you receive a success status.
Readme
Overview
gfpgan — Image-to-Image AI Model
Developed by Tencent, gfpgan is a specialized image-to-image AI model designed to restore and enhance photographs by reconstructing facial details and improving overall image quality. Rather than generating images from scratch, gfpgan takes existing photos—whether old, degraded, or low-resolution—and intelligently restores them to higher fidelity. The model excels at facial reconstruction, making it particularly effective for family photo restoration, archival digitization, and professional image enhancement workflows where preserving authentic detail matters.
What sets gfpgan apart is its dual-stage restoration approach: it first applies face-aware enhancement to reconstruct facial structure and clarity, then applies global upscaling to improve overall image resolution and detail. This sequential processing is objectively superior to single-model approaches for photographs containing human subjects, delivering results that look natural rather than over-processed or cartoonish.
Technical Specifications
What Sets gfpgan Apart
Face-Aware Restoration: gfpgan prioritizes facial reconstruction before global upscaling, restoring fine details like eyes, skin texture, and facial structure that generic upscaling models often blur or distort. This capability is essential for family photo restoration and portrait enhancement, where facial clarity directly determines perceived quality.
Efficient Hardware Acceleration: gfpgan runs effectively on modest hardware through Intel Quick Sync Video (QSV) and oneDNN optimization, delivering 3–5× speedup over CPU-only processing while consuming under 15W of power. This makes it practical for batch processing large photo collections on home NAS systems or edge devices without requiring expensive GPU infrastructure.
Metadata Preservation: The model integrates seamlessly with automated workflows that preserve embedded IPTC metadata, timestamps, and copyright information during restoration. This is critical for archivists and photographers who need to maintain image provenance and searchability across large collections.
Technical Specifications: gfpgan supports upscaling factors (x2, x4) depending on input quality and desired output resolution. Processing speed reaches approximately 42 images per hour in batch mode on standard NAS hardware, making it practical for digitizing photo archives. The model accepts standard image formats and outputs high-quality restored images suitable for printing or digital archival.
Key Considerations
Over-Restoration:
- In some cases, the restored face might deviate slightly from the original.
Context Preservation:
- Non-facial regions are minimally processed. Ensure the background meets the desired quality before input.
Tips & Tricks
How to Use gfpgan on Eachlabs
Access gfpgan through Eachlabs via the Playground for interactive testing or through the API for production workflows. Provide your input image and specify restoration parameters—face enhancement toggle, upscaling factor (x2 or x4), and optional degradation-type hints—to receive high-quality restored output. The model processes images efficiently and returns results in standard formats ready for download, archival, or further processing.
---END_CONTENT---Capabilities
Creative Uses:
- Enhances AI-generated faces or artistic projects with added realism.
Historical Photo Repair:
- Revives old photographs for personal or archival purposes.
Detail Enhancement:
- Recovers textures like skin, hair, and eyes with impressive clarity.
Face Restoration:
- Repairs blurred, damaged, or low-quality facial images.
What Can I Use It For?
Use Cases for gfpgan
Family Photo Restoration: Homeowners digitizing old photo collections can deploy gfpgan on a private home NAS to restore 1940s wedding photos, 1990s Polaroids, and faded color prints without uploading sensitive family images to cloud services. The model reconstructs facial details and removes dust, scratches, and color fade in a single batch process, with results logged and compared side-by-side to originals for quality verification.
Archival Digitization: Museums, libraries, and historical societies processing large photograph collections benefit from gfpgan's batch processing capabilities and metadata preservation features. A curator can organize scans by degradation type—scratches, fading, motion blur—and apply optimized model configurations per group, then automatically preserve original timestamps and copyright metadata in the restored files.
Professional Portrait Enhancement: Photographers and retouchers use gfpgan to enhance portrait clarity and detail before manual touch-up, reducing time spent on foundational restoration work. The model excels at reconstructing skin texture and eye clarity in soft-focus or low-light portraits, enabling faster turnaround on client deliverables.
E-Commerce Product Photography: Product teams restoring older product photography for online catalogs can use gfpgan to upscale and clarify images without re-shooting, particularly useful for archived product lines or historical catalog digitization where original assets are low-resolution or degraded.
Things to Be Aware Of
Restore Vintage Photos:
- Test the model on old or damaged images to witness its transformative abilities
Creative Enhancements:
- Apply the model to artistic or AI-generated portraits for added depth.
Limitations
Generalization:
- May struggle with extreme distortions or non-human faces.
Color Consistency:
- Slight color variations may require manual correction.
Background Restoration:
- Focuses primarily on faces, with less emphasis on backgrounds.
Output Format: PNG
Pricing
Pricing Detail
This model runs at a cost of $0.001080 per second.
The average execution time is 5 seconds, but this may vary depending on your input data.
The average cost per run is $0.005400
Pricing Type: Execution Time
Cost Per Second means the total cost is calculated based on how long the model runs. Instead of paying a fixed fee per run, you are charged for every second the model is actively processing. This pricing method provides flexibility, especially for models with variable execution times, because you only pay for the actual time used.
Related AI Models
You can seamlessly integrate advanced AI capabilities into your applications without the hassle of managing complex infrastructure.
