API Documentation
  • Welcome!
  • Quick Start
  • API methods
  • Easy integration
  • Handling Large File Sets
  • Supported formats
  • Webhooks
  • Common usecases
    • Auto enhance image quality
    • Create business photo or avatar from face image
    • Face swap
    • Create beautiful product photo
    • Genarate image in high resolution
    • Remove background
    • AI Drawing to Image - Doodle
    • Real estate
    • Enhancing documents
    • Car dealer photo
  • Image processing
    • Resize and padding
    • Denoise and sharpen
    • Enhance lighting and colors
    • Enhance face details
    • Background removal and generation
    • Image generation
    • Inpainting and outpainting (uncrop)
    • Frame identification
    • Print
    • Captions
    • Additional parameters
    • Presets
  • Account & settings
    • Account information
  • storages
    • Description
    • AWS S3
    • AWS S3 IAM Configuration
  • Presets
    • E-commerce
    • Real-estate
    • Print/Photo
    • Digital Art
  • Technology
    • Algorithms
    • Upscale
    • Background removal
      • Remove BG recommendation
    • Sharpen & Noise reduction
    • Enhance Lighting
  • FAQ
Powered by GitBook
On this page
  1. Image processing

Enhance face details

PreviousEnhance lighting and colorsNextBackground removal and generation

Last updated 5 months ago

Enhancing face details is needed when image is rather small or is heavily distorted with noise, compression artefacts or is blurred.

Face enhancement can be done when adding "face_enhance" option to enhancements.

Type of the face enhancement can be selected by setting face_enhance_parameters:type parameter

"enhancements": ["face_enhance"],
"face_enhance_parameters": {
    "type": "beautify-real",
    "level": 0.8,
    "smoothing_level": 0.1
}
Parameter
Description

type

Face enhancing algorithm, described below.

level

Level of face enhancement, values from 0.0 to 1.0. Default is 1.0 - 100%

smothing_level

Additional skin smoothing filter, values from 0.0 to 1.0. Default is 0.0 - 0%

type
description

beautify-real

Enhances face in 2048x2048 resolution, suitable for higher resolution photos effect - real looking skin, no compression/diffusion artifacts. Default value

beautify

Enhances face in 512x512 resolution, suitable for beautify effect - smooth skin, no visible artifacts, low resolution though.

Let's check the examples. Type beautify.

Let's correct generated image with 'beautify-real' type.

Input image
Upscaled 4x with face_enhance option
Upscaled 4x without face_enhance option
Generated face
Face enhancement - beautify-real
Face enhancement - beautify