Skip to main content

查询模型列表

更新时间:2025-07-22 15:32:25
Query the list of models.
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/list
Authorizations
AuthorizationsStringHeaderRequired

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

Query Parameters
aidcIdString

AIDC ID (Artificial Intelligence Data Center ID).

vksIdString

Elastic Container Cluster (VKS) ID.

namespaceString

Elastic Container Cluster (VKS) NameSpace.

nameString

Service name.

modelIdString

Model ID.

modelTypeString

Model type.

modelString

Creation source (lora|expert|quickstart).

statusString

Service status.

extensions.<key>String

Extensions query parameter.

pageInt

Page number. Default is 1.

sizeInt

Number of items per page. Default is 10, maximum is 100.

Response
状态码:application/json
codeInt

The 'code' is a common return value format indicating the execution result of the query operation.

0 is the success indicator, meaning the operation completed successfully.
dataObjectRequired

msgString

Returns error information when the code value is -1.

curl --location --request GET 'https://api.alayanew.com/api/serverless-infer/v1/deployment/list' 
     --header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json' 
{
  "code": "0",
  "data": {
    "count":"",
    "rows":[
      { 
        "serviceId":"",
        "serviceUrl":"string",
        "apikey":"String ",
        "status":"string, status, staring, running, stopping, stopped, failed",
        "vksId": "",
        "namespace": "",
        "name":"",
        "servedName": "",
        "modelId": "String, Model ID",
        "type":"base/lora"
    }
  ]
 },
  "msg":""
}

服务状态

服务状态(status)流转详情如下图所示。

image