If you train your AI on the commons, everything it generates should be in the commons. And all your profits should be shared with everyone.
If running your AI is incompatible with respecting copyright and intellectual property then you should not get to own a single bit of its output.