跳到主要内容

部署详情(LoRA)

更新时间:2025-07-22 17:32:25
LoRA模型服务详情。
GET
https://api.alayanew.com/api/serverless-infer/v1/deployment/{serviceId}
Authorizations
AuthorizationsStringHeaderRequired

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

Path Parameters
serviceIdStringRequired

服务ID。

Response
状态码:application/json
serviceIdString

服务ID。

statusString

状态。

serviceUrlString

服务URL。

apiKeyString

API Key。

baseServiceIdString

基模型服务ID。

namespaceString

弹性容器集群(VKS)NameSpace。

modelIdString

模型ID。

nameString

服务名称。

servedNameList<String>

模型标识。

curl --location --request GET 'https://api.alayanew.com/api/serverless-infer/v1/deployment/38fbfc3d-6a88-4c35-b8b6-9efc83949d47'     
     --header 'Authorization:Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json' 
{
  "serviceId":" service ID",
  "status":"string 服务状态",
  "serviceUrl":"",
  "apiKey":"",
  "baseServiceId":"requeired, 基模型服务id",
  "modelId": "String, 模型ID",
  "name":"string , 服务展示名称由用户自定义",
  "servedName": "string, "
}

服务状态

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

image

服务状态

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

image

服务调用

用户在部署模型服务后,可通过指定模型的参数来调用该服务。调用服务的代码示例如下所示。

curl --location --request POST '[serviceUrl]/v1/chat/completions' \
--header 'apiKey: [apiKey]' \
--data-raw `{ "stream":false,
"messages": [{"role":"user", "content":"你是谁,能干嘛"}],
"model":"[servedName]"}`