获取模型列表
GET
/ai/pro/model_base_infos获取模型列表
请求参数
无
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSON*/*
OK
数据结构
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
array[object (ModelBaseInfo_response) {7}]
返回数据
type
integer <int32>
可选
模型分类(1-通用模型,3-漫画模型,7-MJ模型)
示例值:
1
model_code
integer <int32>
模型编号
示例值:
2
model_version
string <string>
模型版本
示例值:
1.x
model_desc
string <string>
模型描述
示例值:
二次元增强版
controlnet_support
string <enum>
可选
模型对controlnet的支持情况
示例值:
SUPPORT
support_patterns
array[object (ModelBaseInfoPatternInfo_response) {2}]
支持的作画模式
support_cutdiffusion
boolean
是否支持4k
示例值:
true
示例test data
{"code":"200","message":"success","data":[{"type":1,"model_code":2,"model_version":""1.x"","model_desc":"二次元增强版","controlnet_support":"SUPPORT","support_patterns":[{"pattern_code":1,"layer_diffusion_pattern_methods":[{"method_code":2,"name":"Only Generate Transparent Image (Attention Injection)"}]}],"support_cutdiffusion":true}]}
最后修改时间: 1 个月前