Programmable Media

Auto-tag assets (video tutorial)

Last updated: May-08-2024


Tag assets automatically during upload by applying AI using Cloudinary and Google Auto Tagging, in Node.js.

Video tutorial

Tutorial contents

This tutorial presents the following topics. Click a timestamp to jump to that part of the video.

What's auto-tagging helpful for?

Jump to this spot in the video  0:05 Auto-tagging is helpful when searching for an asset by a characteristic that's not revealed through its public ID, for example finding a picture of a flower whose public ID is nondescriptive, such as cld_sample. Adding tags manually is time consuming, so Cloudinary provides add-ons that use AI to tag your assets automatically.

Subscribe to the Google Auto Tagging add-on

Jump to this spot in the video  0:47 Click Add-ons in the Console options sidebar to view the available add-ons. Select the Google Auto Tagging add-on, and select a plan. (You can select the Free plan, which allows for 50 monthly categorizations.) Agree to the terms to enable your add-on. For more information about this add-on, see Google Auto Tagging.

Apply auto-tagging when uploading

Jump to this spot in the video  1:18 Within your upload function, pass this additional configuration parameter, categorization: 'google_tagging', to automatically tag the asset you upload. Then, set the minimum confidence score that a detected category needs to get in order to automatically be assigned as a tag. This is done by setting the auto_tagging parameter to the desired minimum score. For example, auto_tagging:0.6 will assign any detected category with a minimum confidence score of 60% as a tag.

Find the auto-tags in the upload response and Media Library

Jump to this spot in the video  2:39 Once you've added the tagging parameters to your upload call, your upload response will include the automatically assigned tags as an array called tags. In addition, the info field in the JSON response contains all the tags along with their associated confidence scores. View a sample response that includes tagging information here.

You can also view all the tags that were assigned to the asset in the Media Library by double-clicking the asset to open the Manage page, and then selecting the Metadata tab.

Search the Media Library for an asset based on its tags

Jump to this spot in the video  3:43 Enter the name of a tag as free text in the Global Search located at the top right of the Media Library and click either your desired match or See matching results from the drop-down menu. The search results will include assets with that tag.

Keep learning

Related topics

If you like this, you might also like...

Upload Programmatically
Use a Cloudinary SDK to upload media assets
Create Upload Presets
Streamline media uploads using signed upload presets
Complex Transformations
Combine transformations to generate a 3D canvas


Cloudinary Academy


Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.


✔️ Feedback sent!

Rate this page: