enhance_image
Upscale, restore, remove backgrounds, colorize, or denoise images by providing a file path, URL, or base64 input. Supports face enhancement, scaling factors, and result display options.
Instructions
Enhance images with upscaling, restoration, background removal, and more. Accepts file paths directly (e.g. C:\photo.jpg), URLs, or base64. File paths are automatically processed without displaying the base64 string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | Input image as: file path (e.g. C:\photo.jpg or /home/user/image.png), URL, base64 string, or image cache ID. File paths are automatically handled without displaying base64. | |
| model | No | Specific model to use for enhancement | |
| scale | No | Upscaling factor (for upscale operation) | 4 |
| operation | Yes | Enhancement operation to perform | |
| batch_size | No | Number of images to process | |
| return_mask | No | Return mask for background removal | |
| display_mode | No | How to return the image: display (show image), save (return base64 for saving), both (show image and provide base64) | display |
| face_enhance | No | Enhance faces during upscaling |