For demo purpose, you can use:

API secret: efd30444-450b-4729-b536-8bfdfb678acc
API key: 113db542-f2a1-427e-acfb-46c2d2dcd6cb

Upload Image

When you upload image to our server, you will get the image ID (image_id), then you can use this image_id to request for the result after interval (for example every 2 seconds). Depends on server status you can get the result as soon as possible.

For demo or test our service, you can follow this step:

Send POST to: http://facebitapi.com:5000/upload
Please notice that the image size is limited to 1MB for demo account.

Sample Python code for uploading image:

filename = './test.jpg'
response = requests.post('http://facebitapi.com:5000/upload',
files={'file': open(filename,'rb')})
            
Then, you will get the response from server, in this format (example):
{
"image_id": "2656c329-aa08-422e-9eea-7d434fbbdf51",
"response_result": "ok"
}
            

Request Result

Now, to get the result for the image_id above, you should send request like this example plus your keys

GET result from: http://facebitapi.com:5000/result

Sample code:

url = "http://facebitapi.com:5000/result"
data = {
                'image_id': imageid, 'result_type': 'all',
                'api_key':'113db542-f2a1-427e-acfb-46c2d2dcd6cb',
                'api_secret'='efd30444-450b-4729-b536-8bfdfb678acc'
            }

headers = {'Content-type': 'application/json', 'Accept': 'text/plain'}
response2 =  requests.get(url, data=json.dumps(data), headers=headers)
            

Other languages, please check our github page.

For more detail, you can see the DEMO page.