If you buy a machine that prints copies of copyrighted books (built into the machine), and you use that machine and then distribute the resulting copies, and the machine didn't come with a license allowing you to do so, I'm pretty sure that you are liable as well.
At least some current AI providers, however, come with terms of service that promise that they will cover any such legal disputes for you.
At least some current AI providers, however, come with terms of service that promise that they will cover any such legal disputes for you.