GET-sd-models
获取当前 sd 模型
允许已授权的用户通过此接口更新自己的信息。
- URL:
/sdapi/v1/sd-models
- Method:
GET
- 需要登录:否
- 需要鉴权:是
请求参数
参数 | 类型 | 约束 |
---|---|---|
无 |
success
[
{
"title": "raemumix_v51.safetensors [407b21f878]",
"model_name": "raemumix_v51",
"hash": "407b21f878",
"sha256": "407b21f878bbdd4932314bd853f92e6e2c4c26f0e56c18e36948659942e95b20",
"filename": "D:\\Desktop\\stable-diffusion\\stable-diffusion-webui-windows\\models\\Stable-diffusion\\raemumix_v51.safetensors",
"config": null
},
{
"title": "v1-5-pruned-emaonly.safetensors [6ce0161689]",
"model_name": "v1-5-pruned-emaonly",
"hash": "6ce0161689",
"sha256": "6ce0161689b3853acaa03779ec93eafe75a02f4ced659bee03f50797806fa2fa",
"filename": "D:\\Desktop\\stable-diffusion\\stable-diffusion-webui-windows\\models\\Stable-diffusion\\v1-5-pruned-emaonly.safetensors",
"config": null
}
]
错误响应
success
条件:没有模型或者模型加载存在错误
状态码:400
响应示例