Skip to main content

Deployment Details(LoRA)

更新时间:2025-07-22 17:32:25
LoRA model service details.
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

Service ID.

Response
状态码:application/json
serviceIdString

Service ID.

statusString

Status.

serviceUrlString

Service URL.

apiKeyString

API Key.

baseServiceIdString

Base model service ID.

namespaceString

Vital Kubernetes Service (VKS) Namespace.

modelIdString

Model ID.

nameString

Service name.

servedNameList<String>

Model identifier.

curl --location --request GET 'https://api.alayanew.com/api/serverless-infer/v1/deployment/38fbfc3d-6a88-4c35-b8b6-9efc83949d47'      --header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK'      --header 'Content-Type: application/json' 
{
  "serviceId":"service ID",
  "status":"string, service status",
  "serviceUrl":"",
  "apiKey":"",
  "baseServiceId":"required, base model service ID",
  "modelId": "String, model ID",
  "name":"string, service display name customized by user",
  "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]"}`