获取模型列表
请求方法
GET
请求地址
https://api.lanrui.co/api/v1/image/model/list
CURL 示例
curl --location --request GET 'https://api.lanrui.co/api/v1/image/model/list?type=Checkpoint' \
--header 'Authorization: Bearer {填入API Key,删除花括号}'
请求参数(form)
参数名 | 参数类型 | 取值范围 | 参数释义 | 是否必填 |
---|---|---|---|---|
type | string | Checkpoint LoRA Embedding | 模型类型 | 否 |
current | int | 默认值: 1 | 当前页 | 否 |
pageSize | int | [1, 100] ,默认值: 30 | 每页数量 | 否 |
返回响应(json)
参数名 | 参数类型 | 参数释义 |
---|---|---|
id | int | 模型 id |
name | string | 模型名称 |
version | string | 模型版本 |
type | string | 模型类型 |
base_model | string | 基础模型 |
trigger_words | string | 触发词 |
is_running | bool | 是否运行中 |