This study explored pre-service teachers' (undergraduates and graduate students) attitudes toward the application of generative artificial intelligence (GenAI) in science inquiry teaching. The results showed that most pre-service teachers held a positive attitude toward the potential of GenAI in teaching, believing it could effectively assist students in data analysis, text generation, and enhancing learning outcomes. However, some teachers expressed concerns about its application, particularly regarding the accuracy of AI-generated content, ethical issues, and the potential shift in the role of teachers. The study found that undergraduates were more open to AI technology, seeing it as a tool to increase interaction and innovation in learning, while graduate students were more focused on the practical implementation and feasibility of AI in science inquiry. Teachers generally agreed that to effectively integrate GenAI, they need professional training and to consider students' needs and the specific context of AI applications in teaching design. Additionally, the study recommended strengthening ethical guidance for AI in science education and balancing the roles of AI tools and human teachers to ensure the collaborative development of technology and educational goals.