Skip to main content

CreateModel

更新时间:2025-07-05 16:32:25
Supports publishing or importing base models and LoRA fine-tuned models.
POST
https://api.alayanew.com/api/model/v1/create
Authorizations
AuthorizationsStringHeaderRequired

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

Body
application/json
aidcIdStringRequired

Intelligent Computing Center ID.

modelSourcePathStringRequired

Model source path.

modelMetaObjectRequired

Model metadata information.

modelMeta.nameString Required

Model name.

modelMeta. descriptionString

Model description.

modelTypeStringRequired

Model type (Base/LoRA).

modelExtensionsObject

Model extension fields.

Response
状态码:application/json
codeInt

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

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

data.idString

Model ID.


curl --location --request POST 'http://api.unite.zetyun.cn/api/model/v1/create' 
     --header 'Authorization: plain Credential=YOUR_AK,Signature=YOUR_SK' 
     --header 'Content-Type: application/json' 
     --data '
        {
        "aidcId": 2,
        "modelSourcePath": "/capacity/userdata/vcacb50arkk4/Qwen2.5-7B-Instruct",
        "modelMeta": {
            "name": "test",
            "description": "test"
        },
        "modelType": "base"
        }
{
    "code": 0,
    "data": {
        "id": "5df0ef3c-252a-44c8-aba3-a87e23615c76"
    }
}