usamaehsan/firered-image-edit-1.1
image edit bench
Public
17
runs
Run usamaehsan/firered-image-edit-1.1 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 |
|---|---|---|---|
| image |
array
|
Input image(s). Single image for editing, or 2-4 for composition
|
|
| prompt |
string
|
Remove the background
|
Text prompt describing the edit
|
| negative_prompt |
string
|
|
Negative prompt
|
| width |
integer
|
0
Max: 2048 |
Output width (0 = use input size)
|
| height |
integer
|
0
Max: 2048 |
Output height (0 = use input size)
|
| preserve_aspect_ratio |
boolean
|
True
|
Treat width x height as a pixel budget and keep the input's aspect ratio
|
| num_inference_steps |
integer
|
0
Max: 50 |
Steps (0 = auto: 4 with lightning LoRA, 28 without)
|
| true_cfg_scale |
number
|
0
Max: 10 |
CFG scale (0 = auto: 1.0 with lightning, 4.0 without)
|
| seed |
integer
|
-1
|
Random seed (-1 = random)
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 8,
"description": "Random seed (-1 = random)"
},
"image": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Image",
"x-order": 0,
"description": "Input image(s). Single image for editing, or 2-4 for composition"
},
"width": {
"type": "integer",
"title": "Width",
"default": 0,
"maximum": 2048,
"minimum": 0,
"x-order": 3,
"description": "Output width (0 = use input size)"
},
"height": {
"type": "integer",
"title": "Height",
"default": 0,
"maximum": 2048,
"minimum": 0,
"x-order": 4,
"description": "Output height (0 = use input size)"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "Remove the background",
"x-order": 1,
"description": "Text prompt describing the edit"
},
"true_cfg_scale": {
"type": "number",
"title": "True Cfg Scale",
"default": 0,
"maximum": 10,
"minimum": 0,
"x-order": 7,
"description": "CFG scale (0 = auto: 1.0 with lightning, 4.0 without)"
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": " ",
"x-order": 2,
"description": "Negative prompt"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 0,
"maximum": 50,
"minimum": 0,
"x-order": 6,
"description": "Steps (0 = auto: 4 with lightning LoRA, 28 without)"
},
"preserve_aspect_ratio": {
"type": "boolean",
"title": "Preserve Aspect Ratio",
"default": true,
"x-order": 5,
"description": "Treat width x height as a pixel budget and keep the input's aspect ratio"
}
}
}
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"
}