POST OpenAI/ImgRoughcast
AI设计(毛坯精装)
请求信息
URI 参数
None.
Body 参数
AIRoughcast| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| model |
* 模型id |
integer |
None. |
| prompt |
* 提示词,2000字符以内 |
string |
None. |
| width |
* 图片宽,取值范围[512,1536] 支持自定义尺寸,尺寸要求为8的倍数,最小尺寸为512,基础尺寸不为8的倍数的,会向8对齐 |
integer |
None. |
| height |
* 图片高,取值范围[512,1536] 支持自定义尺寸,尺寸要求为8的倍数,最小尺寸为512,基础尺寸不为8的倍数的,会向8对齐 |
integer |
None. |
| edge2img |
设计图片,base64格式 |
string |
None. |
| edgeSth |
强度,取值范围:[0,1] |
decimal number |
None. |
| style |
画风ID |
integer |
None. |
| lora |
LoraID |
integer |
None. |
| loraSth |
Lora强度,取值范围[-1,2] |
decimal number |
None. |
| ref2img |
风格参考图,base64格式 |
string |
None. |
| refSth |
强度,取值范围:[0,1] |
decimal number |
None. |
| imgNum |
* 出图的数量,取值范围[1,4] |
integer |
None. |
| dhbStyle |
订货帮风格Id |
integer |
None. |
| dhbSpace |
订货帮空间Id |
integer |
None. |
请求格式
application/json, text/json
Sample:
{
"model": 1,
"prompt": "sample string 2",
"width": 3,
"height": 4,
"edge2img": "sample string 5",
"edgeSth": 6.0,
"style": 7,
"lora": 8,
"loraSth": 9.0,
"ref2img": "sample string 10",
"refSth": 11.0,
"imgNum": 12,
"dhbStyle": 13,
"dhbSpace": 14
}
application/xml, text/xml
Sample:
<AIRoughcast xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/UDenCloudProject.Model.ParameterModels"> <dhbSpace>14</dhbSpace> <dhbStyle>13</dhbStyle> <edge2img>sample string 5</edge2img> <edgeSth>6</edgeSth> <height>4</height> <imgNum>12</imgNum> <lora>8</lora> <loraSth>9</loraSth> <model>1</model> <prompt>sample string 2</prompt> <ref2img>sample string 10</ref2img> <refSth>11</refSth> <style>7</style> <width>3</width> </AIRoughcast>
application/x-www-form-urlencoded
Sample:
Sample not available.
响应信息
资源描述
AI设计(毛坯精装)
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>