0
votes

I'm new to the Alchemy API and am able to make GET/POST requests using my API key, but for AlchemyVision I want to create my own classifiers. I followed the instructions linked below and keep getting an "invalid-api-key-permissions" error.

Here's how I'm posting; maybe I'm not getting something right with the syntax or need to remove the quotes? Would appreciate the help!

curl -X POST -F "husky_positive_examples=@Desktop/Husky.zip" 
"https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key={MY_API_KEY}&version=2016-05-20"

http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/doc/visual-recognition/tutorials.shtml#create_train

1

1 Answers

1
votes

How did you get your API key? If you provisioned an instance of AlchemyAPI, then that key will not work for the call you referenced above.

To get access to image classifier creation, you need to provision an instance of the Visual Recognition service. Keys associated with that tile in Bluemix will work for the functionality you're after.

Additionally, once you get past the credentials issue, you'll need to include more bundles of examples for training. You can supply N positive training ZIPs, or you can simply provide 1 positive ZIP and 1 negative ZIP...

Hope this helps!