Digital technologies, with the forerunner of artificial intelligence (AI), affect many aspects of modern society. With the integration of AI, the education sector has offered innovative educational experiences for both students and teachers. This work aims to give an overview of the implementation of artificial intelligence in the education landscape, considering two different aspects of AI. The first approach considers education using AI technology during teaching and learning, known as AI in education, while the second one is education for AI concentrated on AI literacy. AI transforms the role of teachers, shifting their focus to the more strategic and creative aspects of the educational process. The techniques and technologies implemented in the educational AI-powered systems have also been communicated. AI not only imparts privileges to the education systems but also triggers some concerns. Ethical issues, including data privacy, biases, algorithmic robustness, and the potential misuse of AI-generated content, have been studied as well.