Upload a pretrained model

POST {{baseUrl}}/api/:projectId/pretrained-model/upload

Upload a pretrained model and receive info back about the input/output tensors. If you want to deploy a pretrained model from the API, see startDeployPretrainedModelJob.

Request Body

[{"name"=>"modelFile", "value"=>nil, "datatype"=>"null"}, {"name"=>"modelFileName", "value"=>"<string>", "datatype"=>"string"}, {"name"=>"modelFileType", "value"=>"<string>", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;model&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;modelInfo&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}