If the AI produces verbatim the licensed works of others then the others own it.
If the AI took individual unlicensed elements and pieced them together then the AI Company owns it.
In any and every case, neither the User nor the Public Domain owns it. Moral of the story is: never use AI for anything.