Can't access the api via axios please help?

.post(‘’, {
language: ‘eng’,
isOverlayRequired: ‘true’,
isTable: ‘true’,
OCREngine: ‘2’,
scale: ‘true’,
apikey: 'replace your apikey ',
contentType: ‘application/json’
.then(res => console.log(
.catch(err => console.log(err));

response i am getting is invalid file type.

On first glance, the code looks good but I have no experience with axios. If you test the connection with Postman, do you get the same result?

You probably know it, but just in case: Postman is a free Chrome app, see

If you see the problem even with Postman, a screenshot of the result could be helpful. For me, it works with Postman.