You – a human, presumably – are a crucial part of detecting whether a photo or video is made by artificial intelligence.
There are detection tools, made both commercially and in research labs, that can help. To use these deepfake detectors, you upload or link a piece of media that you suspect could be fake, and the detector will give a percent likelihood that it was AI-generated.