Whether AI images get copyright, and whether they infringe on others, varies by country and is still being decided.
Discussions of AI images and copyright often blur together and sound confusing. Splitting them into two questions helps a lot. First, does an image you made with AI get copyright, so you can stop others from using it freely?