I am trying to create dataset using Einstein Vision API, but getting below error

  "message": "The 'data' parameter must be supplied supplied as a one of the supported file formats for image."

This error message is not listed on below page


May I know what could be the issue ?

curl -X POST -H "Authorization: Bearer <TOKEN>" -H "Cache-Control: no-cache" -H "Content-Type: multipart/form-data" -F "path=https://www.dropbox.com/s/pk19t9mwfb0qomr/players.zip"  https://api.einstein.ai/v1/vision/datasets/upload/sync
  • based on the error message, what image format are you using?
    – glls
    May 31, 2017 at 16:56
  • I am using jpg as image format May 31, 2017 at 17:02
  • please share you code (without sensitive date such as tokens) how you are doing the request, etc etc
    – glls
    May 31, 2017 at 17:04
  • I have added my curl request. Please obtain token from api.einstein.ai/token May 31, 2017 at 17:21
  • fyi: the link you provided does not seem to work for api-error-codes-and-messages
    – glls
    May 31, 2017 at 18:04

2 Answers 2


Einstein visions documentation states that it supports the following image file types:

The supported image file types are PNG, JPG, and JPEG.

your error message states that the file format for your image is incorrect, since you have not shared it, I will assume that the error message is accurate and you are using another file format or did not specify it.


It's a super frustrating error message as you clearly are passing in the path parameter with the "URL of the .zip file".

I've come to the conclusion that metamind just can't (currently) work with zip files hosted by dropbox.

Try the same command but change the path to either https://developer.salesforce.com/files/Cats.zip or http://einstein.ai/images/mountainvsbeach.zip. It should work fine.

But then if you host those exact same zip files on Dropbox it won't work. There is something in the way Dropbox is serving up the files that doesn't work in this scenario.

The simplest solution would be to find another service to host the publicly accessible zip file.

Alternatively, I've had success with OneDrive.

  1. I get the sharing link from one drive. E.g. https://1drv.ms/u/s!AoG_XTqjLWrCo7kpMul9Gr3niCXwgw.
  2. Open that link in an incogneto Chrome window.
  3. Get the actual zip link when the download starts.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .