Except doing all of that is perfectly legal. With music it's called a remix or a cover. With stories it's called fanfic.
If the AI is exactly replicating an artists works then that is copyright infringment without a doubt. But the AI isn't doing that and it likely isn't even capable of doing that.