POST OpenAI/ImgUpScale
图片放大
请求信息
URI 参数
None.
Body 参数
AIUpScale名称 | 描述 | 类型 | 附加信息 |
---|---|---|---|
img2img |
图片 base64编码 |
string |
None. |
width |
图片宽 最大4096 4k |
integer |
None. |
height |
图片高 最大4096 4k |
integer |
None. |
请求格式
application/json, text/json
Sample:
{ "img2img": "sample string 1", "width": 2, "height": 3 }
application/xml, text/xml
Sample:
<AIUpScale xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UDenCloudProject.Model.ParameterModels"> <height>3</height> <img2img>sample string 1</img2img> <width>2</width> </AIUpScale>
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>