Model
Generative a new model
Generative model.
POST https://api.myapi.com/open-api/sumeru/sdk/model/generate
Generate a 3D virtual human from a photo
Headers
auth_ak*
String
Your API key
Content-Type*
String
multipart/form-data
Request Body
file*
File
Portrait photo file
sex*
Integer
Virtual Human Nature, Input number:
1 :Female
0 :Male
eyelidType
Integer
Eyelid type, Input number:
1: Single eyelid
2: Double eyelid
{
"data": {
"waitTime":30,
"modelId":"22223698866223744"
},
"code": 200,
"message": "success"
}data Object The specific object returned
waitTime Integer Estimated waiting time (seconds)
modelId String Model Unique Identification
code Integer The status identifier returned by the request, with 200 indicating success and others indicating failure
message String The prompt information returned by the interface
Get a model
Get a model info
GET https://api.myapi.com//open-api/sumeru/sdk/model/get/{modelId}
Obtain model information through modelID
Path Parameters
modelId*
String
Model unique identifier
{
"data": {
"status": 1,
"waitTime": null,
"sex": 1,
"eyelidType": null,
"failMessage": null,
"downloadLink": "https://file.sumeruai.com/files/models/916f7cc946d742d684d9a6c2a8d826ea.npz"
},
"code": 200,
"message": "request success"
}data Object The specific object returned
status Integer Generate status code: 1 - success, 3 - Processing, 4 - Fail
waitTime String Estimated waiting time (seconds)
sex Integer Virtual Human Nature: 1 - Female, 0 - Male
eyelidType Integer Eyelid type: 1 - Single eyelid, 2 - Double eyelid
failMessage String If the model generation fails, the reason for the failure will be displayed here
downloadLink String If generated successfully, the model download link will be displayed here
code Integer The status identifier returned by the request, with 200 indicating success and others indicating failure
message String The prompt information returned by the interface
最后更新于
这有帮助吗?