Embracing Environmental Sustainability: The Role of Generative AI