跳到主要内容

查询列表

查询已有模型列表。
GET
https://api.alayanew.com/api/model/v1/list
Authorizations
AuthorizationsStringHeaderRequired

用户可通过已获取Serverless API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。

Query Parameters
aidcIdStringRequired

智算中心ID。

modelTypeString

模型类型(Base/LoRA)。

modelNameString

模型名称(模糊查询)。

modelExtensions.<key>String

模型参数查询。

pageInteger

页码,默认1。

sizeInteger

大小,默认10,最大100。

Response
状态码:application/json
codeInt

code是一种常见的返回值形式,表示查询操作的执行结果。

0是成功标识,表示操作成功完成。
dataObject

查询结果。

curl --location --request GET 'https://api.alayanew.com/api/model/v1/list' 
     --header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json'

{
	"code": 0,
	"data": {
		"count": 1,
		"rows": [
            {
                "id": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
                "aidcId": 1,
                "modelSourcePath":"模型源路径",
                "modelPath": "模型硬连路径, eg: /user/aladdin/share/data/",
                "modelMeta": {
                    "name": "my-model",
                    "description": "test"
                },
                "modelType": "base/lora",
                "modelExtensions": {
                    "label": "deepseek-v1"
                },
                "tenantId": "4ba7b440-9dad-11d1-80b4-00t78fd430c8",
                "createUser": "6ba7b810-9dad-11d1-80b4-00c04fd430c8",
                "createAt": "2025-04-25 13:00:00.000",
                "updateUser": "9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d",
                "updateAt": "2025-04-25 14:00:00.000"
            }
        ]
    }
}