Chatgpt generated images into Print on demand solution

I’m building an online store, and here’s how the workflow looks so far:

  1. Users upload multiple images.

  2. These images are sent (along with a prompt) to an AI model—possibly ChatGPT or another image generation model (still deciding).

  3. Once the generated images are returned, they’re automatically placed into a predefined print-on-demand template.

  4. Ideally, I want the user to preview the final design before making a payment.

I’ve already built a custom backend that:

  • Accepts the uploaded images.

  • Sends them and the prompt to the image generation service.

  • Receives the final images back.

However, I’m unsure how to integrate this with a print-on-demand (POD) provider, especially when it comes to placing the images into a template. I suspect that template customization will be a challenge.

Has anyone dealt with something similar?
What’s the best way to integrate generated images with a print-on-demand service, while allowing user preview and approval before purchase?