Model
Predict
Used to send prediction request and get result-id as response.
POST
URL:{{base_url}}/api/{{version}}/model/:id/predict
Path Parameters
id*
String
Model id of a particular ml model.
Headers
Authorization*
API key
Content-Type*
application/json
Request Body
file
multipart/form-data
File with extensions png , jpeg and pdf. This field is used to send file for getting prediction from ml models.
version*
multipart/form-data
Used to specify the version of ml model, using which we need to get the prediction.
To get prediction using latest version of the model without specifying the correct version , give version value as 0.0. Then the api will use latest available version of the model to get prediction.
splitDocument*
multipart/form-data
It can be "true" or "false". But currently "true" value is only available for some ml models. If the chosen model could not support "true", api will send bad request response. "true" value can give more accurate result if the give pdf file contains more than one page. Please use "true" value in the case of invoice model to increase accuracy.
text
multipart/form-data
Used to get prediction from NER type ml models.
Used to get result of a particular prediction using result id.
GET
URL:{{base_url}}/api/{{version}}/model/result/:id
Path Parameters
id *
String
Result id of a particular prediction.
Headers
Authorization*
API key
Content-Type*
application/json
Model
Used to list available models.
GET
URL:{{base_url}}/api/{{version}}/model/view
Headers
Authorization*
API key
Content-Type*
application/json
Used to get model details.
GET
URL:{{base_url}}/api/{{version}}/model/:id/view
Path Parameters
id*
String
Model id of a particular ml model.
Headers
Authorization*
API key
Content-Type*
application/json
Used to get version details of particular model.
GET
URL:{{base_url}}/api/{{version}}/model/:id/:version/info
Path Parameters
id*
String
Model id of a particular ml model.
version*
Float
Version of a particular ml model.
Headers
Authorization*
API key
Content-Type*
application/json
Used to delete latest model version.
DELETE
URL:{{base_url}}/api/{{version}}/model/:id/delete
Path Parameters
id *
String
Model id of a particular ml model.
Headers
Authorization*
API key
Content-Type*
application/json
You cannot delete PRETRIAINED models using Delete API
Last updated