Skip to main content

Deployment LoRA

更新时间:2025-07-02 17:32:25
Deploy LoRA.
POST
https://api.alayanew.com/api/serverless-infer/v1/deployment/lora
Authorizations
AuthorizationsStringHeaderRequired

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

Body
application/json
baseServiceIdStringRequired

Base model service ID.

modelIdStringRequired

Model ID.

nameStringRequired

LoRA model display name.

servedNamelist<String>Required

Unique internal model identifier.

Response
状态码:application/json
codeInt

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

0 is the success flag, indicating the operation completed successfully.
dataObject

msgString

Returns an error message when the code value is -1.

curl --location --request POST 'https://api.alayanew.com/api/serverless-infer/v1/deployment/lora' 
     --header 'Authorization:plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json' 
     --data '
        {
        "baseServiceId": "38fbfc3d-6a88-4c35-b8b6-9efc83949d47",
        "servedName": ["testlora"],
        "name": "test-lora",
        "modelId": "c486cdee-c316-4fc1-9f75-0d1741940f27"
        } ' 
{
  "code": "0",
  "data": {
  },
  "msg": "optional,string,"
}