
lightweight-ai / f_kon_0
- Public
- 1.7K runs
Run lightweight-ai/f_kon_0 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 |
---|---|---|---|
prompt |
string
|
remove all texts
|
Text instruction describing the edit to make
|
image |
string
|
Input image to edit
|
|
aspect_ratio |
string
(enum)
|
match_input_image
Options: 1:1, 16:9, 21:9, 3:4, 4:3, 9:16, 9:21, match_input_image |
Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.
|
guidance_scale |
number
|
2.5
Min: 1 Max: 10 |
Guidance scale for generation. Higher values follow the prompt more closely.
|
num_inference_steps |
integer
|
28
Min: 1 Max: 50 |
Number of inference steps
|
seed |
integer
|
-1
|
Random seed. Set -1 to randomize the seed
|
fast_mode |
boolean
|
False
|
Fast response mode - skip actual generation if true
|
{
"type": "object",
"title": "Input",
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 5,
"description": "Random seed. Set -1 to randomize the seed"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "Input image to edit"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "remove all texts",
"x-order": 0,
"description": "Text instruction describing the edit to make"
},
"fast_mode": {
"type": "boolean",
"title": "Fast Mode",
"default": false,
"x-order": 6,
"description": "Fast response mode - skip actual generation if true"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"21:9",
"3:4",
"4:3",
"9:16",
"9:21",
"match_input_image"
],
"type": "string",
"title": "aspect_ratio",
"description": "Aspect ratio of the generated image. Use 'match_input_image' to match the aspect ratio of the input image.",
"default": "match_input_image",
"x-order": 2
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 2.5,
"maximum": 10,
"minimum": 1,
"x-order": 3,
"description": "Guidance scale for generation. Higher values follow the prompt more closely."
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 28,
"maximum": 50,
"minimum": 1,
"x-order": 4,
"description": "Number of inference steps"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}