Artificial Intelligence is the technology that creates machines which can simulate human intelligence. It is also a field of computer science which studies and develops this technology.
Once Generative Artificial Intelligence (Generative AI or GenAI) became mainstream, people often use the terms AI and Generative AI interchangeably, but they are not the same thing. Generative AI is a subset of AI.