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

zsxkib /ic-light-background:60015df7

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
subject_image
string
The main foreground image to be relighted
background_image
string
The background image that will be used to relight the main foreground image
prompt
string
A text description guiding the relighting and generation process
appended_prompt
string
best quality
Additional text to be appended to the main prompt, enhancing image quality
negative_prompt
string
lowres, bad anatomy, bad hands, cropped, worst quality
A text description of attributes to avoid in the generated images
compute_normal
boolean
False
Whether to compute the normal maps (slower but provides additional output images)
width
integer (enum)
512

Options:

256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024

The width of the generated images in pixels
height
integer (enum)
640

Options:

256, 320, 384, 448, 512, 576, 640, 704, 768, 832, 896, 960, 1024

The height of the generated images in pixels
steps
integer
25

Min: 1

Max: 100

The number of diffusion steps to perform during generation (more steps generally improves image quality but increases processing time)
cfg
number
2

Min: 1

Max: 32

Classifier-Free Guidance scale - higher values encourage adherence to prompt, lower values encourage more creative interpretation
highres_scale
number
1.5

Min: 1

Max: 3

The multiplier for the final output resolution relative to the initial latent resolution
highres_denoise
number
0.5

Min: 0.1

Max: 1

Controls the amount of denoising applied when refining the high resolution output (higher = more adherence to the upscaled latent, lower = more creative details added)
light_source
string (enum)
Use Background Image

Options:

Use Background Image, Use Flipped Background Image, Left Light, Right Light, Top Light, Bottom Light, Ambient

The type and position of lighting to apply to the initial background latent
seed
integer
A fixed random seed for reproducible results (omit this parameter for a randomized seed)
number_of_images
integer
1

Min: 1

Max: 12

The number of unique images to generate from the given input and settings
output_format
string (enum)
webp

Options:

webp, jpg, png

The image file format of the generated output images
output_quality
integer
80

Max: 100

The image compression quality (for lossy formats like JPEG and WebP). 100 = best quality, 0 = 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'}