Cracking The Code: Understanding Generation Ai