How to use Gemini ai api use to detect the photos or videos like other platforms Instagram, YouTube OwnMates, Pinterest?

How can we use Gemini API key to detect the images, videos or media in our website?