No it doesn't. Commercial intent (usually) makes it illegal, not the fact of copying.
So the criminal party here would be OpenAI, since they are selling access to a service that generates copyright-infringing images.