zf-kbot/object-remover-20251030
Run zf-kbot/object-remover-20251030 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 |
string
|
Base image to edit.
|
|
| mask |
string
|
Mask image (white = area to edit).
|
|
| preprocessing_resolution |
None
|
720p
|
Downscale images to target resolution for faster inference (original = no downscaling)
|
| num_inference_steps |
integer
|
10
Min: 1 Max: 100 |
Number of diffusion steps.
|
| prompt |
string
|
Remove the object and restore background seamlessly.
|
Positive prompt.
|
| negative_prompt |
string
|
text, watermark, logo, artifacts, patterns, distorted edges, blurry texture, extra object, unnatural shadow, duplicated area, unrealistic lighting
|
Negative prompt used for guidance.
|
| task |
None
|
object_removal
|
Task preset (auto fill prompt if blank).
|
| transformer_variant |
None
|
one_reward
|
Choose the released OneReward transformer.
|
| guidance_scale |
number
|
1.4
Max: 20 |
Classifier-free guidance scale.
|
| true_cfg |
number
|
4
Max: 10 |
True-CFG weight inside pipeline.
|
| seed |
integer
|
0
|
Random seed (-1 for random).
|
| apply_object_removal_lora |
None
|
1
|
Enable object-removal LoRA ("0" = off, "1" = on).
|
| lora_weight |
number
|
1
Max: 2 |
LoRA adapter weight.
|
| enable_crop_optimization |
None
|
disabled
|
Crop to masked region for faster inference
|
| crop_padding |
integer
|
128
Max: 512 |
Padding around masked region when cropping (pixels)
|
| auto_config_mode |
None
|
disabled
|
Auto-tune object removal parameters based on mask and presets.
|
| auto_remove_type |
None
|
general
|
Content type being removed when auto config is enabled.
|
| auto_quality_mode |
None
|
balanced
|
Quality profile for auto configuration.
|
| auto_mask_ratio_override |
number
|
-1
Min: -1 Max: 1 |
Override mask area ratio (0-1). Set <0 to use auto-computed ratio.
|
| auto_config_overrides |
string
|
|
JSON overrides for auto configuration (advanced).
|
| log_level |
None
|
debug
|
Log level: 'info' for key info, 'debug' for detailed logs
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 1,
"nullable": true,
"description": "Mask image (white = area to edit)."
},
"seed": {
"type": "integer",
"title": "Seed",
"default": 0,
"x-order": 10,
"description": "Random seed (-1 for random)."
},
"task": {
"enum": [
"custom",
"image_fill",
"extend_with_prompt",
"extend_without_prompt",
"object_removal"
],
"type": "string",
"title": "task",
"description": "Task preset (auto fill prompt if blank).",
"default": "object_removal",
"x-order": 6
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Base image to edit."
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "Remove the object and restore background seamlessly.",
"x-order": 4,
"description": "Positive prompt."
},
"true_cfg": {
"type": "number",
"title": "True Cfg",
"default": 4,
"maximum": 10,
"minimum": 0,
"x-order": 9,
"description": "True-CFG weight inside pipeline."
},
"log_level": {
"enum": [
"info",
"debug"
],
"type": "string",
"title": "log_level",
"description": "Log level: 'info' for key info, 'debug' for detailed logs",
"default": "debug",
"x-order": 20
},
"lora_weight": {
"type": "number",
"title": "Lora Weight",
"default": 1,
"maximum": 2,
"minimum": 0,
"x-order": 12,
"description": "LoRA adapter weight."
},
"crop_padding": {
"type": "integer",
"title": "Crop Padding",
"default": 128,
"maximum": 512,
"minimum": 0,
"x-order": 14,
"description": "Padding around masked region when cropping (pixels)"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 1.4,
"maximum": 20,
"minimum": 0,
"x-order": 8,
"description": "Classifier-free guidance scale."
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "text, watermark, logo, artifacts, patterns, distorted edges, blurry texture, extra object, unnatural shadow, duplicated area, unrealistic lighting",
"x-order": 5,
"description": "Negative prompt used for guidance."
},
"auto_config_mode": {
"enum": [
"disabled",
"enabled"
],
"type": "string",
"title": "auto_config_mode",
"description": "Auto-tune object removal parameters based on mask and presets.",
"default": "disabled",
"x-order": 15
},
"auto_remove_type": {
"enum": [
"general",
"watermark",
"logo",
"text",
"person",
"clothes",
"object",
"blemish"
],
"type": "string",
"title": "auto_remove_type",
"description": "Content type being removed when auto config is enabled.",
"default": "general",
"x-order": 16
},
"auto_quality_mode": {
"enum": [
"fast",
"balanced",
"quality"
],
"type": "string",
"title": "auto_quality_mode",
"description": "Quality profile for auto configuration.",
"default": "balanced",
"x-order": 17
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 10,
"maximum": 100,
"minimum": 1,
"x-order": 3,
"description": "Number of diffusion steps."
},
"transformer_variant": {
"enum": [
"one_reward",
"one_reward_dynamic"
],
"type": "string",
"title": "transformer_variant",
"description": "Choose the released OneReward transformer.",
"default": "one_reward",
"x-order": 7
},
"auto_config_overrides": {
"type": "string",
"title": "Auto Config Overrides",
"default": "",
"x-order": 19,
"description": "JSON overrides for auto configuration (advanced)."
},
"auto_mask_ratio_override": {
"type": "number",
"title": "Auto Mask Ratio Override",
"default": -1,
"maximum": 1,
"minimum": -1,
"x-order": 18,
"description": "Override mask area ratio (0-1). Set <0 to use auto-computed ratio."
},
"enable_crop_optimization": {
"enum": [
"enabled",
"disabled"
],
"type": "string",
"title": "enable_crop_optimization",
"description": "Crop to masked region for faster inference",
"default": "disabled",
"x-order": 13
},
"preprocessing_resolution": {
"enum": [
"original",
"720p",
"960p",
"1080p",
"2k"
],
"type": "string",
"title": "preprocessing_resolution",
"description": "Downscale images to target resolution for faster inference (original = no downscaling)",
"default": "720p",
"x-order": 2
},
"apply_object_removal_lora": {
"enum": [
"0",
"1"
],
"type": "string",
"title": "apply_object_removal_lora",
"description": "Enable object-removal LoRA (\"0\" = off, \"1\" = on).",
"default": "1",
"x-order": 11
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}