获取资源选项
GET
/ai/instant/resource获取资源选项
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON*/*
OK
数据结构
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (InstantIdResource_response)
可选
返回数据(object)
image_type_option
array[object (InstantidImageTypeOption_response) {4}]
画面风格
pose
array[object (InstantidPose_response) {6}]
动作选项
sampler
array[string]
可选
sampler采样器
示例值:
[dpmpp_3m_sde, dpmpp_2m_sde, euler_ancestral, ddim, heun, dpm_2]
示例test data
{
"code": "200",
"message": "success",
"data": {
"image_type_option": [
{
"key": "it-都市正装",
"name": "都市正装",
"category": "最美简历照",
"icon_url": "https://cdn.wujiebantu.com/ai_decoration/dushizhengzhuang.png"
}
],
"pose": [
{
"key": "12",
"category": "特写",
"name": "正脸",
"url": "https://cdn.wujiebantu.com/ai_decoration/texiezhenglian.jpeg",
"width": 888,
"height": 1176
}
],
"sampler": [
"dpmpp_3m_sde",
"dpmpp_2m_sde",
"euler_ancestral",
"ddim",
"heun",
"dpm_2"
]
}
}
最后修改时间: 6 天前