You're looking at a specific version of this model. Jump to the model overview.

goodguy1963 /enhance-and-upscale-ai-photos:091f7a37

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Source image to enhance
upscale_factor
integer (enum)
4

Options:

2, 4

Upscale factor
enable_depth_blur
boolean
True
Enable depth-of-field blur effect
blur_strength
number
5

Max: 20

Blur strength for depth effect (higher = more blur)
focal_depth
number
0.8

Max: 1

Focal depth (0.0 = front, 1.0 = back)
focus_spread
integer
4

Min: 1

Max: 20

Focus spread area
blur_steps
integer
20

Min: 5

Max: 50

Number of blur processing steps
focal_range
number
0.5

Min: 0.1

Max: 1

Focal range (smaller = sharper focus transition)
mask_blur
number
1

Max: 10

Mask blur amount
return_temp_files
boolean
False
Return any temporary files, such as preprocessed controlnet images. Useful for debugging.
randomise_seeds
boolean
True
Automatically randomise seeds (seed, noise_seed, rand_seed)
output_format
string (enum)
webp

Options:

webp, jpg, png

Format of the output images
output_quality
integer
95

Max: 100

Quality of the output images, from 0 to 100. 100 is best quality, 0 is lowest quality.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'format': 'uri', 'type': 'string'},
 'title': 'Output',
 'type': 'array'}