zf-kbot/md-uw-0126-2
Public
0
runs
Run zf-kbot/md-uw-0126-2 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 密钥
|
| input_image |
string
|
输入图片
|
|
| prompt |
string
|
修复破损、污渍、划痕
|
正向提示词
|
| negative_prompt |
string
|
|
负向提示词
|
| megapixels |
number
|
1
|
目标百万像素
|
| aspect_ratio |
None
|
default
|
出图比例
|
| enable_multi_image_edit |
boolean
|
False
|
启用多图编辑模式
|
| ref_image |
string
|
参考图片(多图编辑模式时使用)
|
|
| file_format |
None
|
jpg
|
输出图片格式
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"prompt": {
"type": "string",
"title": "Prompt",
"default": "\u4fee\u590d\u7834\u635f\u3001\u6c61\u6e0d\u3001\u5212\u75d5",
"x-order": 2,
"description": "\u6b63\u5411\u63d0\u793a\u8bcd"
},
"ref_image": {
"type": "string",
"title": "Ref Image",
"format": "uri",
"x-order": 7,
"nullable": true,
"description": "\u53c2\u8003\u56fe\u7247\uff08\u591a\u56fe\u7f16\u8f91\u6a21\u5f0f\u65f6\u4f7f\u7528\uff09"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"x-order": 4,
"description": "\u76ee\u6807\u767e\u4e07\u50cf\u7d20"
},
"file_format": {
"enum": [
"jpg",
"png",
"webp"
],
"type": "string",
"title": "file_format",
"description": "\u8f93\u51fa\u56fe\u7247\u683c\u5f0f",
"default": "jpg",
"x-order": 8
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 1,
"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
},
"negative_prompt": {
"type": "string",
"title": "Negative Prompt",
"default": "",
"x-order": 3,
"description": "\u8d1f\u5411\u63d0\u793a\u8bcd"
},
"enable_multi_image_edit": {
"type": "boolean",
"title": "Enable Multi Image Edit",
"default": false,
"x-order": 6,
"description": "\u542f\u7528\u591a\u56fe\u7f16\u8f91\u6a21\u5f0f"
}
}
}
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"
}