That’s right, You can now manually override any and all image moderation decisions made by Cloudinary’s AI algorithms. Say goodbye to those ***** nudity filters that keep flagging your perfectly innocent beach photos as explicit content!
With the Admin API, you can also customize your own set of rules and guidelines for image moderation. No longer will you have to rely on Cloudinary’s default settings which may not align with your brand’s values or target audience. You can now tailor-make your own moderation policies based on your specific needs!
And the best part? It’s super easy to use! All you need is a few lines of code and voila, you’re in control! Here’s an example script for manually overriding image moderation decisions:
// Import the cloudinary library and assign it to the variable 'cloudinary'
const cloudinary = require('cloudinary').v2;
// Configure the cloudinary library with your cloud name, API key, and API secret
cloudinary.config({
cloud_name: 'your-cloud-name',
api_key: 'your-api-key',
api_secret: 'your-api-secret'
});
// Upload an image and override the moderation decision
// Use the cloudinary uploader to upload an image from a specified path
// and then use the .moderate() method to set the moderation decision to false,
// bypassing any moderation policies set by default
const result = await cloudinary.uploader.upload('path/to/image.jpg')
.moderate(false);
And that’s it! With just a few lines of code, you can now take control of your image moderation and ensure that your content is always in line with your brand’s values.
So what are you waiting for? Head on over to Cloudinary’s website and start customizing your own set of rules today! And if you have any questions or need help getting started, don’t hesitate to reach out to their support team. They’re always
Until next time, keep coding and stay awesome!