krunalmangroliya/light-flux

Public
5 runs

Run krunalmangroliya/light-flux with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

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
front_image
string
The main foreground image to be relighted and placed on a new background.
background_prompt
string
A text prompt to generate the background image.
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
width
None
1024
The width of the generated images in pixels
height
None
1024
The height of the generated images in pixels
steps
integer
30

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
3.5

Max: 32

Classifier-Free Guidance scale - higher values encourage adherence to prompt, lower values encourage more creative interpretation. For FLUX.1-schnell, 0 is often used.
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
None
webp
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
{
  "type": "array",
  "items": {
    "type": "string",
    "format": "uri"
  },
  "title": "Output"
}