RapidAPI logo

ClarifaiV2

FREE
By serg.osipchuk
Updated 2 years ago
Visual Recognition
3.4/10
Popularity Score
378ms
Latency
-
Success Rate

ClarifaiV2 API Documentation

Build machine learning models for image/video recognition.

View API Details
POSTaddModelConcepts
POSTcreateConcept
POSTcreateInput
POSTcreateInputs
POSTcreateModel
POSTdeleteAllInputs
POSTdeleteAllModels
POSTdeleteInputById
POSTdeleteInputs
POSTdeleteInputsConcepts
POSTdeleteModel
POSTdeleteModelVersion
POSTgetAllConcepts
POSTgetAllInputs
POSTgetAllModelVersions
POSTgetAllModels
POSTgetConcept
POSTgetInput
POSTgetInputsStatus
POSTgetModel
POSTgetModelOutputInfo
POSTgetModelTrainingInputsByVersion
POSTgetModelTrainingInputs
POSTgetModelVersion
POSTmergeInputsConcepts
POSToverwriteInputsConcepts
POSTpredictModel
POSTremoveModelConcepts
POSTsearchConcepts
POSTsearchInputs
POSTtrainModel
POSTupdateModel
POSTaddModelConcepts

Merge concepts to a model

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
idSTRING
REQUIREDThe id of the model to apply changes to
apiKeyCREDENTIALS
REQUIREDYour Clarifai API key
conceptsJSON
REQUIREDAn array of concept objects or String. See README for more info.
Code Snippet
unirest.post("https://ClarifaiV2serg-osipchukV1.p.rapidapi.com/addModelConcepts")
.header("X-RapidAPI-Host", "ClarifaiV2serg-osipchukV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://ClarifaiV2serg-osipchukV1.p.rapidapi.com/addModelConcepts
Request Method: POST
Response Headers
Response Body
Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://ClarifaiV2serg-osipchukV1.p.rapidapi.com/addModelConcepts")
.header("X-RapidAPI-Host", "ClarifaiV2serg-osipchukV1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication