zf-kbot/flux-test
Public
30
runs
Run zf-kbot/flux-test 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
|
修复破损、污渍、划痕
|
正向提示词
|
| megapixels |
number
|
2.5
|
目标百万像素
|
| color_match_switch |
boolean
|
False
|
启用颜色匹配
|
| output_ext |
None
|
jpg
|
输出图片格式
|
| output_path |
string
|
/tmp/outputs
|
输出文件路径
|
{
"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"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 2.5,
"x-order": 3,
"description": "\u76ee\u6807\u767e\u4e07\u50cf\u7d20"
},
"output_ext": {
"enum": [
"jpg",
"png",
"webp"
],
"type": "string",
"title": "output_ext",
"description": "\u8f93\u51fa\u56fe\u7247\u683c\u5f0f",
"default": "jpg",
"x-order": 5
},
"input_image": {
"type": "string",
"title": "Input Image",
"format": "uri",
"x-order": 1,
"description": "\u8f93\u5165\u56fe\u7247"
},
"output_path": {
"type": "string",
"title": "Output Path",
"default": "/tmp/outputs",
"x-order": 6,
"description": "\u8f93\u51fa\u6587\u4ef6\u8def\u5f84"
},
"color_match_switch": {
"type": "boolean",
"title": "Color Match Switch",
"default": false,
"x-order": 4,
"description": "\u542f\u7528\u989c\u8272\u5339\u914d"
}
}
}
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"
}