Clipdrop
Authentication
Clipdrop
接口功能: 官方所有接口
Method & Path
-
POST {domain}/bp/ai/clipdrop
-
POST {domain}/bp/server/user/{user_id}/ai/clipdrop
Request
- content-type: "multipart/form-data"
Parameters | Type | Required | Desc |
---|---|---|---|
strategy | string | true | strategy |
module | string | true | clipdrop moule |
... | ... | true | other Parameters |
go
var clipdropMap = map[string]string{
"cleanup": "cleanup/v1",
"upscale": "image-upscaling/v1/upscale",
"reimagine": "reimagine/v1/reimagine",
"remove-background": "remove-background/v1",
"remove-text": "remove-text/v1",
"replace-background": "replace-background/v1",
"sketch-to-image": "sketch-to-image/v1/sketch-to-image",
"text-inpainting": "text-inpainting/v1",
"text-to-image": "text-to-image/v1",
"uncrop": "uncrop/v1",
}
支持官方所有接口,只需在官方文档的请求参数添加 strategy 和对应的 module
Response
- HTTP 状态码:200
json
{
"current_count": 1,
"current_total_count": 10,
"data": ["https://715x351k8o.debug-static.bytepowerapp.cn/ai/image_resp/2024-01-24/159782380343.png"]
}
- HTTP 状态码:4xx
json
{
"error": {
"error_type": "invalid_parameter",
"message": "xxxxx"
}
}
error_type:
- item_not_found(找不到条目)
- config_invalid(console 配置问题)