Can't access the api via axios please help?

axios
.post(‘https://api.ocr.space/parse/image’, {
language: ‘eng’,
isOverlayRequired: ‘true’,
url:
https://cdn2.geckoandfly.com/wp-content/uploads/2013/11/011-details-2560x1440-A.jpg’,
isTable: ‘true’,
OCREngine: ‘2’,
scale: ‘true’,
apikey: 'replace your apikey ',
contentType: ‘application/json’
})
.then(res => console.log(res.data))
.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 Free OCR API

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