- Try the Clarifai demo at: https://clarifai.com/demo
- Sign up for a free account at: https://clarifai.com/developer/account/signup/
- Read the developer guide at: https://clarifai.com/developer/guide/
Install the API client:
npm install clarifai
Firstly, generate your Clarifai API key on the API keys page. The client uses it for authentication.
Then, use the code below to create a
Clarifai.App instance using which you interact with the client.
const Clarifai = ;const app =apiKey: 'YOUR_API_KEY';
This will work in node.js and browsers via Browserify.
You can also use the SDK by adding this script to your HTML:
Dive right into code examples to get up and running as quickly as possible with our Quick Start.
Learn the basics — predicting the contents of an image, searching across a collection and creating your own models with our Guide.
Check out the JSDoc for a deeper reference.
Looking for a different client? We have many languages available with lots of documentation Technical Reference
You'll most likely encounter the error
process.nextTick is not a function while using this library with React Native.
To solve this, add
process.nextTick = setImmediate; as close to the top of your entrypoint as you can. See #20 for more info.
This project is licensed under the Apache 2.0 License - see the LICENSE file for details.