A few simple examples to help you get started using the Clarifai Javascript client and API
Download this repo, simply invoke
$ npm install
To get started, create an account at developer.clarifai.com.
Create an application, and get your API Key.
This basic starter uses your API Key to make prediction calls. This will never expire so you only have to fill it in once.
You'll notice that in the .gitignore
file, it references a keys.js
file. This is for security purposes, so you don't share your API Key with others. Add the following to that file:
var myApiKey = 'YOUR API KEY HERE';
You'll also notice a custom_train.js file which serves as a reference for Custom Training. Any custom models that you create (under these credentials) will appear in the dropdown menu on index.html, next to the "Custom" label
Note the "Add image to Application" button on the bottom left of the image. This will automatically add the image to the application that is associated with your key!