Access the API in Heroku Using the Einstein Vision Add-On

The Einstein Vision add-on gives you easy access to the API in your apps running on Heroku.
Provisioning the add-on is as simple as adding it to your application.
heroku addons:create einstein-vision:test --app coral-brook-39111
Creating einstein-vision:test on coral-brook-39111... free
After you install the add-on, use these config variables to generate an access token and call the API.
  • EINSTEIN_VISION_ACCOUNT_ID—Your account ID
  • EINSTEIN_VISION_PRIVATE_KEY—Your RSA key in PEM format
  • EINSTEIN_VISION_URL—The Einstein Vision API endpoint