zf-kbot/md-me-magic-eraser-1
Public
1.6K
runs
Run zf-kbot/md-me-magic-eraser-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 |
|---|---|---|---|
| apikey |
string
|
访问密钥
|
|
| image |
string
|
Base image to edit.
|
|
| mask |
string
|
Mask image (white = area to edit).
|
|
| auto_remove_type |
None
|
general
|
Content type being removed.
|
| auto_quality_mode |
None
|
balanced
|
Quality preset for object removal.
|
| seed |
integer
|
-1
|
Random seed (-1 for random).
|
| output_ext |
None
|
jpg
|
Output image format.
|
| prompt |
string
|
|
Advanced prompt override. Leave blank to use the auto-generated removal prompt.
|
| log_level |
None
|
debug
|
Log level: 'info' for key info, 'debug' for detailed logs
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"image",
"mask"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 2,
"description": "Mask image (white = area to edit)."
},
"seed": {
"type": "integer",
"title": "Seed",
"default": -1,
"x-order": 5,
"description": "Random seed (-1 for random)."
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "Base image to edit."
},
"apikey": {
"type": "string",
"title": "Apikey",
"x-order": 0,
"description": "\u8bbf\u95ee\u5bc6\u94a5"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 7,
"description": "Advanced prompt override. Leave blank to use the auto-generated removal prompt."
},
"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": 8
},
"output_ext": {
"enum": [
"jpg",
"png",
"webp"
],
"type": "string",
"title": "output_ext",
"description": "Output image format.",
"default": "jpg",
"x-order": 6
},
"auto_remove_type": {
"enum": [
"general",
"watermark",
"logo",
"text",
"person",
"clothes",
"object",
"blemish"
],
"type": "string",
"title": "auto_remove_type",
"description": "Content type being removed.",
"default": "general",
"x-order": 3
},
"auto_quality_mode": {
"enum": [
"fast",
"balanced",
"quality"
],
"type": "string",
"title": "auto_quality_mode",
"description": "Quality preset for object removal.",
"default": "balanced",
"x-order": 4
}
}
}
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"
}