The application of artificial intelligence technology in the global education field is becoming more and more extensive. In the process of English learning, writing has always been a difficulty for students. Therefore, how to integrate artificial intelligence technology into the writing classroom is an urgent appeal for English teachers. This paper compares the advantages and disadvantages of various generative artificial intelligence tools and analyzes the effect of generative artificial intelligence on improving students' writing levels in high school writing classrooms through an empirical study. However, there is still some uncertainty in generative AI, with some predictable and unpredictable risks. When using it for teaching, teachers should fully consider and avoid risks as much as possible, and pay more attention to the cultivation of students' higher-rank thinking abilities, especially critical thinking and creative thinking. At the same time, teachers should constantly improve their digital literacy, constantly explore the use of new technologies, and promote the integration of advanced technologies with classroom teaching to make the classroom more colorful, active, and efficient.