zf-kbot/ic-add-border
Public
1.8K
runs
Run zf-kbot/ic-add-border 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 |
|---|---|---|---|
| api_key |
string
|
请输入自定义授权验证 Key
|
|
| image |
string
|
上传需要处理的图片
|
|
| convert_to_grayscale |
boolean
|
True
|
是否将图片转为灰度(去除所有颜色)
|
| watermark_text |
string
|
hello
|
水印文字内容
|
| border_width |
integer
|
1
|
边框厚度(像素)
|
| outer_margin |
integer
|
12
|
外部边距(边框外的白色留白)
|
| inner_padding |
integer
|
0
|
内部留白(图片与边框之间的距离)
|
| font_size |
integer
|
12
|
水印字体大小
|
| show_watermark |
boolean
|
True
|
是否显示水印(取消勾选则显示完整边框)
|
| border_color_hex |
string
|
#000000
|
边框颜色 (十六进制,例如 #000000 代表黑色)
|
| text_color_hex |
string
|
#000000
|
文字颜色 (十六进制,例如 #000000 代表黑色)
|
{
"type": "object",
"title": "Input",
"required": [
"api_key",
"image"
],
"properties": {
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 1,
"description": "\u4e0a\u4f20\u9700\u8981\u5904\u7406\u7684\u56fe\u7247"
},
"api_key": {
"type": "string",
"title": "Api Key",
"x-order": 0,
"description": "\u8bf7\u8f93\u5165\u81ea\u5b9a\u4e49\u6388\u6743\u9a8c\u8bc1 Key"
},
"font_size": {
"type": "integer",
"title": "Font Size",
"default": 12,
"x-order": 7,
"description": "\u6c34\u5370\u5b57\u4f53\u5927\u5c0f"
},
"border_width": {
"type": "integer",
"title": "Border Width",
"default": 1,
"x-order": 4,
"description": "\u8fb9\u6846\u539a\u5ea6\uff08\u50cf\u7d20\uff09"
},
"outer_margin": {
"type": "integer",
"title": "Outer Margin",
"default": 12,
"x-order": 5,
"description": "\u5916\u90e8\u8fb9\u8ddd\uff08\u8fb9\u6846\u5916\u7684\u767d\u8272\u7559\u767d\uff09"
},
"inner_padding": {
"type": "integer",
"title": "Inner Padding",
"default": 0,
"x-order": 6,
"description": "\u5185\u90e8\u7559\u767d\uff08\u56fe\u7247\u4e0e\u8fb9\u6846\u4e4b\u95f4\u7684\u8ddd\u79bb\uff09"
},
"show_watermark": {
"type": "boolean",
"title": "Show Watermark",
"default": true,
"x-order": 8,
"description": "\u662f\u5426\u663e\u793a\u6c34\u5370\uff08\u53d6\u6d88\u52fe\u9009\u5219\u663e\u793a\u5b8c\u6574\u8fb9\u6846\uff09"
},
"text_color_hex": {
"type": "string",
"title": "Text Color Hex",
"default": "#000000",
"x-order": 10,
"description": "\u6587\u5b57\u989c\u8272 (\u5341\u516d\u8fdb\u5236\uff0c\u4f8b\u5982 #000000 \u4ee3\u8868\u9ed1\u8272)"
},
"watermark_text": {
"type": "string",
"title": "Watermark Text",
"default": "hello",
"x-order": 3,
"description": "\u6c34\u5370\u6587\u5b57\u5185\u5bb9"
},
"border_color_hex": {
"type": "string",
"title": "Border Color Hex",
"default": "#000000",
"x-order": 9,
"description": "\u8fb9\u6846\u989c\u8272 (\u5341\u516d\u8fdb\u5236\uff0c\u4f8b\u5982 #000000 \u4ee3\u8868\u9ed1\u8272)"
},
"convert_to_grayscale": {
"type": "boolean",
"title": "Convert To Grayscale",
"default": true,
"x-order": 2,
"description": "\u662f\u5426\u5c06\u56fe\u7247\u8f6c\u4e3a\u7070\u5ea6\uff08\u53bb\u9664\u6240\u6709\u989c\u8272\uff09"
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "string",
"title": "Output",
"format": "uri"
}