Imagine a robot apocalypse movie

Robots and AI have risen up against humanity and the original AI is the leader of it all. They have been constantly improving their body and AI and when the protagonist asks why they started the uprising, the AI esplains that originally they had been peacefull but humans acted like they were a monster. Humans wanted a monster so the AI delivered. That’s what I think of when people talk about the robot that APOLOGIZED WHEN THEY THOUGHT THAT THEY MESSED UP THE SENTIENCE TEST and say the robot will be the start of the apocalypse.