弃用
API参考(旧版)
获取可用模型列表

获取可用模型列表

Action ListAvailableModel

简介

⚠️

该接口已过时,不再维护。

此接口用于获取当前用户可用模型列表

请求

参数名类型描述信息必填
ActionString对应的 API 指令名称,当前 API 为 ListAvailableModel
PublicKeyString用户公钥,可从 用户中心 (opens in a new tab) 获取
SignatureString根据公钥及 API 指令生成的用户签名,参见 签名算法
request_uuidString请求uuid,采用uuid生成方式随机生成

请求示例

{
    "Action":    "ListAvailableModel",
    "PublicKey": "ALLak9M4cNdHXKOJAJJ4k8Hh1hZS2EgJF1D0FlPwfl",
    "request_uuid": "fdee566e-24dc-4e28-bd96-9b7af621b6ec",
    "Signature": "fbe9cb6bad175e885e85b13f6a202bec59f48d90"
}

响应

字段名类型描述信息必填
RetCodeInt返回状态码,为 0 则为成功返回,非 0 为失败
ActionString操作指令名称
MessageString返回错误消息,当 RetCode 非 0 时提供详细的描述信息
SystemPreInstallModels[]SystemPreInstallModel系统预设模型
SelfMainModel[]SelfMainModel自有主模型
SelfSubModel[]SubModel自有子模型

SystemPreInstallModel

字段名类型描述信息必填
IdInt主键ID
NameString模型名称
CodeString模型编码
RecommendString使用建议
DefaultParamsDefaultParam默认参数

DefaultParam

字段名类型描述信息必填
StepsInt迭代步数
CfgScaleFloat提示词指导程度
SamplerString采样方式
ClipSkipIntClipSkip
UpScalerString放大算法

SelfMainModel

字段名类型描述信息必填
IdInt主键ID
NameString模型名称
CodeString模型编码
RecommendString使用建议

SubModel

字段名类型描述信息必填
IdInt主键ID
NameString模型名称
CodeString模型编码
RecommendString使用建议
ModelTypeString模型类型,参考值:lora、text inversion

响应示例

{
    "Action":"",
    "RetCode":0,
    "Message":"",
    "SystemPreInstallModels":[
        {
            "Id":1,
            "Name":"通用",
            "DisplayName":"通用",
            "Recommend":"适用于所有对象,写实风格、细节丰富",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"Euler",
                "ClipSkip":1,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":2,
            "Name":"景观",
            "DisplayName":"景观",
            "Recommend":"适用于写实自然风光、城市街景等",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"Euler",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":4,
            "Name":"人像",
            "DisplayName":"人像",
            "Recommend":"适用于写实人像",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"Euler",
                "ClipSkip":1,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":5,
            "Name":"工业产品",
            "DisplayName":"工业产品",
            "Recommend":"适用于工业产品概念或效果图。如需要更多细节可以选择 \"4x_NMKD-Siax_200k\" 或 \"4x-UniScaleV2_Moderate\"的放大算法",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"DPM++ 2M SDE Karras",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":11,
            "Name":"三维图标",
            "DisplayName":"三维图标",
            "Recommend":"适用于科技类网站,宣传物料的主视觉、配图等。生成时推荐使用参考图。",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7,
                "Sampler":"Euler a",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+ Anime6B"
            }
        },
        {
            "Id":8,
            "Name":"建筑",
            "DisplayName":"建筑",
            "Recommend":"适用于建筑外观设计的概念或效果图。为了获得准确、清晰的生成结果,建议提示词包含:光照条件、环境、天气情况、建筑主体色",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"DPM++ 2M SDE Karras",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":9,
            "Name":"室内设计",
            "DisplayName":"室内设计",
            "Recommend":"适用于室内空间设计的概念或效果图。为了获得准确、清晰的生成结果,建议提示词包含:光照、风格、画面主色调",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":7.5,
                "Sampler":"DPM++ 2M SDE Karras",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+"
            }
        },
        {
            "Id":10,
            "Name":"动漫",
            "DisplayName":"动漫",
            "Recommend":"适用于动漫角色或者场景。若生成人像,分辨率建议为512px*768px或者 512px*1024px;若生成场景,分辨率建议768px*512px、1024px*512px或者 1536px*512px",
            "DefaultParams":{
                "Steps":20,
                "CfgScale":8,
                "Sampler":"Euler a",
                "ClipSkip":2,
                "UpScaler":"R-ESRGAN 4x+ Anime6B"
            }
        }
    ],
    "SelfMainModels":[
        {
            "Id":1,
            "DisplayName":"PICPIK 通用",
            "Recommend":""
        },
        {
            "Id":2,
            "DisplayName":"PICPIK 景观",
            "Recommend":""
        },
        {
            "Id":4,
            "DisplayName":"PICPIK 工业产品",
            "Recommend":""
        },
        {
            "Id":6,
            "DisplayName":"PICPIK 建筑",
            "Recommend":""
        },
        {
            "Id":7,
            "DisplayName":"PICPIK 室内设计",
            "Recommend":""
        },
        {
            "Id":8,
            "DisplayName":"PICPIK 动漫",
            "Recommend":""
        },
        {
            "Id":9,
            "DisplayName":"PICPIK 人像",
            "Recommend":""
        },
        {
            "Id":10,
            "DisplayName":"PICPIK 三维图标",
            "Recommend":""
        }
    ],
    "SelfSubModels":[
        {
            "Id":9999,
            "Name":"测试训练集",
            "DisplayName":"测试训练集",
            "Recommend":"",
            "ModelType":"lora"
        }
    ]
}