zf-kbot/md-iu-4x-upscaler
Public
9
runs
Run zf-kbot/md-iu-4x-upscaler 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
|
输入图片
|
|
| megapixels |
number
|
1
|
目标百万像素
|
| mode |
None
|
0
|
模式选择,0=默认,1=开启颜色匹配
|
| output_ext |
None
|
jpg
|
输出图片格式
|
| output_path |
string
|
/tmp/outputs
|
输出文件路径
|
{
"type": "object",
"title": "Input",
"required": [
"input_image"
],
"properties": {
"mode": {
"enum": [
0,
1
],
"type": "integer",
"title": "mode",
"description": "\u6a21\u5f0f\u9009\u62e9\uff0c0=\u9ed8\u8ba4\uff0c1=\u5f00\u542f\u989c\u8272\u5339\u914d",
"default": 0,
"x-order": 3
},
"apikey": {
"type": "string",
"title": "Apikey",
"default": "",
"x-order": 0,
"description": "API \u5bc6\u94a5"
},
"megapixels": {
"type": "number",
"title": "Megapixels",
"default": 1,
"x-order": 2,
"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": 4
},
"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": 5,
"description": "\u8f93\u51fa\u6587\u4ef6\u8def\u5f84"
}
}
}
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"
}