If your product wouldn't exist without inputting someone else's product, it is derivative of that someone else's product. This isn't a human learning. This is a corporate, for profit product, it is derivative, and violates copyright.
That's not the standard we hold "human generated" media to. Not even "mockbusters" are illegal under copyright law. Nothing is new and everything is a remix. And I see no reason to make an exception for AI.
Copyright law is a disgrace, and copyright should be cut down massively - not made into an even more far-reaching anti-freedom abomination than it already is.