Make your first call

Face Recognition Request

POST /instance/predict_faces

Replies face/set of faces with its predictions.

Parameters:
  • instance_token – generated token
Form Parameters:
 
  • bucket_id – instance bucket id should be passed. If multiple instances of same bucket is running, the requests is distributed accross instances using LRU(Least Recently Used).
  • file – request file
Request Headers:
 
  • Accept – the response content type is “application/json”
  • InstanceToken – token to authenticate (optional if param instance_token is present)
Response Headers:
 
  • Content-Type – success content type is “application/json”
Status Codes:
  • 200 – success responce
  • 400 – when form parameters are missing
  • 401 – when param instance_token or header InstanceToken is not present present

Object Recognition Request

POST /instance/predict_objects

Replies face/set of objects with its predictions.

Parameters:
  • instance_token – generated token
Form Parameters:
 
  • bucket_id – instance bucket id should be passed. If multiple instances of same bucket is running, the requests is distributed accross instances using LRU(Least Recently Used).
  • file – request file
Request Headers:
 
  • Accept – the response content type is “application/json”
  • InstanceToken – token to authenticate (optional if param instance_token is present)
Response Headers:
 
  • Content-Type – success content type is “application/json”
Status Codes:
  • 200 – success responce
  • 400 – when form parameters are missing
  • 401 – when param instance_token or header InstanceToken is not present present