zf-kbot/md-me-qwen21-eraser-native-l40s
Native Qwen Image 2.1 object removal with paint/circle masks, protected regions and original-size PNG output. Access key required.
Run zf-kbot/md-me-qwen21-eraser-native-l40s 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
|
干净原图;单张 PNG、JPEG 或 WebP,最高 50MP
|
|
| mask |
string
|
与原图同尺寸的 PNG 蒙版;实心白色选中擦除区域,读取红色通道,忽略 alpha
|
|
| protect_mask |
string
|
兼容旧调用;忽略且不下载
|
|
| mode |
string
|
enhanced
|
兼容旧调用;忽略,始终开启块化
|
| preview_long_edge |
integer
|
1024
Max: 16384.0 |
整图预览长边;0 关闭,仅缩小大图。原图与 mask 同步缩放,输出保持预览尺寸
|
| seed |
integer
|
兼容旧调用;忽略,固定工作流种子 42
|
|
| num_inference_steps |
integer
|
9
|
兼容旧调用;忽略,固定 9 步
|
| guidance_scale |
number
|
1
|
兼容旧调用;忽略
|
| crop_context |
number
|
1.3
|
兼容旧调用;忽略
|
| max_size |
integer
|
1560
Min: 512.0 Max: 2048.0 |
局部生成面积预算上限,向下取 32 倍数;非严格长边限制
|
| block_size |
integer
|
32
|
兼容旧调用;忽略,固定块大小 32
|
| expand_percent |
integer
|
4
|
兼容旧调用;忽略
|
| feather_percent |
integer
|
5
|
兼容旧调用;忽略
|
{
"type": "object",
"title": "Input",
"required": [
"apikey",
"image",
"mask"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 2,
"description": "\u4e0e\u539f\u56fe\u540c\u5c3a\u5bf8\u7684 PNG \u8499\u7248\uff1b\u5b9e\u5fc3\u767d\u8272\u9009\u4e2d\u64e6\u9664\u533a\u57df\uff0c\u8bfb\u53d6\u7ea2\u8272\u901a\u9053\uff0c\u5ffd\u7565 alpha"
},
"mode": {
"type": "string",
"title": "Mode",
"default": "enhanced",
"x-order": 4,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565\uff0c\u59cb\u7ec8\u5f00\u542f\u5757\u5316"
},
"seed": {
"type": "integer",
"title": "Seed",
"x-order": 6,
"nullable": true,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565\uff0c\u56fa\u5b9a\u5de5\u4f5c\u6d41\u79cd\u5b50 42"
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "\u5e72\u51c0\u539f\u56fe\uff1b\u5355\u5f20 PNG\u3001JPEG \u6216 WebP\uff0c\u6700\u9ad8 50MP"
},
"apikey": {
"type": "string",
"title": "Apikey",
"format": "password",
"x-order": 0,
"writeOnly": true,
"description": "\u8bbf\u95ee\u5bc6\u94a5",
"x-cog-secret": true
},
"max_size": {
"type": "integer",
"title": "Max Size",
"default": 1560,
"maximum": 2048.0,
"minimum": 512.0,
"x-order": 10,
"description": "\u5c40\u90e8\u751f\u6210\u9762\u79ef\u9884\u7b97\u4e0a\u9650\uff0c\u5411\u4e0b\u53d6 32 \u500d\u6570\uff1b\u975e\u4e25\u683c\u957f\u8fb9\u9650\u5236"
},
"block_size": {
"type": "integer",
"title": "Block Size",
"default": 32,
"x-order": 11,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565\uff0c\u56fa\u5b9a\u5757\u5927\u5c0f 32"
},
"crop_context": {
"type": "number",
"title": "Crop Context",
"default": 1.3,
"x-order": 9,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565"
},
"protect_mask": {
"type": "string",
"title": "Protect Mask",
"x-order": 3,
"nullable": true,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565\u4e14\u4e0d\u4e0b\u8f7d"
},
"expand_percent": {
"type": "integer",
"title": "Expand Percent",
"default": 4,
"x-order": 12,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565"
},
"guidance_scale": {
"type": "number",
"title": "Guidance Scale",
"default": 1,
"x-order": 8,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565"
},
"feather_percent": {
"type": "integer",
"title": "Feather Percent",
"default": 5,
"x-order": 13,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565"
},
"preview_long_edge": {
"type": "integer",
"title": "Preview Long Edge",
"default": 1024,
"maximum": 16384.0,
"minimum": 0.0,
"x-order": 5,
"description": "\u6574\u56fe\u9884\u89c8\u957f\u8fb9\uff1b0 \u5173\u95ed\uff0c\u4ec5\u7f29\u5c0f\u5927\u56fe\u3002\u539f\u56fe\u4e0e mask \u540c\u6b65\u7f29\u653e\uff0c\u8f93\u51fa\u4fdd\u6301\u9884\u89c8\u5c3a\u5bf8"
},
"num_inference_steps": {
"type": "integer",
"title": "Num Inference Steps",
"default": 9,
"x-order": 7,
"deprecated": true,
"description": "\u517c\u5bb9\u65e7\u8c03\u7528\uff1b\u5ffd\u7565\uff0c\u56fa\u5b9a 9 \u6b65"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
{
"type": "string",
"title": "Output",
"format": "uri"
}