Skip to main content

ModelSearch

更新时间:2025-07-06 18:32:25
Query the list of existing models.
GET
https://api.alayanew.com/api/model/v1/list
Authorizations
AuthorizationsStringHeaderRequired

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

Query Parameters
aidcIdStringRequired

Intelligent Computing Center ID.

modelTypeString

Model type (Base/LoRA).

modelNameString

Model name (fuzzy query).

modelExtensions.<key>String

Model parameter query.

pageInteger

Page number, default is 1.

sizeInteger

Size, default is 10, maximum is 100.

Response
状态码:application/json
codeInt

code is a common return value format, representing the execution result of the query operation.

0 is a success indicator, meaning the operation was completed successfully.
dataObject

Query results.

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":"Model source path",
                "modelPath": "Model hardlink path, 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"
            }
        ]
    }
}