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.
|
{
"type": "object",
"title": "Input",
"required": [
"front_image",
"background_prompt"
],
"properties": {
"cfg": {
"type": "number",
"title": "Cfg",
"default": 3.5,
"maximum": 32,
"minimum": 0,
"x-order": 7,
"description": "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": {
"type": "integer",
"title": "Seed",
"x-order": 8,
"description": "A fixed random seed for reproducible results (omit this parameter for a randomized seed)"
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 30,
"maximum": 100,
"minimum": 1,
"x-order": 6,
"description": "The number of diffusion steps to perform during generation (more steps generally improves image quality but increases processing time)"
},
"width": {
"enum": [
256,
320,
384,
448,
512,
576,
640,
704,
768,
832,
896,
960,
1024,
1152,
1280,
1344,
1408,
1472,
1536
],
"type": "integer",
"title": "width",
"description": "The width of the generated images in pixels",
"default": 1024,
"x-order": 4
},
"height": {
"enum": [
256,
320,
384,
448,
512,
576,
640,
704,
768,
832,
896,
960,
1024,
1152,
1280,
1344,
1408,
1472,
1536
],
"type": "integer",
"title": "height",
"description": "The height of the generated images in pixels",
"default": 1024,
"x-order": 5
},
"front_image": {
"type": "string",
"title": "Front Image",
"format": "uri",
"x-order": 0,
"description": "The main foreground image to be relighted and placed on a new background."
},
"output_format": {
"enum": [
"webp",
"jpg",
"png"
],
"type": "string",
"title": "output_format",
"description": "The image file format of the generated output images",
"default": "webp",
"x-order": 10
},
"output_quality": {
"type": "integer",
"title": "Output Quality",
"default": 80,
"maximum": 100,
"minimum": 0,
"x-order": 11,
"description": "The image compression quality (for lossy formats like JPEG and WebP). 100 = best quality, 0 = lowest quality."
},
"appended_prompt": {
"type": "string",
"title": "Appended Prompt",
"default": "best quality",
"x-order": 2,
"description": "Additional text to be appended to the main prompt, enhancing image quality"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "lowres, bad anatomy, bad hands, cropped, worst quality",
"x-order": 3,
"description": "A text description of attributes to avoid in the generated images"
},
"number_of_images": {
"type": "integer",
"title": "Number Of Images",
"default": 1,
"maximum": 12,
"minimum": 1,
"x-order": 9,
"description": "The number of unique images to generate from the given input and settings"
},
"background_prompt": {
"type": "string",
"title": "Background Prompt",
"x-order": 1,
"description": "A text prompt to generate the background image."
}
}
}
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"
}