GET 查询 LoomLoom 可用模型列表
GET /loom/v1/models 查询 LoomLoom 可用模型列表
所属分组:Models · 可执行模型
Lists models with at least one authority-backed TemplateSpec authoring option for one step type.
BASE URL
https://router.shengsuanyun.com/api认证方式
Authorization: Bearer YOUR_API_KEY端点列表
GET/loom/v1/modelsList LoomLoom-usable models
Lists models with at least one authority-backed TemplateSpec authoring option for one step type.
请求参数
| 参数 | 位置 / 类型 | 说明 |
|---|---|---|
stepType必填 | query / any | Execution unit: text-generate, image-generate, video-generate, audio-generate, audio-transcribe, or model3d-generate. |
请求示例
参考地址:https://loomloom.shengsuanyun.com。路径参数与凭据需替换;非 JSON 请求体需按对应格式准备。
curl -X GET 'https://loomloom.shengsuanyun.com/loom/v1/models?stepType=VALUE' \
-H 'Authorization: Bearer YOUR_API_KEY'响应
200 OK
application/json
| 字段 | 类型 | 说明 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
models | array | 展开结构
数组元素
|
{
"models": [
{
"authoringOptions": [
{
"capabilityProfile": {
"dynamic": false,
"inputPorts": [
null
],
"isDefault": false,
"profileHash": "string",
"profileId": "string",
"profileRevision": "string"
},
"fixedModelContract": {
"executionUnitRef": "string",
"inputPorts": [
null
],
"modelId": "string",
"operation": "string",
"outputPorts": [
null
],
"subjectHash": "string",
"subjectRevisionId": "string",
"variant": "string"
},
"kind": "string"
}
],
"displayName": "string",
"modelId": "string",
"supportedStepTypes": [
"string"
]
}
]
}400 Bad Request
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}401 Unauthorized
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}500 Internal Server Error
application/json
| 字段 | 类型 | 说明 |
|---|---|---|
code | string | |
error | string |
{
"code": "string",
"error": "string"
}