Images & Video · from an X post, May 14, 2026 · Added
Bad Main Images Found and Replaced Through SP-API with Codex
Find listings with bad main images and replace them with compliant ones without doing it by hand
In a follow-up post he says Codex also wrote an automation by itself to poll those listings to verify their status and listing health.
Per source Self-reported by the source, not independently verified.
Copy-paste prompt
Using my SP-API credentials (read and listings write), pull all my active listings and check each main image against Amazon's rules: pure white background, product fills about 85% of the frame, no text, logos or props, at least 1000px on the longest side. List the ones that fail and why. For each, propose a fixed version made only from my own product photos in [folder]. Don't upload anything until I approve each image.
The source didn't publish its exact prompt. We wrote this starter so you can try the same workflow. Replace anything in [brackets].
What they did
A seller asked Codex, using its /goal mode, to fix his Amazon storefront. Codex wrote a wrapper for the Amazon SP-API, pulled his listings, identified the ones with bad images, used his local source material to edit or generate Amazon-compliant main images, ran verification tests, created a Cloudflare R2 bucket with wrangler and uploaded the images to Amazon.
How it went
In a follow-up post he says Codex also wrote an automation by itself to poll those listings to verify their status and listing health. He calls it "staggering" but gives no sales or click numbers.
We only report what the source says. Results are self-reported unless noted.
Worth knowing
Two first-hand X posts the same day. Letting an agent push images to live listings is a big permission: keep the original images and check the generated ones against Amazon's main-image rules before they go up.