If the work goes beyond fair use, it is a copyright violation. It doesn't matter if it was created by a person or an AI.
Technology that makes copyright violations easier/quicker have typically been found legal if "the technology in question had significant non-infringing uses".