How Generative AI Works: Models, Training, and Content Generation