Short answer: keep generated images in a private object store, put an ownership and retention record in your database, and create a short-lived signed download only after authorization. For a marketplace, the cheapest design is usually the one that deletes abandoned originals reliably; storage price alone is a poor decision rule.
A seller can generate five product images, close the tab, and never publish the listing. If those bytes remain forever, a small AI feature becomes an unbounded archive. I model each image as a database record plus an object key, not as a URL. The key survives link expiry; the link is disposable.
Tiny rule: no public bucket.
The retention-first data flow
Create a pending image row before the browser uploads anything. Give the browser a narrowly scoped upload target, so the application server does not proxy large media bytes. On completion, verify the object key, byte count, media type, and owner before changing the row to ready.…