POST OpenAI/ImgCut
抠图
请求信息
URI 参数
None.
Body 参数
AICutImg名称 | 描述 | 类型 | 附加信息 |
---|---|---|---|
img2img |
图片 base64编码 |
string |
None. |
Type |
0 抠图功能,1 商品主图的抠图 |
integer |
None. |
请求格式
application/json, text/json
Sample:
{ "img2img": "sample string 1", "Type": 2 }
application/xml, text/xml
Sample:
<AICutImg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UDenCloudProject.Model.ParameterModels"> <Type>2</Type> <img2img>sample string 1</img2img> </AICutImg>
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
抠图
ApiJsonBaseOfObject名称 | 描述 | 类型 | 附加信息 |
---|---|---|---|
Result | boolean |
None. |
|
Message | string |
None. |
|
State | integer |
None. |
|
BizData | Object |
None. |
响应格式
application/json, text/json
Sample:
{ "Result": true, "Message": "sample string 2", "State": 3, "BizData": {} }
application/xml, text/xml
Sample:
<ApiJsonBaseOfanyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UDenCloudProject.API.Models"> <BizData /> <Message>sample string 2</Message> <Result>true</Result> <State>3</State> </ApiJsonBaseOfanyType>