CreateModel
Supports publishing or importing base models and LoRA fine-tuned models.
POST
https://api.alayanew.com/api/model/v1/create
Authorizations
Authorizations:StringHeaderRequired
用户可通过已获取Open API Key做验证,例如:plain Credential=[YOUR_AK],Signature=[YOUR_SK]。
Body
application/json
aidcId:StringRequired
Intelligent Computing Center ID.
modelSourcePath:StringRequired
Model source path.
modelMeta:ObjectRequired
Model metadata information.
modelMeta.name:String Required
Model name.
modelMeta. description:String
Model description.
modelType:StringRequired
Model type (Base/LoRA).
modelExtensions:Object
Model extension fields.
Response
状态码:application/json
200
code:Int
code is a common return value format, representing the execution result of the query operation.
0
-1
0 is the success indicator, meaning the operation completed successfully.
data:object
data.id:String
Model ID.
cURL
Python
JavaScript
Go
Java
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"
}
200
400
401
403
404
500
{
"code": 0,
"data": {
"id": "5df0ef3c-252a-44c8-aba3-a87e23615c76"
}
}