Different AI programs might have different arrangements. One purports to only use public domain images for its training, which can be used legally. Some think the lawsuits won't stand up in court. It's being tested. The link I sent you have a link to one AI image that's clearly a copy of a Getty image picture. Here's a link to the original article, complete with the AI photo, which has even copied Getty's strapline... https://www.theverge.com/2023/1/17/23558516/ai-art-copyright-stable-diffusion-getty-images-lawsuit