zf-kbot/md-me-klein-9b-l40s-1
Public
573.7K
runs
Run zf-kbot/md-me-klein-9b-l40s-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
|
|
API 密钥
|
| mode |
None
|
remover
|
处理模式
|
| input_image |
string
|
输入图片
|
|
| prompt |
string
|
|
正向提示词
|
| megapixels |
number
|
0.8
|
目标百万像素,0表示保持原始分辨率
|
| aspect_ratio |
None
|
default
|
出图比例
|
| color_match_switch |
boolean
|
颜色匹配;未设置时 enhancer 默认开启,其余模式默认关闭
|
|
| strength_model |
number
|
0.1
Max: 1 |
LoRA强度
|
| steps |
integer
|
4
Min: 4 Max: 24 |
生成步数
|
| file_format |
None
|
jpg
|
输出图片格式
|
{
"type": "object",
"title": "Input",
"properties": {
"mode": {
"enum": [
"remover",
"enhancer",
"editor"
],
"type": "string",
"title": "mode",
"description": "\u5904\u7406\u6a21\u5f0f",
"default": "remover",
"x-order": 1
},
"steps": {
"type": "integer",
"title": "Steps",
"default": 4,
"maximum": 24,
"minimum": 4,
"x-order": 8,
"description": "\u751f\u6210\u6b65\u6570"
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "",
"x-order": 3,
"description": "\u6b63\u5411\u63d0\u793a\u8bcd"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 0.8,
"x-order": 4,
"description": "\u76ee\u6807\u767e\u4e07\u50cf\u7d20,0\u8868\u793a\u4fdd\u6301\u539f\u59cb\u5206\u8fa8\u7387"
},
"file_format": {
"enum": [
"jpg",
"png",
"webp"
],
"type": "string",
"title": "file_format",
"description": "\u8f93\u51fa\u56fe\u7247\u683c\u5f0f",
"default": "jpg",
"x-order": 9
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 2,
"nullable": true,
"description": "\u8f93\u5165\u56fe\u7247"
},
"aspect_ratio": {
"enum": [
"default",
"1:1",
"3:2",
"2:3",
"4:3",
"3:4",
"16:9",
"9:16",
"21:9",
"9:21"
],
"type": "string",
"title": "aspect_ratio",
"description": "\u51fa\u56fe\u6bd4\u4f8b",
"default": "default",
"x-order": 5
},
"strength_model": {
"type": "number",
"title": "Strength Model",
"default": 0.1,
"maximum": 1,
"minimum": 0,
"x-order": 7,
"description": "LoRA\u5f3a\u5ea6"
},
"color_match_switch": {
"type": "boolean",
"title": "Color Match Switch",
"x-order": 6,
"nullable": true,
"description": "\u989c\u8272\u5339\u914d\uff1b\u672a\u8bbe\u7f6e\u65f6 enhancer \u9ed8\u8ba4\u5f00\u542f\uff0c\u5176\u4f59\u6a21\u5f0f\u9ed8\u8ba4\u5173\u95ed"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}