Welcome

Learn more about what Clarifai has to offer

Get Started
Classification
Moderation
Search
Custom Predictions

      // instantiate a new Clarifai app passing in your api key.
      const app = new Clarifai.App({
       apiKey: 'YOUR_API_KEY'
      });
      
      // predict the contents of an image by passing in a url
      app.models.predict(Clarifai.GENERAL_MODEL, 'https://samples.clarifai.com/metro-north.jpg').then(
        function(response) {
          console.log(response);
        },
        function(err) {
          console.error(err);
        }
      );
//make sure to upgrade to the latest version of python
      
      from clarifai.rest import ClarifaiApp
      
      app = ClarifaiApp(api_key='YOUR_API_KEY')
      
      # get the general model
      model = app.models.get("general-v1.3")
      
      # predict with the model
      model.predict_by_url(url='https://samples.clarifai.com/metro-north.jpg')

      ClarifaiClient client = new ClarifaiBuilder("YOUR_API_KEY")
          .buildSync();
      
      final List<ClarifaiOutput<Concept>> predictionResults =
          client.getDefaultModels().generalModel() // You can also do client.getModelByID("id") to get your custom models
              .predict()
              .withInputs(
                  ClarifaiInput.forImage("https://samples.clarifai.com/metro-north.jpg"))
              .executeSync()
              .get();

      ClarifaiApp *app = [[ClarifaiApp alloc] initWithApiKey:@"YOUR_API_KEY"];
      
      ClarifaiImage *image = [[ClarifaiImage alloc] initWithURL:@"https://samples.clarifai.com/metro-north.jpg"];
      [app getModelByName:@"general-v1.3" completion:^(ClarifaiModel *model, NSError *error) {
          [model predictOnImages:@[image]
                      completion:^(NSArray<ClarifaiSearchResult *> *outputs, NSError *error) {
                          NSLog(@"outputs: %@", outputs);
          }];
      }];

      curl -X POST \
        -H "Authorization: Key YOUR_API_KEY" \
        -H "Content-Type: application/json" \
        -d '
        {
          "inputs": [
            {
              "data": {
                "image": {
                  "url": "https://samples.clarifai.com/metro-north.jpg"
                }
              }
            }
          ]
        }'\
        https://api.clarifai.com/v2/models/aaa03c23b3724a16a56b629203edc62c/outputs

Get started with only a few lines of code!

Go ahead and click the 'Run it!' button above. That will make an API call to predict the concepts inside the sample image.

The response will contain concept names along with the probabilities that they are inside the image.

After you have clicked the button, explore below to learn all about our other API features.

Create and manage applications

Access your applications, train models in our Explorer, and view your account info here.

Take me there!
preview-ui

Classification

Group, sort and organize content based on its visual characteristics

General
general-v1.3
Contains a wide range of tags across many different topics
car
vehicle
asphalt
Learn More
Food
Designed to identify specific food items and visible ingredients
Learn More
Travel
Designed to identify specific features of residential, hotel and travel related properties
Learn More
Weddings
"Knows" all about weddings including brides, grooms, dresses, flowers, etc
Learn More
Color
Retrieve the dominant colors present in your images or videos
Learn More

Moderation

Filter out content that is off-brand, inappropriate or violates your terms of service

NSFW
Returns probability scores on the likelihood that the image or video contains nudity
Learn More
Face Detection
Returns probability scores on the likelihood that the image contains human faces and coordinate locations of where those faces appear with a bounding box.
Learn More

Custom Predictions

Tailor results to fit your unique vocabulary and business logic

Learn More